Reference·X12 837P·NM1
X12 837P Reference

How to Test X12 837P NM1: A Field-by-Field Breakdown

Jul 27, 2026 · 6 min read

The same three-character segment, NM1, shows up a dozen or more times in a single 837P claim — once for the billing provider, once for the subscriber, once for the rendering provider, and so on — and the only thing telling your parser which name it's looking at is a two-character code buried in the first element. Get that code wrong when generating or reading test data and you end up billing the payer as the patient.

Quick answer

NM1 (Individual or Organizational Name) is a reusable X12 segment that carries a person's or organization's name and identifying number; in an 837P claim it appears repeatedly, once per loop, to identify the billing provider, subscriber, patient, payer, and other parties.

The elements that actually matter in practice

NM101 →
Entity Identifier Code — which party this occurrence of NM1 represents — billing provider, subscriber, payer, etc.
NM102 →
Entity Type Qualifier — 1 for a person, 2 for an organization — determines whether NM103 holds a last name or a business name
NM103 →
Name Last or Organization Name — last name for a person, full legal name for an organization
NM104 →
Name First — first name, only populated when NM102 = 1
NM105 →
Name Middle — middle name or initial, optional
NM107 →
Name Suffix — Jr., Sr., III, etc. — rarely populated but still validated when present
NM108 →
Identification Code Qualifier — tells the reader what kind of ID follows in NM109 — NPI, EIN, member ID, etc.
NM109 →
Identification Code — the actual identifier — an NPI for most 837P providers

Example

Synthetic example Generated by Synthibase
NM1*IL*1*HARTWELL*MARCUS*T**JR*MI*X88221145501*

This occurrence uses entity code IL for the subscriber, entity type 1 for a person, and identification qualifier MI with a synthetic member ID. Synthetic claim data.

Where this trips people up

Because every NM1 loop looks structurally identical, it's easy for a mapping engine — or a hand-built test file — to put the billing provider's NPI in the subscriber's NM1 loop, or vice versa, especially when loops get reordered during an EDI translator upgrade. The segment parses cleanly and passes syntax validation either way; the claim just gets attributed to the wrong entity, and that usually isn't caught until a payer rejects it for a provider/subscriber mismatch.

What is X12 837P? Complete Format and Field Guide
How to Validate X12 EDI Files Before Payer Submission
Generate synthetic NM1 loops for every entity type
Synthibase generates synthetic 837P claims with correctly scoped NM1 loops for every provider, subscriber, and payer role — no PHI, no mismatched entity codes.
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.