HL7 ORF_R04 Response to Query for Results
ORF_R04 is a response to a query for observation results, often from an older QRY_R02 workflow. It returns the status of the request and the matching patient/order/observation data. If ORU_R01 is the unsolicited result push, ORF_R04 is the "you asked, here are the existing results" answer.
The structure can carry familiar result segments: PID for patient identity, ORC for order control, OBR for the observation request/report header, OBX for values, and NTE for notes.
A small ORF R04 example
What systems do with it
The requester uses ORF_R04 to reconcile or retrieve results. A clinical viewer might display historical lab values. An integration engine might backfill missing results. A receiving app might compare the solicited response to what it already filed from unsolicited ORU messages.
Because the message is a response, status matters. MSA acknowledges the query message, and QAK reports the query outcome. ERR can explain why a query failed or why the receiver could not return data.
How to read the structure
QRD and QRF echo or describe the original query. After that, the result groups look familiar to anyone who works with ORU_R01: patient context, order/report headers, observations, and notes.
Do not assume the response is a complete clinical record. It is the result set for the specific query. If the query filtered by date, department, service, or result status, the absence of an observation may only mean it was outside the request.
Implementation traps
One trap is filing solicited results as if they are new unsolicited results. If the same OBX values already arrived by ORU_R01, blindly importing ORF_R04 can duplicate results. Match on patient, order, filler accession, OBR identity, OBX identity, and observation status.
Another trap is losing corrected or cancelled result meaning. A query response can return final, corrected, amended, or cancelled observations depending on the receiver and filter. Preserve the OBX and OBR status semantics instead of treating every returned value as a fresh final.
Reference notes
HL7 observation-query material describes ORF-style responses for solicited observation results, and reference definitions describe ORF_R04 as the response to query/transmission of requested observation. See HL7 Europe Chapter 7 and Caristix ORF_R04.