HL7 v2.5.1 Specificationsv2.5.1

to moveEnter to openTry PID-5, ADT, 0004

RTB: Tabular response

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

Recognising RTB messages

RTB announces itself in MSH-9 like this:

MSH-9RTB^K13^RTB_K13
  1. MSH-9.1RTBmessage code: what kind of message this is
  2. MSH-9.2K13trigger event: what happened in the real world
  3. MSH-9.3RTB_K13message 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

RTB takes 3 structures.

RTB_K13

6 different trigger events send this structure:

The segments below are the same for all 6. HL7 varies the meaning, not the shape: there is no separate RTB_Z76 layout. What changes is MSH-9, which tells the receiver which of the 6 happened and therefore what to do with the message.

You must always send: MSH, MSA, QAK, QPD. Everything else is optional, or required only inside a group you chose to send.

SegmentNameOPTCardinality
MSHR1..1
SFTO0..*
MSAR1..1
ERRO0..1
QAKR1..1
QPDR1..1
ROW_DEFINITIONa group of 2 segments, repeated togetherO0..1
RDFin ROW_DEFINITIONR1..1
RDTin ROW_DEFINITIONO0..*
DSCO0..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 1 such group: ROW_DEFINITION.

RTB_Knn

No trigger event in the standard names this structure.

RTB_Z74

Sent when one thing happens: Z74: Z74.

SegmentNameOPTCardinality
MSHMessage Header 2.15.R1..1
MSAMessage Acknowledgement 2.15.R1..1
ERRError 2.15.O0..*
SFTSoftware 2.15.O0..*
QAKQuery Acknowledgement 5.5.R1..1
QPDQuery Parameter Definition 5.5.R1..1
ROW_DEFINITIONa group of 2 segments, repeated togetherO0..1
RDFin ROW_DEFINITIONTable Row Definition Segment 5.5.R1..1
RDTin ROW_DEFINITIONTable Row Data Segment 5.5.O0..*
DSCContinuation Pointer 2.15.O0..1

Trigger events

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

EventNameStructure
K13K13RTB_K13
Z74Z74RTB_Z74
Z76Z76RTB_K13
Z78Z78RTB_K13
Z92Z92RTB_K13
Z94Z94RTB_K13
Z96Z96RTB_K13