Reference·NM1 Segment·NM108
X12 837P Reference

X12 837P NM108 (Identification Code Qualifier): Format, Values, and Testing Notes

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

NM108 and NM109 are a matched pair — the qualifier in NM108 defines what kind of number NM109 is supposed to hold, and a mismatched pair is one of the more common reasons a claim clears syntax validation but still gets rejected downstream.

Quick answer

NM108 is a code that specifies the type of identifier carried in the following element, NM109 — for example, whether it's a National Provider Identifier, a member ID, or a tax identification number.

Valid code values

XX
National Provider Identifier — the standard qualifier for provider NPIs in 837P
MI
Member Identification Number — used for the subscriber's payer-assigned ID
34
Social Security Number — rarely used for provider identification, largely phased out
24
Employer's Identification Number — tax ID, used in some payer or organization loops
SV
Service Provider Number — a payer-assigned provider number, used when no NPI applies

Example

Synthetic example Generated by Synthibase
NM1*85*2*RIVERBEND FAMILY MEDICINE*****XX*1932847561*

Qualifier XX tells the reader NM109 holds a National Provider Identifier, not a tax ID or payer-assigned number. Synthetic claim data.

Where this trips people up

It's common for test data generators to hardcode NM108 = XX for every provider loop without checking whether the provider actually has an NPI on file — for atypical providers who bill with a payer-assigned number instead, that produces a qualifier/number pair that doesn't match anything in the payer's provider file, and the claim gets rejected for an unrecognized provider ID rather than a segment-level error.

How to Test X12 837P NM1: A Field-by-Field Breakdown
EDI Rejection Codes: Complete List and How to Fix Them
What is X12 837P? Complete Format and Field Guide
Test the right qualifier and ID pairing every time
Synthibase generates synthetic 837P claims with correctly paired NM108/NM109 identifiers — NPIs that pass checksum validation, member IDs formatted per payer.
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.