The following is the structure of the Pharmacy Dispense Information (RDR) message, an original-mode query that was defined in Chapter 4.
Segment | Cardinality | Implement | Status |
---|---|---|---|
![]() | |||
[1..1] | SHALL | ||
[1..1] | SHALL | ||
[0..1] | |||
[0..1] | |||
![]() ![]() |
[1..*] | SHALL | |
[1..1] | SHALL | ||
[0..1] | |||
![]() ![]() ![]() |
[0..1] | ||
[1..1] | SHALL | ||
![]() ![]() ![]() |
[1..*] | SHALL | |
[1..1] | SHALL | ||
![]() ![]() ![]() ![]() |
|||
[1..1] | SHALL | ||
![]() ![]() ![]() ![]() |
[0..1] | ||
[1..1] | SHALL | ||
![]() ![]() ![]() ![]() ![]() |
|||
[1..1] | SHALL | ||
[1..*] | SHALL | ||
![]() ![]() ![]() ![]() |
[1..*] | SHALL | |
[1..1] | SHALL | ||
[1..*] | SHALL | ||
[0..1] |
MSH-15 | MSH-16 | Immediate ACK | Application Ack |
---|
The function served by that query can be more clearly defined within the new query functionality. In the RDR message, the full meaning of the filter elements in the QRD and QRF segments could be discerned only by inference. By contrast, needed parameters can be explicitly defined in the Query Profile for the new Dispense History query, as shown in the following example.
Example: The user wishes to know all the medications dispensed for the patient whose medical record number is "555444222111" for the period beginning 5/31/98 and ending 5/31/99. The following QBP message is generated:
MSH|^~\&|PCR|Gen Hosp|PIMS||199811201400-0800||QBP^Z81^QBP_Q11|ACK9901|P|2.8||||||||
QPD|Z81^Dispense History^HL7nnnn|Q001|555444222111^^^MPI^MR||19980531|19990531|
RCP|I|999^RD|
The pharmacy system identifies medical record number "555444222111" as belonging to Adam Everyman and locates 4 prescription dispenses for the period beginning 5/31/98 and ending 5/31/99and returns the following RSP message:
MSH|^~\&|PIMS|Gen hosp|PCR||199811201400-0800||RSP^Z82^RSP_Z82|8858|P|2.8||||||||
MSA|AA|ACK9901|
QAK|Q001|OK|Z81^Dispense History^HL7nnnn|4|
QPD|Z81^Dispense History^HL7nnnn|Q001|555444222111^^^MPI^MR||19980531|19990531|
PID|||555444222111^^^MPI^MR||Everyman^Adam||19600614|M||C|2101 Webster # 106^^Oakland^CA^94612||^^^^^510^6271111|^^^^^510^6277654|||||343132266|||N|||||||||
ORC|RE||89968665||||||199805121345-0700|||77^Hippocrates^Harold^H^III^DR^MD||^^^^^510^ 2673600||||||
RXE|1^BID^^19980529|00378112001^Verapamil Hydrochloride 120 mg TAB^NDC |120||mgm||||||||||||||||||||||||||
RXD|1|00378112001^Verapamil Hydrochloride 120 mg TAB^NDC |199805291115-0700|100|||1331665|3|||||||||||||||||
RXR|PO||||
ORC|RE||89968665||||||199805291030-0700|||77^Hippocrates^Harold^H^III^DR^MD||^^^^^510^ 2673600||||||
RXE|1^^D100^^20020731^^^TAKE 1 TABLET DAILY -GENERIC FOR CALAN SR|00182196901^VERAPAMIL HCL ER TAB 180MG ER^NDC |100||180MG|TABLET SA|||G|||0|BC3126631^CHU^Y^L||213220929|0|0|19980821|||
RXD|1|00182196901^VERAPAMIL HCL ER TAB 180MG ER^NDC |19980821|100|||213220929|0|TAKE 1 TABLET DAILY -GENERIC FOR CALAN SR||||||||||||
RXR|PO||||
ORC|RE||235134037||||||199809221330-0700|||8877^Hippocrates^Harold^H^III^DR^MD||^^^^^555^555-5001||||||RXD|1|00172409660^BACLOFEN 10MG TABS^NDC|199809221415-0700|10|||235134037|5|AS DIRECTED||||||||||||
RXR|PO||||
ORC|RE||235134030||||||199810121030-0700|||77^Hippocrates^Harold^H^III^DR^MD||^^^^^555^555-5001||||||
RXD|1|00054384163^THEOPHYLLINE 80MG/15ML SOLN^NDC|199810121145-0700|10|||235134030|5|AS DIRECTED||||||||||||
RXR|PO
Query Profile
The message structure for QBP^Z81^QPB_Q11 can be found in 5.4.1. Use the QBP^Q11^QPB_Q11 Message structure.
Segment | Cardinality | Implement | Status |
---|---|---|---|
![]() | |||
[1..1] | SHALL | ||
v2.9 | |||
[0..1] | |||
[1..1] | SHALL | ||
[0..1] | |||
[1..1] | SHALL | ||
[1..1] | SHALL | ||
[1..1] | SHALL | ||
![]() ![]() |
[1..*] | SHALL | |
![]() ![]() ![]() |
[0..1] | ||
[1..1] | SHALL | ||
[0..1] | |||
![]() ![]() ![]() ![]() |
[0..1] | ||
[1..*] | SHALL | ||
[1..1] | SHALL | ||
[0..1] | |||
![]() ![]() ![]() |
[1..*] | SHALL | |
[1..1] | SHALL | ||
![]() ![]() ![]() ![]() |
|||
[1..1] | SHALL | ||
![]() ![]() ![]() ![]() |
[0..1] | ||
[1..1] | SHALL | ||
[1..*] | SHALL | ||
![]() ![]() ![]() ![]() ![]() |
[0..1] | ||
[1..*] | SHALL | ||
![]() ![]() ![]() ![]() |
[0..1] | ||
[1..1] | SHALL | ||
![]() ![]() ![]() ![]() ![]() |
|||
[1..1] | SHALL | ||
[1..*] | SHALL | ||
[1..1] | SHALL | ||
[1..*] | SHALL | ||
![]() ![]() ![]() ![]() |
[1..*] | SHALL | |
[0..1] | |||
[0..1] |
MSH-15 | MSH-16 | Immediate ACK | Application Ack |
---|
Input Parameter Specification
Input Parameter Field Description and Commentary