Reference·OBX Segment·OBX-3
HL7 v2 Reference

Testing HL7 v2 OBX-3: What Observation Identifier Actually Needs to Handle

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

OBX-3 is how a receiving system knows what was actually measured, and most integrations key their result-mapping logic directly off the code in this field — a mismatched or missing coding system here means a perfectly valid result never gets matched to anything.

Quick answer

OBX-3 is the third field of the HL7 v2 OBX segment — a coded field that identifies what observation the result represents, typically a LOINC code paired with a human-readable text description.

What this field contains

Component 1
Identifier (e.g. a LOINC or local code)
Component 2
Text (human-readable name of the observation)
Component 3
Name of Coding System (e.g. LN for LOINC)

Example

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

2823-3^Potassium^LN identifies the observation as a LOINC-coded potassium test. Synthetic result — not a real patient.

Where this trips people up

Not every source system sends a LOINC code in OBX-3 — some send a local or proprietary code with LN left blank or replaced with a local coding-system identifier. Mapping logic that assumes every OBX-3 is LOINC-coded will fail to match those results against a reference catalog, and the observation ends up bucketed as "unrecognized" even though the data itself is perfectly valid.

How to Test HL7 v2 OBX: A Field-by-Field Breakdown
Healthcare API Testing Guide: FHIR and X12
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Generate realistic observation identifiers automatically
Synthibase generates synthetic OBX segments with both LOINC-coded and local-coded observation identifiers, so mapping logic gets tested against the coding-system variety real feeds actually send.
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.