Previous Page TOC Index Next Page

2.24.4 QRD - original-style query definition segment

The QRD segment is used to define a query.

Figure 2-11. QRD attributes

SEQ

LEN

DT

OPT

RP/#

TBL#

ITEM #

ELEMENT NAME

1

26

TS

R



00025

Query Date/Time

2

1

ID

R


0106

00026

Query Format Code

3

1

ID

R


0091

00027

Query Priority

4

10

ST

R



00028

Query ID

5

1

ID

O


0107

00029

Deferred Response Type

6

26

TS

O



00030

Deferred Response Date/Time

7

10

CQ

R


0126

00031

Quantity Limited Request

8

60

XCN

R

Y


00032

Who Subject Filter

9

60

CE

R

Y

0048

00033

What Subject Filter

10

60

CE

R

Y


00034

What Department Data Code

11

20

ST

O

Y


00035

What Data Code Value Qual.

12

1

ID

O


0108

00036

Query Results Level

2.24.4.0 QRD field definitions

2.24.4.1 Query date/time (TS) 00025

Definition: This field contains the date the query was generated by the application program.

2.24.4.2 Query format code (ID) 00026

Definition: This field refers to HL7 table 0106 - Query/response format code for valid values.

Table 0106 - Query/response format code

Value

Description

D

Response is in display format

R

Response is in record-oriented format

T

Response is in tabular format

2.24.4.3 Query priority (ID) 00027

Definition: This field contains the time frame in which the response is expected. Refer to HL7 table 0091 - Query priority for valid values. Table values and subsequent fields specify time frames for response.

Table 0091 - Query priority

Value

Description

D

Deferred

I

Immediate

2.24.4.4 Query ID (ST) 00028

Definition: This field contains a unique identifier for the query. Assigned by the querying application. Returned intact by the responding application.

2.24.4.5 Deferred response type (ID) 00029

Definition: This field refers to HL7 table 0107 - Deferred response type for valid entries.

Table 0107 - Deferred response type

Value

Description

B

Before the Date/Time specified

L

Later than the Date/Time specified

2.24.4.6 Deferred response date/time (TS) 00030

Definition: This field contains the date/time before or after which to send a deferred response. If not present, the response can be sent when its available. (See QRD-5-deferred response type above).

2.24.4.7 Quantity limited request (CQ) 00031

Components: <quantity> ^ <units>

Definition: This field contains the maximum length of the response that can be accepted by the requesting system. Valid responses are numerical values given in the units specified in the second component. Refer to HL7 table 0126 - Quantity limited request for valid entries. Default is LI lines.

Table 0126 - Quantity limited request

Value

Description

CH

Characters

LI

Lines

PG

Pages

RD

Records

ZO

Locally defined

2.24.4.8 Who subject filter (XCN) 00032

Components: <ID number (ST)> ^ <family name (ST)> ^ <given name (ST)> ^ <middle initial or name (ST)> ^ <suffix (e.g., JR or III) (ST)> ^ <prefix (e.g., DR) (ST)> ^ <degree (e.g., MD) (ST)> ^ <source table (IS)> ^ <assigning authority (HD)> ^ <name type code (ID)> ^ <code identifying the check digit scheme employed(ID)> ^ <identifier type code (IS)> ^ <assigning facility ID (HD)>

Subcomponents of assigning authority: <namespace ID(IS)> & <universal ID (ST)> & <universal ID type (ID)>

Subcomponents of assigning facility: <namespace ID(IS)> & <universal ID (ST)> & <universal ID type (ID)>

Definition: This field identifies the subject, or who the inquiry is about.

2.24.4.9 What subject filter (CE) 00033

Components: <identifier (ID)> ^ <text (ST)> ^ <name of coding system (ST)> ^ <alternate identifier (ID)> ^ <alternate text (ST)> ^ <name of alternate coding system (ST)>

Definition: This field describes the kind of information that is required to satisfy the request. Valid values define the type of transaction inquiry and may be extended locally during implementation.

Table 0048 - What subject filter

Value

Description

ADV

Advice/diagnosis

ANU

Nursing unit lookup (returns patients in beds, excluding empty beds)

APN

Patient name lookup

APP

Physician lookup

ARN

Nursing unit lookup (returns patients in beds, including empty beds)

APM

Medical record number query, returns visits for a medical record number

APA

Account number query, return matching visit

CAN

Cancel. Used to cancel a query

DEM

Demographics

FIN

Financial

GOL

Goals

MRI

Most recent inpatient

MRO

Most recent outpatient

NCK

Network clock

NSC

Network status change

NST

Network statistic

ORD

Order

OTH

Other

PRB

Problems

PRO

Procedure

RES

Result

RAR

Pharmacy administration information

RER

Pharmacy encoded order information

RDR

Pharmacy dispense information

RGR

Pharmacy give information

ROR

Pharmacy prescription information

SAL

All schedule related information, including open slots, booked slots, blocked slots

SBK

Booked slots on the identified schedule

SBL

Blocked slots on the identified schedule

SOP

Open slots on the identified schedule

SSA

Time slots available for a single appointment

SSR

Time slots available for a recurring appointment

STA

Status

VXI

Vaccine Information

See HL7 Implementation Guide for detailed examples of use of various query filter fields.

2.24.4.10 What department data code (CE) 00034

Components: <identifier (ID)> ^ <text (ST)> ^ <name of coding system (ST)> ^ <alternate identifier (ID)> ^ <alternate text (ST)> ^ <name of alternate coding system (ST)>

Definition: This field contains the possible contents including test number, procedure number, drug code, item number, order number, etc. The contents of this field are determined by the contents of the previous field. This field could contain multiple occurrences separated by repetition delimiters.

2.24.4.11 What data code value qual (CM) 00035

Components: <first data code value (ST)> ^ <last data code value (ST)>

Definition: This field contains the what data code value qualifier. A window or range to further refine the inquiry. This field would contain start/stop separated by component separators.

2.24.4.12 Query results level (ID) 00036

Definition: This field is used to control level of detail in results. Refer to HL7 table 0108 - Query results level for valid values. See chapters 4 and 7.

Table 0108 - Query results level

Value

Description

O

Order plus order status

R

Results without bulk text

S

Status only

T

Full results

Previous Page TOC Index Next Page