RRG: Pharmacy/treatment give acknowledgment message
This page lists the structures and trigger events RRG defines, taken from the standard. The written commentary that theADT page carries has not been written for RRG.
Recognising RRG messages
RRG announces itself in MSH-9 like this:
RRG^O16^RRG_O16- MSH-9.1
RRGmessage code: what kind of message this is - MSH-9.2
O16trigger event: what happened in the real world: pharmacy/treatment give acknowledgment message - MSH-9.3
RRG_O16message 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
RRG takes 1 structure.
RRG_O16: Pharmacy/Treatment Give Acknowledgment Message
Sent when one thing happens: O16: Pharmacy/Treatment Give Acknowledgment Message.
You must always send: MSH, MSA. 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..* | |
| 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 3 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..* | |
| GIVEin ORDER | a group of 4 segments, repeated together | O | 0..1 |
| RXGin GIVE | R | 1..1 | |
| TIMING_GIVEin GIVE | a group of 2 segments, repeated together | R | 1..* |
| TQ1in TIMING_GIVE | R | 1..1 | |
| TQ2in TIMING_GIVE | O | 0..* | |
| RXRin GIVE | R | 1..* | |
| RXCin GIVE | O | 0..* |
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 6 such groups: RESPONSE, PATIENT, ORDER, TIMING, GIVE, TIMING_GIVE.
Trigger events
The trigger event is the real-world thing that made the message get sent. RRG defines 1.
| Event | Name | Structure |
|---|---|---|
| O16 | Pharmacy/Treatment Give Acknowledgment Message | RRG_O16 |