Reference·NM1 Segment·NM105
X12 837P Reference

Understanding X12 837P NM105: Name Middle in Practice

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

NM105 rarely causes a rejection on its own, but leaving it out of test data entirely means your suite never exercises the positional gap it leaves before NM106 and NM107 — and that gap is exactly where hand-built test files tend to miscount delimiters.

Quick answer

NM105 is the optional middle-name or middle-initial element of the NM1 segment, populated only when NM102 = 1 and the source data includes a middle name.

What this element contains

Full middle name
e.g. MARGARET — used when the source system stores a complete middle name
Middle initial
e.g. M — far more common in practice than a full middle name
Blank
no middle name on file — the most frequent case — element is simply omitted

Example

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

NM105 holds the single-letter middle initial M for the subscriber. Synthetic claim data.

Where this trips people up

Because NM105 is so often blank, test suites built from a handful of sample records rarely include a populated middle name — which means the first time a real middle name shows up in production, it's also the first time anyone discovers the parser miscounts delimiters when NM105 is present but NM106 still isn't. It's a cheap gap to close by making sure at least some synthetic records populate it.

How to Test X12 837P NM1: A Field-by-Field Breakdown
How to Generate Synthetic X12 837 Test Data for EDI Go-Live Testing
What is X12 837P? Complete Format and Field Guide
Cover the name fields your test data usually skips
Synthibase generates synthetic subscriber records with realistic middle names and initials included — not just the fields that are easy to fake.
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.