OSR: Query response for order status
This page lists the structures and trigger events OSR defines, taken from the standard. The written commentary that theADT page carries has not been written for OSR.
Recognising OSR messages
OSR announces itself in MSH-9 like this:
OSR^Q06^OSR_Q06- MSH-9.1
OSRmessage code: what kind of message this is - MSH-9.2
Q06trigger event: what happened in the real world: query response for order status - MSH-9.3
OSR_Q06message 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
OSR takes 1 structure.
OSR_Q06: query response for order status
Sent when one thing happens: Q06: query response for order status.
You must always send: MSH, MSA, QRD. Everything else is optional, or required only inside a group you chose to send.
| Segment | Name | OPT | Cardinality |
|---|---|---|---|
| MSH | R | 1..1 | |
| MSA | R | 1..1 | |
| ERR | O | 0..* | |
| SFT | O | 0..* | |
| NTE | O | 0..* | |
| QRD | R | 1..1 | |
| QRF | O | 0..1 | |
| RESPONSE | a group of 2 segments, repeated together | O | 0..1 |
| PATIENTin RESPONSE | a group of 2 segments, repeated together | O | 0..1 |
| PIDin PATIENT | R | 1..1 | |
| NTEin PATIENT | O | 0..* | |
| ORDERin RESPONSE | a group of 5 segments, repeated together | R | 1..* |
| ORCin ORDER | R | 1..1 | |
| TIMINGin ORDER | a group of 2 segments, repeated together | O | 0..* |
| TQ1in TIMING | R | 1..1 | |
| TQ2in TIMING | O | 0..* | |
| CHOICEin ORDER | a group of 0 segments, repeated together | R | 1..1 |
| NTEin ORDER | O | 0..* | |
| CTIin ORDER | O | 0..* | |
| 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: RESPONSE, PATIENT, ORDER, TIMING, CHOICE.
Trigger events
The trigger event is the real-world thing that made the message get sent. OSR defines 1.
| Event | Name | Structure |
|---|---|---|
| Q06 | query response for order status | OSR_Q06 |