Z79

Dispense Information

To retrieve patient pharmacy dispense history information from the Server.

Note that this Query Profile includes no separate Output Description and Commentary. In Query Profiles that specify an RDY response message, the display format follows the response grammar.

The QBP_Q15 and RDY_K15 message structures and related choreography can be found in 5.4.3.

Query/Response Flow

Query Message
QBP^Z79
QBP_Q15
Response Message
RDY^Z80
RDY_Z80

Input Fields

QPD
SeqField NameTypeOptRepLenK/SSortOpTableSegment Field
1
MessageQueryName
CWER60-
2
QueryTag
STR32-
3
SelectionCriteria
STR*255-
VIRTUAL
SeqField NameTypeOptRepLenK/SSortOpTableSegment Field
1
PatientList
PID-3: Patient Identifier List
CXO20SYPID.3
2
OrderControlCode
ORC-1 Order Control
ID2S-119ORC.1
3
MedicationDispensed
RXD-2 Dispense/Give Code
CWE100SYRXD.2
4
DispenseDate
RXD-2 Date/Time Dispensed
DTM24S-RXD.3
5
QuantityDispensed
RXD-4 Actual Dispense Amount
NM20L-RXD.4
6
OrderingProvider
ORC-12 Ordering Provider
XCN120S-ORC.12

Message Structures

7 segments
R RequiredO Optional Choice
MSH
R1
SFT
O*
UAC
O1
QPD
R1
Hxx
O1
RCP
R1
DSC
O1
9 segments
R RequiredO Optional Choice
MSH
R1
SFT
O*
UAC
O1
MSA
R1
ERR
O1
QAK
R1
QPD
R1
DSP
O*
DSC
O1

Query Properties

Query Mode
Both
Query Characteristics

Selection criteria are chosen from a Virtual Table. May specify patient, order control code, medication, a date range, quantity dispensed, and ordering provider.

Response Characteristics

Returns data formatted for screen display. Data are sorted by Medication Dispensed unless otherwise specified in SortControl.

Response Control Parameters (RCP)

SeqNameComponentTypeLenDescription
1Query Priority-ID1(D)eferred or (I)mmediate. Default is I.
2Quantity Limited Request-CQ10-
QuantityNM-Number of units (specified by the following component) that will be returned in each increment of the response. If no value is given, the entire response will be returned in a single increment.
UnitsCWE-CHaracters, LInes, PaGes, or RecorDs. Default is LI.
5Response Modality-CWE60Real time or Batch. Default is R.
6Sort-by Field-SRT256-
Sort-by FieldST-Segment field name of an output column by which the response may be sorted. SHALL contain a Y in the Sort column of the output specification table.
SequencingID-As specified in HL7 Table 0397- Sequencing. Default is Ascending.