Testing X12 837P CLM05-2: What Facility Code Qualifier Actually Needs to Handle
CLM05-2 looks trivial because it only ever carries one value in a professional claim — which is exactly why teams stop validating it and never notice when a code generation bug quietly swaps in the wrong qualifier.
CLM05-2 is the Facility Code Qualifier, the second component of the CLM05 composite in an X12 837P claim — it tells the payer which code list the facility code in CLM05-1 was drawn from.
Valid code values
Example
The B in the composite 11:B:1 confirms the 11 that precedes it is a CMS place-of-service code. Synthetic claim data.
Where this trips people up
Because CLM05-2 is almost always B, some hand-built test files hardcode the entire CLM05 composite as a string — so when a code refactor accidentally drops or mangles the qualifier, the mistake sails through every test that never checks the field in isolation and only surfaces as an obscure 999 syntax rejection.