Q31

Dispense History

To retrieve patient pharmacy dispense history information from the Server.

No description available in the specification.

Query/Response Flow

Query Message
QBP^Q31
QBP_Q11
Response Message
RSP^K31
RSP_K31

Input Fields

QPD
SeqField NameTypeOptRepLenK/SSortOpTableSegment Field
1
MessageQueryName
CWER60-
2
QueryTag
STR32-
3
PatientList
PID-3: Patient Identifier List
CXO20SYPID.3
4
MedicationDispensed
RXD-2: Dispense/Give Code
CWEO100SY=RXD.2
5
DispenseDate.LL
RXD-3: Date/Time Dispensed
DTMO24SY> =RXD.3
6
DispenseDate.UL
RXD-3: Date/Time Dispensed
DTMO24SY< =RXD.3

Message Structures

7 segments
R RequiredO Optional Choice
MSH
R1
SFT
O*
UAC
O1
QPD
R1
QBP
O1
Hxx
O1
RCP
R1
DSC
O1
38 segments
R RequiredO Optional Choice
MSH
R1
MSA
R1
ERR
O*
SFT
O*
UAC
O1
QAK
R1
QPD
R1
RCP
R1
PATIENT
O1
PID
R1
ADDITIONAL_DEMOGRAPHICS
O1
PD1
R1
PRT
O*
NTE
O*
AL1
O*
PATIENT_VISIT
O1
PV1
R1
PV2
O1
PRT
O*
ORDER
R*
ORC
R1
TIMING
O*
TQ1
R1
TQ2
O*
ORDER_DETAIL
O1
RXO
R1
NTE
O*
RXR
R*
COMPONENTS
O*
RXC
R1
NTE
O*
ENCODING
O1
RXE
R1
NTE
O*
TIMING_ENCODED
R*
TQ1
R1
TQ2
O*
RXR
R*
RXC
O*
RXD
R1
PRT
O*
RXR
R*
RXC
O*
OBSERVATION
O*
OBX
R1
PRT
O*
NTE
O*
DSC
O1

Query Properties

Query Mode
Both
Query Type
Query
Segment Pattern
RDS_O01
Query Characteristics

May specify patient, medication, a date range, and how the response is to be sorted.

Response Characteristics

Sorted by Medication Dispensed unless otherwise specified in SortControl.