Reference·OBX Segment·OBX-5
HL7 v2 Reference

OBX-5 in HL7 v2: A Field Guide to Observation Value

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

OBX-5 is the field everyone actually cares about — the result itself — but it has no fixed shape of its own; its meaning only makes sense once you already know what OBX-2 declared it to be.

Quick answer

OBX-5 is the fifth field of the HL7 v2 OBX segment — it carries the actual observation value, formatted according to whatever data type was declared in OBX-2, whether that is a number, a coded value, or free text.

What this field contains

When OBX-2 is NM
A plain numeric value, e.g. 4.2
When OBX-2 is CE
A coded value, e.g. code^text^coding system
When OBX-2 is TX
Free-text narrative, often spanning multiple repeating OBX segments
When OBX-2 is SN
A structured numeric with an optional comparator, e.g. >^1000

Example

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

4.2 in OBX-5 is the numeric potassium value, valid only because OBX-2 declared this segment as NM. Synthetic result — not a real patient.

Where this trips people up

Long narrative results, like a radiology or pathology report, are frequently split across multiple repeating OBX segments because a single field or line has a practical length limit in some systems. Integrations that only read the first OBX-5 for a given report and never reassemble the rest end up storing a truncated impression, and nobody notices until a clinician opens the full report elsewhere and finds it cut off mid-sentence.

How to Test HL7 v2 OBX: A Field-by-Field Breakdown
Healthcare API Testing Guide: FHIR and X12
Synthetic Patient Data: Complete Guide for Software Testing
Generate every observation value format automatically
Synthibase generates synthetic OBX-5 values across numeric, coded, and multi-segment text results, so downstream parsing gets tested against the full range of result shapes, not just short numbers.
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.