QRD — Query Definition
Appears in QRY messages (query) and QRY^Q01 and QRY^Q02 message types. Legacy interfaces may still use this heavily.
The QRD segment defines the parameters of a query request in the original-mode query framework. It specifies what data is being requested, from whom, and how results should be returned. This segment is deprecated in HL7 v2.5+ in favor of the newer query framework.
Real-World Context
QRD shows up most often in legacy lab and pharmacy interfaces that pre-date the new query framework. If you are maintaining an older interface that uses QRY messages, QRD defines what data is being requested. New implementations should use the newer query framework, but you will encounter QRD in systems that have not been upgraded.
Field Reference
Click any row to see the full description, common values, and troubleshooting tip.
| # | Field Name | Type | Req | Max Len | |
|---|---|---|---|---|---|
| 1 | Query Date/Time | TS | R | 26 | ▶ |
| 2 | Query Format Code | ID | R | 1 | ▶ |
| 3 | Query Priority | ID | R | 1 | ▶ |
| 4 | Query ID | ST | R | 10 | ▶ |
| 5 | Deferred Response Type | ID | O | 1 | ▶ |
| 6 | Deferred Response Date/Time | TS | O | 26 | ▶ |
| 7 | Quantity Limited Request | CQ | R | 10 | ▶ |
| 8 | Who Subject Filter | XCN | R | 250 | ▶ |
| 9 | What Subject Filter | CE | R | 60 | ▶ |
| 10 | What Department Data Code | CE | O | 60 | ▶ |
| 11 | What Data Code Value Qualifier | CM | O | 20 | ▶ |
| 12 | Query Results Level | ID | O | 1 | ▶ |
Example Segment
1QRD||20260310143205|R|I|Q001||25^RD|123456^^^HOSPITAL^MR|DEM^Demographics
Related Segments
Parse messages with QRD in real time
Paste any HL7 message into our free viewer. Decodes every segment and field instantly, client-side.
Open HL7 Message Viewer →Need HL7 mapping templates?
The HL7 Integration Toolkit includes field mapping worksheets, interface spec templates, and a go-live checklist for every major HL7 message type.
View HL7 Integration Toolkit →