RRE: Pharmacy/treatment encoded order acknowledgment message
This page lists the structures and trigger events RRE defines, taken from the standard. The written commentary that theADT page carries has not been written for RRE.
Recognising RRE messages
RRE announces itself in MSH-9 like this:
RRE^O12^RRE_O12- MSH-9.1
RREmessage code: what kind of message this is - MSH-9.2
O12trigger event: what happened in the real world: pharmacy/treatment encoded order acknowledgment - MSH-9.3
RRE_O12message 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
RRE takes 1 structure.
RRE_O12: Pharmacy/Treatment Encoded Order Acknowledgment
2 different trigger events send this structure:
The segments below are the same for all 2. HL7 varies the meaning, not the shape: there is no separate RRE_O26 layout. What changes is MSH-9, which tells the receiver which of the 2 happened and therefore what to do with the 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..* | |
| ENCODINGin ORDER | a group of 4 segments, repeated together | O | 0..1 |
| RXEin ENCODING | R | 1..1 | |
| TIMING_ENCODEDin ENCODING | a group of 2 segments, repeated together | R | 1..* |
| TQ1in TIMING_ENCODED | R | 1..1 | |
| TQ2in TIMING_ENCODED | O | 0..* | |
| RXRin ENCODING | R | 1..* | |
| RXCin ENCODING | 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, ENCODING, TIMING_ENCODED.
Trigger events
The trigger event is the real-world thing that made the message get sent. RRE defines 2.