HL7 v2.5.1 Specificationsv2.5.1

to moveEnter to openTry PID-5, ADT, 0004

QBP: Query by parameter

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

Recognising QBP messages

QBP announces itself in MSH-9 like this:

MSH-9QBP^Q11^QBP_Q11
  1. MSH-9.1QBPmessage code: what kind of message this is
  2. MSH-9.2Q11trigger event: what happened in the real world
  3. MSH-9.3QBP_Q11message 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

QBP takes 6 structures. The first 4 are shown in full; the rest are listed below.

QBP_Q11

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 QBP_Q31 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, QPD, RCP. Everything else is optional, or required only inside a group you chose to send.

SegmentNameOPTCardinality
MSHR1..1
SFTO0..*
QPDR1..1
RCPR1..1
DSCO0..1

QBP_Q13

7 different trigger events send this structure:

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

SegmentNameOPTCardinality
MSHR1..1
SFTO0..*
QPDR1..1
RDFO0..1
RCPR1..1
DSCO0..1

QBP_Q15

3 different trigger events send this structure:

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

SegmentNameOPTCardinality
MSHR1..1
SFTO0..*
QPDR1..1
RCPR1..1
DSCO0..1

QBP_Q21

5 different trigger events send this structure:

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

SegmentNameOPTCardinality
MSHR1..1
SFTO0..*
QPDR1..1
RCPR1..1
DSCO0..1

Other QBP structures

StructureNameEvents
QBP_Qnn
QBP_Z73Z73

Trigger events

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

EventNameStructure
Q11Q11QBP_Q11
Q13Q13QBP_Q13
Q15Q15QBP_Q15
Q21Q21QBP_Q21
Q22Q22QBP_Q21
Q23Q23QBP_Q21
Q24Q24QBP_Q21
Q25Q25QBP_Q21
Q31Q31QBP_Q11
Z73Z73QBP_Z73
Z75Z75QBP_Q13
Z77Z77QBP_Q13
Z79Z79QBP_Q15
Z81Z81QBP_Q11
Z85Z85QBP_Q11
Z87Z87QBP_Q11
Z89Z89QBP_Q11
Z91Z91QBP_Q13
Z93Z93QBP_Q13
Z95Z95QBP_Q13
Z97Z97QBP_Q15
Z99Z99QBP_Q13