QRY Query Message Chapter
MSH Message Header 2
QRD Query Definition 2
[ QRF ] Query Filter 2
[ DSC ] Continuation Pointer 2
DSR Display Response Message Chapter
MSH Message Header 2
MSA Message Acknowledgment 2
[ ERR ] Error 2
[ QAK ] Query Acknowledgment 2
QRD Query Definition 2
[ QRF ] Query Filter 2
{ DSP } Display Data 2
[ DSC ] Continuation Pointer 2
The QRF and QRD segments from the QRY are echoed back in the response. The DSC segment contains the continuation pointer, if it is not null (DSC-1-continuation pointer).
If a display query has more than a single type of response (i.e., a DSR message with a different meaning, requiring different processing on the querying system), the second component of the Message Type field of the MSH segment may be used to indicate the response event type. For example, an ancillary name search display query may be defined using the query event code of DNM. The display response to such a query may be either a list of name matches (response event type is DNM) or the ancillarys display results for an exact match to the name query (response event type is NRS). See HL7 table 0003 - Event type code and field notes for MSH-9-message type.