Reference·NM1 Segment·NM103
X12 837P Reference

What Is X12 837P NM103? Name Last or Organization Name, Explained for Testers

Jul 27, 2026 · 4 min read
← NM102 NM104 →

NM103 is the one element in the NM1 segment that changes meaning depending on the value sitting two positions earlier — read it without checking NM102 first and you'll misinterpret an organization name as somebody's surname.

Quick answer

NM103 holds the last name of a person when NM102 = 1, or the full organization name when NM102 = 2 — a single free-text field whose interpretation depends entirely on the entity type qualifier that precedes it.

What this element contains

Person
Surname only — e.g. HARTWELL — first and middle names go in NM104/NM105
Organization
Full legal or trade name — e.g. RIVERBEND FAMILY MEDICINE — the whole name in one field
Length
Up to 60 characters — long organization names sometimes get truncated by downstream systems

Example

Synthetic example Generated by Synthibase
NM1*IL*1*OKAFOR*PRIYA*M***MI*ZZ4471209*

NM103 holds OKAFOR, the subscriber's last name, since NM102 = 1 marks this as a person. Synthetic claim data.

Where this trips people up

A common test-data bug is populating NM103 with a full "Last, First" string instead of just the surname — it looks fine in a spreadsheet used to generate the file, but it breaks name-matching logic on the payer side that expects NM103, NM104, and NM105 to already be split into separate fields.

How to Test X12 837P NM1: A Field-by-Field Breakdown
What is X12 837P? Complete Format and Field Guide
How to Validate X12 EDI Files Before Payer Submission
Generate realistic synthetic names, not placeholder strings
Synthibase generates synthetic subscriber, provider, and payer names correctly split across NM103–NM105 — ready for real name-matching logic, not just syntax checks.
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.