Z85
Pharmacy Information Comprehensive
To retrieve patient pharmacy history information from the Server.
Query/Response Flow
Input Fields
QPD
| Seq | Field Name | Type | Opt | Rep | Len | K/S | Sort | Op | Table | Segment Field |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | MessageQueryName | CE | R | 60 | - | |||||
| 2 | QueryTag | ST | R | 32 | - | |||||
| 3 | PatientList PID-3: Patient Identifier List | CX | O | 20 | S | Y | PID.3 | |||
| 4 | OrderControlCode ORC-1: Order Control | ID | * | 2 | S | - | 119 | ORC.1 | ||
| 5 | OrderingProvider ORC-12: Ordering Provider | XCN | 120 | S | - | ORC.12 | ||||
| 6 | MedicationDispensed RXD-2: Dispense/Give Code | CE | O | 100 | S | Y | = | RXD.2 | ||
| 7 | DispenseDate.LL RXD-3: Date/Time Dispensed | TS | O | 26 | S | Y | >; = | RXD.3 | ||
| 8 | DispenseDate.UL RXD-3: Date/Time Dispensed | TS | O | 26 | S | Y | <; = | RXD.3 |
Message Structures
4 segments
R RequiredO Optional Choice
MSH
R1QPD
R1RCP
R1DSC
O128 segments
R RequiredO Optional Choice
MSH
R1MSA
R1ERR
O1QAK
R1QPD
R1PATIENT
O1PID
R1PD1
O1NTE
O*AL1
O*COMMON_ORDER
R*ORC
R1ORDER_DETAIL
O1RXO
R1RXR
R*RXC
O*ENCODED_ORDER
O1RXE
R1RXR
R*RXC
O*DISPENSE
O1RXD
R1RXR
R*RXC
O*GIVE
O1RXG
R1RXR
R*RXC
O*ADMINISTRATION
O1RXA
R1RXR
R*RXC
O*OBSERVATION
R*OBX
O1NTE
O*DSC
O1Query Properties
Query Mode
BothQuery Type
QueryQuery Characteristics
May specify patient, medication, a date range, how the response is to be sorted, and what segment groups are to be returned.
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 | - |
| 3 | Quantity Limited Request | 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. |
| 4 | Quantity Limited Request | Units | CE | - | CHaracters, LInes, PaGes, or RecorDs. Default is LI. |
| 5 | Response Modality | Units | CE | 60 | Real time or Batch. Default is R. |
| 6 | Segment group inclusion | Units | ID | 256 | What segment group(s) are to be included. If this field is not valued, all segment groups will be included. |