Z97
Dispense History
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.
Query/Response Flow
Input Fields
QPD
| Seq | Field Name | Type | Opt | Rep | Len | K/S | Sort | Op | Table | Segment Field |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | MessageQueryName | CWE | R | 60 | - | |||||
| 2 | QueryTag | ST | R | 32 | - | |||||
| 3 | PatientList PID-3: Patient Identifier List | CX | O | 20 | S | Y | PID.3 | |||
| 4 | MedicationDispensed RXD-2: Dispense/Give Code | CWE | O | 100 | S | Y | = | RXD.2 | ||
| 5 | DispenseDate.LL RXD-3: Date/Time Dispensed | DTM | O | 24 | S | Y | > = | RXD.3 | ||
| 6 | DispenseDate.UL RXD-3: Date/Time Dispensed | DTM | O | 24 | S | Y | < = | RXD.3 |
Message Structures
6 segments
R RequiredO Optional Choice
MSH
R1SFT
O*UAC
O1QPD
R1RCP
R1DSC
O19 segments
R RequiredO Optional Choice
MSH
R1SFT
O*UAC
O1MSA
R1ERR
O1QAK
R1QPD
R1DSP
O*DSC
O1Query Properties
Query Mode
BothQuery Type
QueryQuery Characteristics
May specify patient, medication, a date range, and how the response is to be sorted.
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. |