Z79

Dispense Information

To retrieve patient pharmacy dispense history information from the Server.

Note that this Conformance Statement includes no separate Output Description and Commentary. In conformance statements that specify an RDY response message, the display format follows the response grammar.

Query/Response Flow

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

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

6 segments
R RequiredO Optional Choice
MSH
R1
SFT
O*
QPD
R1
Hxx
O1
RCP
R1
DSC
O1
9 segments
R RequiredO Optional Choice
MSH
R1
SFT
O*
MSA
R1
ERR
O1
QAK
R1
QPD
R1
ROW_DEFINITION
O1
RDF
R1
RDT
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.
UnitsCE-CHaracters, LInes, PaGes, or RecorDs. Default is LI.
5Response Modality-CE60Real 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. Must contain a Y in the Sort column of the output specification table.
SequencingID-As specified in HL7 Table 0397- Sequencing. Default is Ascending.