Skip to content
Contact Us

HL7 OBX Segment: Observation/Result

The HL7 OBX segment (Observation/Result) carries individual observation values within ORU (result), ORM (order), and other HL7 v2 message types. Each OBX segment holds a single result value — a lab measurement, a radiology finding, a vital sign, or an embedded document.

OBX 19 fields
Seq Name Type Opt Description
OBX-1 Set ID SI O Sequence number (1, 2, 3...)
OBX-2 Value Type ID R Data type of OBX-5 (NM, ST, CE, TX, ED)
OBX-3 Observation Identifier CE R LOINC code or local test code
OBX-4 Observation Sub-ID ST O Distinguishes repeated observations
OBX-5 Observation Value varies R The actual result value
OBX-6 Units CE O UCUM or local unit of measure
OBX-7 Reference Range ST O Normal range (e.g., "70-100")
OBX-8 Abnormal Flags IS O N, L, H, LL, HH, A, AA
OBX-9 Probability NM O Statistical probability of result
OBX-10 Nature of Abnormal Test ID O Age-based, sex-based, or race-based
OBX-11 Observation Result Status ID R F, P, C, A, R, I, X, W
OBX-12 Effective Date TS O When the reference range was established
OBX-13 User Defined Access Checks ST O Access control codes
OBX-14 Date/Time of Observation TS O When the observation was made
OBX-15 Producer's ID CE O Lab/department that produced the result
OBX-16 Responsible Observer XCN O Person who made the observation
OBX-17 Observation Method CE O Methodology used
OBX-18 Equipment Instance Identifier EI O Analyzer/instrument ID
OBX-19 Date/Time of Analysis TS O When the analysis was performed
OBX-1 O
Set ID SI

Sequence number (1, 2, 3...)

OBX-2 R
Value Type ID

Data type of OBX-5 (NM, ST, CE, TX, ED)

Determines how to parse OBX-5. Common types: NM (numeric), ST (string), CE (coded entry), TX (text), ED (embedded document like PDF).

OBX-3 R
Observation Identifier CE

LOINC code or local test code

Best practice: use LOINC codes (e.g., 2345-7^Glucose^LN). Integration engines map between local and standard codes.

OBX-4 O
Observation Sub-ID ST

Distinguishes repeated observations

Used when multiple OBX segments share the same OBX-3. Common in microbiology cultures and panels.

OBX-5 R
Observation Value varies

The actual result value

Data type varies based on OBX-2. Can contain numeric values, coded entries, text, or Base64-encoded embedded documents.

OBX-6 O
Units CE

UCUM or local unit of measure

OBX-7 O
Reference Range ST

Normal range (e.g., "70-100")

OBX-8 O
Abnormal Flags IS

N, L, H, LL, HH, A, AA

N=Normal, L/H=Low/High, LL/HH=Critical Low/High, A/AA=Abnormal/Critically Abnormal. Critical flags (LL, HH, AA) trigger automated notifications per CLIA.

OBX-9 O
Probability NM

Statistical probability of result

OBX-10 O
Nature of Abnormal Test ID

Age-based, sex-based, or race-based

OBX-11 R
Observation Result Status ID

F, P, C, A, R, I, X, W

F=Final, P=Preliminary, C=Correction, A=Amended, X=Cancelled. Receiving systems must handle corrections (C) by updating the original result.

OBX-12 O
Effective Date TS

When the reference range was established

OBX-13 O
User Defined Access Checks ST

Access control codes

OBX-14 O
Date/Time of Observation TS

When the observation was made

When the observation was actually made. Critical for time-sensitive results. Also used as the correction timestamp on corrected results.

OBX-15 O
Producer's ID CE

Lab/department that produced the result

OBX-16 O
Responsible Observer XCN

Person who made the observation

OBX-17 O
Observation Method CE

Methodology used

OBX-18 O
Equipment Instance Identifier EI

Analyzer/instrument ID

OBX-19 O
Date/Time of Analysis TS

When the analysis was performed

R = Required, O = Optional, C = Conditional, W = Withdrawn (backward compatibility only)

The value type in OBX-2 tells the receiving system how to parse OBX-5:

TypeNameOBX-5 ExampleUse Case
NMNumeric98Lab values: glucose, creatinine, WBC
STStringPositiveText results, culture results
CECoded Entry260373001^Detected^SCTSNOMED or LOINC coded results
CWECoded With Exceptions260373001^Detected^SCTv2.5+ replacement for CE
TXTextNo acute cardiopulmonary diseaseRadiology impressions, narrative results
FTFormatted Text\.br\Line 1\.br\Line 2Multi-line formatted results
EDEncapsulated Data^APPLICATION^PDF^Base64^JVBERi...Embedded PDF reports, images
SNStructured Numeric>^10 or 1^:^256Ranges, ratios, comparators
TSTimestamp20260301143000Date/time observations
NRNumeric Range3.5^5.0Low-high range pair
FlagMeaningAction
NNormalNo alert
LLowBelow normal range
HHighAbove normal range
LLCritical LowBelow panic limit — immediate notification
HHCritical HighAbove panic limit — immediate notification
AAbnormalOutside normal limits (non-numeric)
AACritically AbnormalCritical deviation — immediate notification
<Below absolute lowOff-scale low
>Above absolute highOff-scale high

Critical flags (LL, HH, AA) typically trigger automated notification workflows per CLIA regulations.

StatusMeaningDescription
FFinalVerified result, no changes expected
PPreliminaryInitial result, final pending
CCorrectionPreviously final result corrected
AAmendedResult amended after finalization
REntered (Not Verified)Result entered, not yet reviewed
IPendingSpecimen in, result pending
XCancelledTest cancelled
WPost Original as WrongOriginal result was wrong

OBX-3: Observation Identifier (LOINC Coding)

Section titled “OBX-3: Observation Identifier (LOINC Coding)”

OBX-3 identifies what was measured. Best practice is to use LOINC codes:

OBX|1|NM|2345-7^Glucose^LN||98|mg/dL|70-100|N|||F
ComponentValueMeaning
CE.12345-7LOINC code
CE.2GlucoseDisplay name
CE.3LNLOINC coding system

Common LOINC codes in OBX segments:

LOINCTest Name
2345-7Glucose
2160-0Creatinine
3094-0BUN
2951-2Sodium
2823-3Potassium
6690-2WBC
718-7Hemoglobin
4544-3Hematocrit
777-3Platelet Count

Radiology and pathology systems often embed full reports as PDFs in OBX-5:

OBX|1|ED|PDF_REPORT^Radiology Report^LOCAL||^APPLICATION^PDF^Base64^JVBERi0xLjQ...||||||F

The ED data type structure in OBX-5:

  1. Source application (optional)
  2. Type: APPLICATION, IMAGE, TEXT
  3. Subtype: PDF, RTF, JPEG, TIFF
  4. Encoding: Base64, Hex
  5. Data: The encoded content

When multiple OBX segments share the same OBX-3 identifier, OBX-4 (Sub-ID) distinguishes them. Common scenarios:

  • Microbiology: Culture results with multiple organisms, each with sensitivity panels
  • Blood bank: Multiple components from a single draw
  • Panels: Repeated measurements over time within a single order

When correcting a finalized result, send a new ORU with:

  • Same OBR-3 (filler order number) to match the original order
  • OBX-11 = C (Correction) on the corrected result
  • Updated OBX-5 with the correct value
  • OBX-14 with the correction timestamp

The receiving system should display the corrected value while maintaining an audit trail of the original.