HL7 v2.5.1 Specificationsv2.5.1

to moveEnter to openTry PID-5, ADT, 0004

DOC: Document response

This page lists the structures and trigger events DOC defines, taken from the standard. The written commentary that theADT page carries has not been written for DOC.

Recognising DOC messages

DOC announces itself in MSH-9 like this:

MSH-9DOC^T12^DOC_T12
  1. MSH-9.1DOCmessage code: what kind of message this is
  2. MSH-9.2T12trigger event: what happened in the real world: document query
  3. MSH-9.3DOC_T12message structure: which segments to expect, and in what order

How to use these specifications explains MSH-9 in full, with a worked example.

Message structures

DOC takes 1 structure.

DOC_T12: Document Query

Sent when one thing happens: T12: Document Query.

You must always send: MSH, MSA, QRD, PID, PV1, TXA. Everything else is optional, or required only inside a group you chose to send.

SegmentNameOPTCardinality
MSHR1..1
MSAR1..1
ERRO0..1
QAKO0..1
QRDR1..1
RESULTa group of 5 segments, repeated togetherR1..*
EVNO0..1
PIDR1..1
PV1R1..1
TXAR1..1
OBXO0..*
DSCO0..1

R inside a group means required of that group. Send the group and you must include that segment; leave the group out and it never appears. This structure has 1 such group: RESULT.

Trigger events

The trigger event is the real-world thing that made the message get sent. DOC defines 1.

EventNameStructure
T12Document QueryDOC_T12