Z87
Dispense Information
To retrieve patient pharmacy dispense history information from the Server.
Note that the following Query Profile contains many more input parameters. The user is allowed to populate as many of these as desired.
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 | PatientName PID-5 Patient Name | XPN | 48 | - | PID.5 | |||||
| 3 | OrderControlCode ORC-1 Order Control | ID | 2 | S | - | 119 | ORC.1 | |||
| 4 | MedicationDispensed RXD-2 Dispense/Give Code | CWE | 100 | S | Y | RXD.2 | ||||
| 5 | DispenseDate RXD-2 Date/Time Dispensed | DTM | 26 | S | - | RXD.3 | ||||
| 6 | QuantityDispensed RXD-4 Actual Dispense Amount | NM | 20 | L | - | RXD.4 | ||||
| 7 | OrderingProvider ORC-12 Ordering Provider | XCN | 120 | S | - | ORC.12 |
Message Structures
7 segments
R RequiredO Optional Choice
MSH
R1SFT
O*UAC
O1QPD
R1QBP
O1Hxx
O1RCP
R1DSC
O133 segments
R RequiredO Optional Choice
MSH
R1SFT
O*UAC
O1MSA
R1ERR
O1QAK
R1QPD
R1RCP
R1PATIENT
O1PID
R1PD1
O1NTE
O*ALLERGY
O1AL1
R*VISIT
O1PV1
R1PV2
O1COMMON_ORDER
R*ORC
R1TIMING
O*TQ1
R1TQ2
O*ORDER_DETAIL
O1RXO
R1NTE
O*RXR
R*COMPONENT
O1RXC
R*NTE
O*ORDER_ENCODED
O1RXE
R1TIMING_ENCODED
O*TQ1
R1TQ2
O*RXR
R*RXC
O*RXD
R1RXR
R*RXC
O*OBSERVATION
R*OBX
O1NTE
O*DSC
R1Query Properties
Query Mode
BothQuery Type
QuerySegment Pattern
RDS_O01Query Characteristics
Selection criteria are chosen from a Virtual Table. May specify patient, medication, and a date range.
Response Characteristics
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 | Segment group inclusion | - | ID | 256 | What segment group(s) are to be included. If this field is not valued, all segment groups will be included. |