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
Input Fields
QPD
VIRTUAL
| Seq | Field Name | Type | Opt | Rep | Len | K/S | Sort | Op | Table | Segment Field |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | PatientList PID-3: Patient Identifier List | CX | O | 20 | S | Y | PID.3 | |||
| 2 | OrderControlCode ORC-1 Order Control | ID | 2 | S | - | 119 | ORC.1 | |||
| 3 | MedicationDispensed RXD-2 Dispense/Give Code | CWE | 100 | S | Y | RXD.2 | ||||
| 4 | DispenseDate RXD-2 Date/Time Dispensed | DTM | 24 | S | - | RXD.3 | ||||
| 5 | QuantityDispensed RXD-4 Actual Dispense Amount | NM | 20 | L | - | RXD.4 | ||||
| 6 | OrderingProvider ORC-12 Ordering Provider | XCN | 120 | S | - | ORC.12 |
Message Structures
7 segments
R RequiredO Optional Choice
MSH
R1SFT
O*UAC
O1QPD
R1Hxx
O1RCP
R1DSC
O19 segments
R RequiredO Optional Choice
MSH
R1SFT
O*UAC
O1MSA
R1ERR
O1QAK
R1QPD
R1DSP
O*DSC
O1Query Properties
Query Mode
BothQuery 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)
| Seq | Name | Component | Type | Len | Description |
|---|---|---|---|---|---|
| 1 | Query Priority | - | ID | 1 | (D)eferred or (I)mmediate. Default is I. |
| 2 | Quantity Limited Request | - | CQ | 10 | - |
| ↳Quantity | NM | - | 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. | ||
| ↳Units | CWE | - | CHaracters, LInes, PaGes, or RecorDs. Default is LI. | ||
| 5 | Response Modality | - | CWE | 60 | Real time or Batch. Default is R. |
| 6 | Sort-by Field | - | SRT | 256 | - |
| ↳Sort-by Field | ST | - | 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. | ||
| ↳Sequencing | ID | - | As specified in HL7 Table 0397- Sequencing. Default is Ascending. |