HL7 v2.5.1 Specificationsv2.5.1

to moveEnter to openTry PID-5, ADT, 0004

RAS: Pharmacy/treatment administration message

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

Recognising RAS messages

RAS announces itself in MSH-9 like this:

MSH-9RAS^O17^RAS_O17
  1. MSH-9.1RASmessage code: what kind of message this is
  2. MSH-9.2O17trigger event: what happened in the real world: pharmacy/treatment administration message
  3. MSH-9.3RAS_O17message 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

RAS takes 1 structure.

RAS_O17: Pharmacy/Treatment Administration Message

Sent when one thing happens: O17: Pharmacy/Treatment Administration Message.

You must always send: MSH, ORC, RXA, RXR. Everything else is optional, or required only inside a group you chose to send.

SegmentNameOPTCardinality
MSHR1..1
SFTO0..*
NTEO0..*
PATIENTa group of 5 segments, repeated togetherO0..1
PIDin PATIENTR1..1
PD1in PATIENTO0..1
NTEin PATIENTO0..*
AL1in PATIENTO0..*
PATIENT_VISITin PATIENTa group of 2 segments, repeated togetherO0..1
PV1in PATIENT_VISITR1..1
PV2in PATIENT_VISITO0..1
ORDERa group of 6 segments, repeated togetherR1..*
ORCR1..1
TIMINGa group of 2 segments, repeated togetherO0..*
TQ1in TIMINGR1..1
TQ2in TIMINGO0..*
ORDER_DETAILa group of 2 segments, repeated togetherO0..1
RXOin ORDER_DETAILR1..1
ORDER_DETAIL_SUPPLEMENTin ORDER_DETAILa group of 3 segments, repeated togetherO0..1
NTEin ORDER_DETAIL_SUPPLEMENTR1..*
RXRin ORDER_DETAIL_SUPPLEMENTR1..*
COMPONENTSin ORDER_DETAIL_SUPPLEMENTa group of 2 segments, repeated togetherO0..*
RXCin COMPONENTSR1..1
NTEin COMPONENTSO0..*
ENCODINGa group of 4 segments, repeated togetherO0..1
RXEin ENCODINGR1..1
TIMING_ENCODEDin ENCODINGa group of 2 segments, repeated togetherR1..*
TQ1in TIMING_ENCODEDR1..1
TQ2in TIMING_ENCODEDO0..*
RXRin ENCODINGR1..*
RXCin ENCODINGO0..*
ADMINISTRATIONa group of 3 segments, repeated togetherR1..*
RXAR1..*
RXRR1..1
OBSERVATIONa group of 2 segments, repeated togetherO0..*
OBXin OBSERVATIONR1..1
NTEin OBSERVATIONO0..*
CTIO0..*

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 11 such groups: PATIENT, PATIENT_VISIT, ORDER, TIMING, ORDER_DETAIL, ORDER_DETAIL_SUPPLEMENT, COMPONENTS, ENCODING, TIMING_ENCODED, ADMINISTRATION, OBSERVATION.

Trigger events

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

EventNameStructure
O17Pharmacy/Treatment Administration MessageRAS_O17