X12 837P NM108 (Identification Code Qualifier): Format, Values, and Testing Notes
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.
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
Example
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.