HL7 DSR_Q03 Deferred Display Response

HL7 message structure DSR_Q03 groups and segments from HL7 v2.5.1 Hide structure

These are the generated groups and segments for the version selected at the top of the page. The article explains the workflow, and this panel follows the chosen HL7 version.

Message Structure

SegmentNameRequiredRepeatable
Message Header Yes No
Software Segment No Yes
Message Acknowledgment No No
Error No No
Query Acknowledgment No No
Original-Style Query Definition Yes No
Original style query filter No No
Display Data Yes Yes
Continuation Pointer No No

DSR_Q03 is the later response in the older deferred query workflow. A requester sends a deferred query, the receiver acknowledges the request with QCK_Q02, and then DSR_Q03 arrives when the receiver has the answer ready.

In real interfaces, the awkward part is correlation. The data may arrive seconds, minutes, or batch cycles later. The echoed QRD and optional QRF are what let the requester prove which query this response satisfies.

A small DSR Q03 example

MSH|^~\&|ARCHIVE|CITYHOSP|PORTAL|CITYHOSP|20260717104500||DSR^Q03^DSR_Q03|DSRQ030001|P|2.5.1 MSA|AA|QRYQ020001 QAK|QRYQ020001|OK QRD|20260717102000|R|D|QRYQ020001|L|20260717104500|25^RD|123456^^^CITYHOSP^MR|RES|CITYHOSP QRF|ARCHIVE|20250101000000|20251231235959 DSP|1||Archived results found for Smith, Jane Anne DSP|2||2025-04-08 CBC final DSP|3||2025-11-02 CMP final

What systems do with it

The receiver sends DSR_Q03 when the deferred work has finished. The requester checks MSA, QAK, the QRD query ID, and the sender identity before it updates the waiting workflow.

Because the response can be delayed, the requester also needs timeout behavior. That may mean a user-facing "still pending" state, a retry window, or an operational alert when the expected DSR never arrives.

How to read the structure

MSH identifies the deferred response. MSA is optional in the local v2.5.1 structure but commonly present. ERR carries application errors. QAK reports query status. QRD is required and ties the response back to the original query.

The repeating DSP segments carry display data. DSC can continue large responses, but the continuation rules should be spelled out carefully because the original request is no longer on the same request-response turn.

Implementation traps

Do not match DSR_Q03 to a waiting request by patient alone. The same patient can have multiple outstanding queries. Match by query ID, message control IDs, sender and receiver, and any profile-specific tag your trading partner defines.

Also make sure the acknowledgment path is clear. If the DSR_Q03 itself fails, the sender needs to know whether to retry or mark the deferred query as failed.

Reference notes

HL7's deferred access discussion allows responses to be split across separate DSR messages and describes continuation behavior. The local v2.5.1 structure keeps that same QRD/QRF/DSP shape.