Reference·NM1 Segment·NM104
X12 837P Reference

X12 837P NM104 Field Guide: Name First Codes and Common Mistakes

Jul 27, 2026 · 4 min read
← NM103 NM105 →

NM104 only makes sense once NM102 has told the reader it's looking at a person — populate it for an organization's NM1 loop and you've created a field that has no defined meaning at all.

Quick answer

NM104 is the first-name element of the NM1 segment, populated only when NM102 = 1 (person); it stays blank for organizational NM1 loops like a payer or billing group.

What this element contains

Person (NM102=1)
First name — e.g. PRIYA — required whenever a full legal name is expected
Organization (NM102=2)
Left blank — no first name exists for a business entity
Length
Up to 35 characters — free text, not code-restricted

Example

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

NM104 holds PRIYA, the subscriber's first name, immediately after the last name in NM103. Synthetic claim data.

Where this trips people up

Synthetic or migrated test files sometimes carry a first name in NM104 even when NM102 is set to 2 for an organization, usually because the source system used a single "contact name" field for both people and businesses. Translators that enforce the person/organization distinction will reject the segment; those that don't will pass through data that doesn't match anything a real payer would send.

How to Test X12 837P NM1: A Field-by-Field Breakdown
What is X12 837P? Complete Format and Field Guide
How to Generate Synthetic X12 837 Test Data for EDI Go-Live Testing
Stop hand-building name fields for test claims
Synthibase generates properly split synthetic first, middle, and last names for every subscriber and patient NM1 loop — no PHI, no manual spreadsheet wrangling.
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.