Reference·X12 837I·NM1
X12 837I Reference

Testing X12 837I NM1: The Fields Your System Actually Needs to Handle

Jul 28, 2026 · 6 min read

An 837P claim usually needs one physician's name on it. An 837I claim for a surgical inpatient stay can legitimately need three — the facility billing the claim, the attending physician who's responsible for the patient, and the operating physician who performed the procedure — and all three ride on the exact same NM1 segment structure, distinguished only by the entity code in NM101.

Quick answer

NM1 (Individual or Organizational Name) on an X12 837I institutional claim carries the name and identifying number of a claim party, repeated once per loop. Where an 837P mostly uses it for the billing provider and subscriber, an 837I claim also relies on it to identify the attending physician and, when applicable, the operating physician tied to the facility stay.

The elements that actually matter in practice

NM101 →
Entity Identifier Code — which party this occurrence represents — billing provider, attending physician, operating physician, subscriber, etc.
NM102
Entity Type Qualifier — 1 for a person, 2 for an organization — a facility billing provider is almost always an organization
NM103 →
Name Last or Organization Name — the physician's last name, or the facility's legal name for an organizational entity
NM104
Name First — first name, populated only for person-type entities like the attending or operating physician
NM108
Identification Code Qualifier — tells the reader what kind of identifier follows — almost always XX for an NPI on modern institutional claims
NM109 →
Identification Code — the physician's or facility's NPI — see the dedicated page below

Example

Synthetic example Generated by Synthibase
NM1*71*1*OKONKWO*DARA*R***XX*1932847710*

A synthetic attending physician occurrence: entity code 71 for attending physician, entity type 1 for a person, qualifier XX identifying the ID that follows as an NPI. Synthetic claim data.

Where this trips people up

Teams that build their 837I test data by copying an 837P NM1 loop structure frequently forget the attending physician loop entirely, since a professional claim never carries one. The claim passes basic syntax checks and gets submitted, then comes back rejected because most payers treat the attending physician as required on facility claims, not optional. The second common miss is dropping the operating physician's NM1 loop on a surgical claim while keeping the attending — the two roles are easy to conflate when a synthetic dataset only ever populates one physician per test case.

How to Test 837I Institutional Claims: A Complete Guide
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Generate synthetic NM1 loops for every institutional role
Synthibase generates synthetic 837I claims with correctly populated billing provider, attending physician, and operating physician NM1 loops — no PHI, no missing physician occurrences.
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.