Reference·OBX Segment·OBX-6
HL7 v2 Reference

What Is HL7 v2 OBX-6? Units, Explained for Testers

Jul 27, 2026 · 4 min read
← OBX-5 OBX-7 →

A numeric result without its unit is close to meaningless — a potassium of 4.2 is normal, but the same number in the wrong unit could look like a critical value — which makes OBX-6 one of the quieter fields that can cause real clinical confusion if it is dropped or mismatched.

Quick answer

OBX-6 is the sixth field of the HL7 v2 OBX segment — it carries the unit of measure for the value in OBX-5, commonly expressed as a UCUM code alongside a human-readable label.

What this field contains

Component 1
Unit identifier or code (e.g. mmol/L, mg/dL)
Component 2
Text description of the unit, when a coding system is used
Component 3
Name of the coding system (e.g. UCUM), when present

Example

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

mmol/L in OBX-6 gives the unit for the numeric potassium value 4.2. Synthetic result — not a real patient.

Where this trips people up

Some labs report certain analytes in different units depending on the instrument or panel — for example a value in mg/dL from one feed and mmol/L from another for the same analyte. Systems that store or display OBX-5 without checking OBX-6 against an expected unit can end up comparing values on different scales, which silently corrupts trending and can make a normal result look abnormal or vice versa.

How to Test HL7 v2 OBX: A Field-by-Field Breakdown
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Regression Testing for EHR Upgrades: A Complete Guide
Generate unit variation across synthetic results
Synthibase generates synthetic OBX segments with realistic unit variation across feeds, so unit-handling bugs surface in testing instead of a clinician-facing screen.
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.