Queries

23 query definitions in HL7 v2.8.2

Chapter 5: Query:Query messages enable systems to request specific data from other systems. HL7 v2 supports various query patterns including QBP (Query By Parameter), QCN (Cancel Query), and virtualized table queries for retrieving patient, order, and clinical data.
Q21
Q21 Get Person Demographics

Returns demographics information for a specified person

Query/Response pair
Q22
Q22 Find Candidates

Returns list of candidates matching demographic data specified by the input parameters.

Query/Response pair
Q23
Q23 Get Corresponding Identifiers

Returns list of identifiers from the specified domains, given an identifier from a given domain.

Query/Response pair
Q24
Allocate Identifiers

Request that an MPI allocate an identifier for a given domain.

Query/Response pair
Q25
Personnel Information by Segment

Retrieve all available personnel information based upon the values of one or more commonly used search parameters

Query/Response pair
Q31
Dispense History

To retrieve patient pharmacy dispense history information from the Server.

Query/Response pair
Q32
Q32 Find Candidates With Visit Information

Returns list of candidates matching demographic and/or visit data specified by the input parameters.

Query/Response pair
Q33
Get Donor Record Candidates

Returns minimal information for set of donor records

Query/Response pair
Q34
Get Donor Record

Returns demographic information and donations for a donor

Query/Response pair
Z73
Information About Phone Calls

Retrieve all information about phone calls made during a defined interval either in a detailed or an accumulative format. The identifier for the patient must be given.

Query/Response pair
Z75
Tabular Patient List

To find patient records that closely (as specified by the Client) match a set of input criteria using a specified algorithm.

Query/Response pair
Z77
Tabular Patient List

To find patient records that closely (as specified by the Client) match a set of input criteria using a specified algorithm.

Query/Response pair
Z79
Dispense Information

To retrieve patient pharmacy dispense history information from the Server.

Query/Response pair
Z81
Dispense History

To retrieve patient pharmacy dispense history information from the Server.

Query/Response pair
Z83
ORU Subscription

Sends Lab Results, either filtered or unfiltered, as specified in the input parameters.

Query/Response pair
Z85
Pharmacy Information Comprehensive

To retrieve patient pharmacy history information from the Server.

Query/Response pair
Z87
Dispense Information

To retrieve patient pharmacy dispense history information from the Server.

Query/Response pair
Z89
Lab Results History

To retrieve patient laboratory results information from the Server.

Query/Response pair
Z91
Who Am I

Find the identity of the patient for specified medical record number(s)

Query/Response pair
Z93
Tabular Dispense History

Find medications dispensed between specified date range for specified medical record numbers.

Query/Response pair
Z95
Tabular Dispense History

To retrieve patient pharmacy dispense history information from the Server.

Query/Response pair
Z97
Dispense History

To retrieve patient pharmacy dispense history information from the Server.

Query/Response pair
Z99
Who Am I

Find the identity of the patient for specified medical record number(s)

Query/Response pair