Z79

Dispense Information

To retrieve patient pharmacy dispense history information from the Server.

Query/Response Flow

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

Input Fields

QPD
SeqField NameTypeOptRepLenK/SSortOpTableSegment Field
1
MessageQueryName
CER60-
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
CE100SYRXD.2
4
DispenseDate
RXD-2 Date/Time Dispensed
TS26S-RXD.3
5
QuantityDispensed
RXD-4 Actual Dispense Amount
NM20L-RXD.4
6
OrderingProvider
ORC-12 Ordering Provider
XCN120S-ORC.12

Message Structures

5 segments
R RequiredO Optional Choice
MSH
R1
QPD
R1
Zxx
O1
RCP
R1
DSC
O1
7 segments
R RequiredO Optional Choice
MSH
R1
MSA
R1
ERR
O1
QAK
R1
QPD
R1
DSP
O*
DSC
O1

Query Properties

Query Mode
Both
Query Type
Query
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-
3Quantity Limited RequestQuantityNM-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 reponse will be returned in a single increment.
4Quantity Limited RequestUnitsCE-CHaracters, LInes, PaGes, or RecorDs. Default is LI.
5Response ModalityUnitsCE60Real time or Batch. Default is R.
6Sort-by FieldUnitsSRT256-
7Sort-by FieldSort-by FieldST-Segment field name of an output column by which the response may be sorted. Must contain a Y in the Sort column of the output specifcation table.
8Sort-by FieldSequencingID-As specified in HL7 Table 0397- Sequencing. Default is Ascending.