Reference·OBX Segment·OBX-7
HL7 v2 Reference

HL7 v2 OBX-7 Field Guide: Reference Range Codes and Common Mistakes

Jul 27, 2026 · 4 min read
← OBX-6 OBX-8 →

A results screen that highlights abnormal values in red usually depends on comparing OBX-5 against OBX-7, not just trusting the OBX-8 flag — and reference ranges vary by lab, by age, and sometimes by sex, so a hardcoded range is a bug waiting for the wrong patient.

Quick answer

OBX-7 is the seventh field of the HL7 v2 OBX segment — it carries the normal reference range for the result in OBX-5, most often as a low-high pair separated by a hyphen.

What this field contains

low-high
A numeric range, e.g. 3.5-5.1
<high
An upper-bound-only range for values with no meaningful floor
>low
A lower-bound-only range for values with no meaningful ceiling
(blank)
No range supplied — common for qualitative or narrative results

Example

Synthetic example Generated by Synthibase
OBX|1|NM|2823-3^Potassium^LN||4.2|mmol/L|3.5-5.1|N|||F|||202607261430

3.5-5.1 in OBX-7 is the normal reference range that 4.2 falls within, consistent with the N abnormal flag. Synthetic result — not a real patient.

Where this trips people up

Reference ranges frequently differ by the age or sex of the patient, or by the specific instrument that ran the test, which means the same LOINC code can legitimately carry different OBX-7 values across messages. Systems that cache a single "normal range" per test rather than reading OBX-7 fresh from every result will occasionally flag a genuinely normal value as abnormal, or the reverse, for patients outside whatever range got cached first.

How to Test HL7 v2 OBX: A Field-by-Field Breakdown
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Healthcare API Testing Guide: FHIR and X12
Generate varied reference ranges automatically
Synthibase generates synthetic OBX segments with reference ranges that vary by patient and source system, so abnormal-flagging logic gets tested against more than one hardcoded range.
Start free trial →
This page is written independently by Synthibase for testing and informational purposes. It is not an official publication of HL7 International or X12/Washington Publishing Company, and is not a substitute for reviewing the official standard or your trading partner's companion guide. See our Terms of Service for full legal terms.