Reference·NM1 Segment·NM101
X12 837I Reference

X12 837I NM101 (Entity Identifier Code): Format, Values, and Testing Notes

Jul 28, 2026 · 4 min read
NM103 →

A hospital claim can carry four or five NM1 occurrences that look identical except for two characters at the start. Get NM101 wrong and a claim built around a surgery ends up with no operating physician on file at all, or the attending and operating roles swapped.

Quick answer

NM101 is the Entity Identifier Code on an X12 837I institutional claim — a short code that tells the reader which party a given NM1 occurrence names, such as the billing provider, the attending physician, or the operating physician.

Common values on an institutional claim

85
Billing Provider — the facility submitting the claim
71
Attending Physician — the physician responsible for the patient's care during the stay
72
Operating Physician — the physician who performed a surgical procedure, when applicable
IL
Subscriber — the policyholder the coverage is tied to

Example

Synthetic example Generated by Synthibase
NM1*72*1*FENWICK*ALICIA*M***XX*1740298117*

A synthetic operating physician occurrence: entity code 72 identifies this NM1 as the surgeon on the claim. Synthetic claim data.

Where this trips people up

Because the attending and operating physician loops share the same structure and often appear back to back, hand-assembled or poorly mapped test files sometimes put the same physician's NPI under both entity codes, or transpose the two roles entirely. The claim parses fine either way — nothing about NM1's syntax flags a role mismatch — and the error only becomes visible when a payer's clinical edits expect a surgical procedure code to line up with a distinct operating physician who isn't also listed as attending.

Testing X12 837I NM1: The Fields Your System Actually Needs to Handle
How to Test 837I Institutional Claims: A Complete Guide
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Generate correctly scoped physician roles automatically
Synthibase generates synthetic 837I claims with distinct, correctly coded attending and operating physician NM1 loops — no PHI, no swapped clinical roles.
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.