Reference·OBR Segment·OBR-16
HL7 v2 Reference

Testing HL7 v2 OBR-16: What Ordering Provider Actually Needs to Handle

Jul 27, 2026 · 4 min read
← OBR-7 OBR-24 →

Result routing, callback workflows, and provider attribution all key off OBR-16. When a sending system populates the provider's name but leaves the ID number blank — which happens more often than most interfaces are built to expect — attribution logic that requires the ID silently drops the order into an unassigned queue.

Quick answer

OBR-16 is the sixteenth field of the HL7 v2 OBR segment — the Ordering Provider, an extended composite identifying the clinician who requested the study, typically carrying both an ID number and a name.

What this field contains

component 1
ID number — the provider's identifier — an internal ID, NPI, or similar
component 2-4
Name — last name, first name, middle initial
component 7
Degree — credential suffix such as MD, DO, or NP

Example

Synthetic example Generated by Synthibase
OBR|1|ORD44219^SYNTHIB|FIL98831^SYNTHIB|CBC^Complete Blood Count^L|||20260726090000|||||||||3021^HAYES^DEREK^A^^^MD||||||||CH|F||||||R/O anemia

OBR-16 carries 3021^HAYES^DEREK^A^^^MD — a provider ID, name, and credential. Synthetic provider — not a real clinician.

Where this trips people up

Some ordering systems populate the name components of OBR-16 reliably but leave the ID number component blank for providers who aren't yet enrolled in the local provider directory — locums, residents, cross-covering specialists. Downstream systems that match on ID number alone will fail to attribute the order to anyone, even though a human reading the message can see exactly who ordered it. Fallback matching on name components needs to be tested as its own path, not treated as unreachable code.

→
HL7 v2 OBR Segment Guide: Fields, Format, and Testing Gotchas
→
How to Write EDI Test Cases That Actually Catch Go-Live Failures
→
Synthetic Patient Data: Complete Guide for Software Testing
Generate orders across a realistic provider roster
Synthibase generates synthetic OBR segments with both fully enrolled and edge-case ordering providers, including missing ID 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.