MajwareMAJWARE
QRF
Message Control10 fields

QRF — Query Filter

Appears after QRD in QRY messages to provide additional filter criteria. Optional companion to QRD.

The QRF segment provides additional filtering criteria for queries defined by QRD. It allows specification of date ranges, user qualifiers, and other selection criteria for the query results. This segment is deprecated in HL7 v2.5+ along with QRD.

Real-World Context

QRF is the where clause of legacy HL7 queries. It narrows down what QRD requests by adding date ranges and additional qualifiers. In practice, you see this most often in legacy lab result query interfaces. The date range fields (QRF.2 and QRF.3) are the most commonly used and most commonly misconfigured.

Field Reference

Click any row to see the full description, common values, and troubleshooting tip.

#Field NameTypeReqMax Len
1Where Subject FilterSTR20▶
2When Data Start Date/TimeTSO26▶
3When Data End Date/TimeTSO26▶
4What User QualifierSTO60▶
5Other QRY Subject FilterSTO60▶
6Which Date/Time QualifierIDO12▶
7Which Date/Time Status QualifierIDO12▶
8Date/Time Selection QualifierIDO12▶
9When Quantity/Timing QualifierTQO60▶
10Search Confidence ThresholdNMO10▶

Example Segment

1QRF||LAB|20260101000000|20260310235959|||COL

Related Segments

Parse messages with QRF in real time

Paste any HL7 message into our free viewer. Decodes every segment and field instantly, client-side.

Open HL7 Message Viewer →

Need a message to test with?

Copy a realistic sample for any message type, or open it directly in the viewer. Free, no signup.

Browse HL7 Sample Messages →
← Back to HL7 Segment Reference