ORF: Query for results of observation
This page lists the structures and trigger events ORF defines, taken from the standard. The written commentary that theADT page carries has not been written for ORF.
Recognising ORF messages
ORF announces itself in MSH-9 like this:
ORF^R04^ORF_R04- MSH-9.1
ORFmessage code: what kind of message this is - MSH-9.2
R04trigger event: what happened in the real world - MSH-9.3
ORF_R04message 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
ORF takes 1 structure.
ORF_R04
Sent when one thing happens: R04: R04.
You must always send: MSH, MSA, QRD, OBR. Everything else is optional, or required only inside a group you chose to send.
| Segment | Name | OPT | Cardinality |
|---|---|---|---|
| MSH | R | 1..1 | |
| SFT | O | 0..* | |
| MSA | R | 1..1 | |
| QRD | R | 1..1 | |
| QRF | O | 0..1 | |
| QUERY_RESPONSE | a group of 2 segments, repeated together | R | 1..* |
| PATIENT | a group of 2 segments, repeated together | O | 0..1 |
| PIDin PATIENT | R | 1..1 | |
| NTEin PATIENT | O | 0..* | |
| ORDER | a group of 7 segments, repeated together | R | 1..* |
| ORC | O | 0..1 | |
| OBR | R | 1..1 | |
| NTE | O | 0..* | |
| TIMING_QTY | a group of 2 segments, repeated together | O | 0..* |
| TQ1in TIMING_QTY | R | 1..1 | |
| TQ2in TIMING_QTY | O | 0..* | |
| CTD | O | 0..1 | |
| OBSERVATION | a group of 2 segments, repeated together | R | 1..* |
| OBX | O | 0..1 | |
| NTE | O | 0..* | |
| CTI | O | 0..* | |
| ERR | O | 0..* | |
| QAK | O | 0..1 | |
| DSC | O | 0..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 5 such groups: QUERY_RESPONSE, PATIENT, ORDER, TIMING_QTY, OBSERVATION.
Trigger events
The trigger event is the real-world thing that made the message get sent. ORF defines 1.
| Event | Name | Structure |
|---|---|---|
| R04 | R04 | ORF_R04 |