HL7 DSR_Q01 Immediate Display Response
DSR_Q01 is the response side of the older immediate query pattern. A system receives a QRY_Q01, evaluates the QRD and QRF filters, and returns a display response that the requester can show or parse lightly.
The word "display" is doing real work here. The main response payload is a set of DSP lines. Those lines are useful for human-facing screens and older workflows, but they are not as cleanly structured as modern segment-pattern or tabular responses.
A small DSR Q01 example
What systems do with it
The receiver sends DSR_Q01 as the application-level answer to the query. The requester checks MSA and QAK, matches the echoed QRD query ID, and then consumes the DSP lines. In some old applications, those lines are simply displayed. In integration work, they are often mapped into a local table or work queue with careful assumptions.
If the receiver has more data than it can return in one message, DSC can carry a continuation pointer. That pointer is not a business identifier. Treat it like an opaque token owned by the responder.
How to read the structure
MSH identifies the response, MSA acknowledges the original message control ID, and optional ERR carries error detail. QAK gives query-level status, while QRD and QRF echo the original request so the response can be audited and matched.
The repeating DSP segment is the payload. DSP-3 is the line of display data, with optional set IDs and display levels around it. Because DSP is preformatted text, agree whether the receiver may change punctuation, ordering, labels, or line wrapping.
Implementation traps
Do not map a DSP line as if it were a stable clinical field unless the interface specification says the line format is fixed. A label change can break a parser that looked safe in testing.
Also read QAK, not just MSA. MSA may say the message was accepted while QAK says the query found no records or was rejected by the application rules.
Reference notes
HL7's original query material describes DSR as the display response for immediate queries, with QRD and QRF echoed and DSP carrying display data. The v2 query chapter also defines DSP as preformatted display text.