Reference·NM1 Segment·NM107
X12 837P Reference

NM107 in X12 837P: A Field Guide to Name Suffix

Jul 27, 2026 · 4 min read
← NM109

NM107 sits between two elements, NM105 and NM106, that are both usually blank in 837P — which means test files that skip it entirely can still parse correctly, right up until a real record with a suffix like III or Jr. exposes a delimiter-counting bug nobody caught.

Quick answer

NM107 is the optional name-suffix element of the NM1 segment — it carries generational or professional suffixes like Jr., Sr., or III for a person named in NM103/NM104.

What this element contains

JR
Junior — common generational suffix
SR
Senior — common generational suffix
III
Third — less common but still valid free text
Blank
no suffix — the overwhelming majority of NM1 loops

Example

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

NM107 carries the suffix JR for the subscriber, with NM106 (Name Prefix) left blank immediately before it. Synthetic claim data.

Where this trips people up

Because NM107 is populated so rarely, small hand-built or lightly randomized test suites tend to never include a record with a suffix — so the first time a claim with a Jr. or III in it hits the pipeline, it's also the first time anyone finds out whether the mapping logic correctly counts the empty NM106 delimiter before it. Deliberately including a handful of suffixed names in synthetic test data catches this before go-live instead of after.

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
Include the edge-case names your test data usually misses
Synthibase generates synthetic patient and subscriber names that include suffixes, prefixes, and middle names — not just the simplified cases most test files stick to.
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.