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:
QBP^Q11^QBP_Q11- MSH-9.1
QBPmessage code: what kind of message this is - MSH-9.2
Q11trigger event: what happened in the real world - MSH-9.3
QBP_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.
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.
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.
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.
Other QBP structures
| Structure | Name | Events |
|---|---|---|
| QBP_Qnn | ||
| QBP_Z73 | Z73 |
Trigger events
The trigger event is the real-world thing that made the message get sent. QBP defines 22.
| Event | Name | Structure |
|---|---|---|
| Q11 | Q11 | QBP_Q11 |
| Q13 | Q13 | QBP_Q13 |
| Q15 | Q15 | QBP_Q15 |
| Q21 | Q21 | QBP_Q21 |
| Q22 | Q22 | QBP_Q21 |
| Q23 | Q23 | QBP_Q21 |
| Q24 | Q24 | QBP_Q21 |
| Q25 | Q25 | QBP_Q21 |
| Q31 | Q31 | QBP_Q11 |
| Z73 | Z73 | QBP_Z73 |
| Z75 | Z75 | QBP_Q13 |
| Z77 | Z77 | QBP_Q13 |
| Z79 | Z79 | QBP_Q15 |
| Z81 | Z81 | QBP_Q11 |
| Z85 | Z85 | QBP_Q11 |
| Z87 | Z87 | QBP_Q11 |
| Z89 | Z89 | QBP_Q11 |
| Z91 | Z91 | QBP_Q13 |
| Z93 | Z93 | QBP_Q13 |
| Z95 | Z95 | QBP_Q13 |
| Z97 | Z97 | QBP_Q15 |
| Z99 | Z99 | QBP_Q13 |