NPI Numbers in EDI Claims: Billing vs. Rendering vs. Facility

August 10, 2026 · EDI Paisan Team
edi npi 837p 837i healthcare billing revenue cycle x12

If you’ve spent any time troubleshooting EDI claim rejections, you’ve almost certainly run into an NPI-related error. Maybe the payer returned a 2B rejection — NPI submitted is not valid. Maybe the claim sailed through clearinghouse validation only to bounce back from the payer with rendering provider not found. Or worse, it paid to the wrong entity.

NPI errors are frustratingly common because the same NPI concept — a 10-digit provider identifier — actually shows up in three distinct roles inside an 837 claim file, each mapped to a different loop, each serving a different business purpose. Mixing them up is one of the most reliable ways to trigger denials and delayed payment.

This post breaks down billing provider NPIs, rendering provider NPIs, and facility NPIs: what they are, where they live in the X12 837 transaction, and what goes wrong when they’re configured incorrectly.


What Is an NPI, and Why Are There Multiple?

The National Provider Identifier is a HIPAA standard unique identifier assigned by CMS to health care providers. Every individual clinician, every clinic, every hospital — if they bill for services — has an NPI. There are two types:

  • Type 1 NPI — Individual practitioners (physicians, nurses, therapists, etc.)
  • Type 2 NPI — Organizations (hospitals, group practices, labs, etc.)

In the context of an EDI claim, a single encounter may involve multiple providers in different roles:

  1. The billing provider — who is submitting the claim and expects to receive payment
  2. The rendering provider — who actually delivered the service to the patient
  3. The service facility — where the service was performed

Each of these maps to a separate loop in the 837 transaction, and each has a legitimate business reason for existing separately.


Loop 2010AA: The Billing Provider NPI

The billing provider is the legal entity responsible for submitting the claim. In EDI terms, this is Loop 2010AA, and it appears near the top of the claim — before any service line detail.

The NPI for the billing provider lives in the NM1 segment, qualifier 85 (Billing Provider):

NM1*85*2*VALLEY MEDICAL GROUP*****XX*1234567890~

Breaking this down:

  • NM1 — Name segment
  • 85 — Entity identifier code for Billing Provider
  • 2 — Entity type qualifier: 2 = Non-person entity (organization), 1 = Person
  • VALLEY MEDICAL GROUP — Billing provider name
  • XX — Identification code qualifier (always XX for NPI)
  • 1234567890 — The Type 2 NPI of the billing organization

Key rule: The billing provider NPI must be enrolled with the payer. If you submit a claim with a Type 2 NPI that isn’t in the payer’s provider directory, you’ll get an enrollment-related rejection regardless of whether the rendering provider is credentialed.

The billing provider loop also includes the address (Loop 2010AA, N3/N4 segments) and a REF segment for the Tax ID:

REF*EI*123456789~

That EI qualifier references the Employer Identification Number (EIN) — the TIN associated with the billing entity.


Loop 2310B: The Rendering Provider NPI

The rendering provider is the individual clinician who actually delivered the service to the patient. In 837P (professional) claims, this is Loop 2310B, a service-level loop that appears within the claim detail (Loop 2300).

NM1*82*1*JOHNSON*SARAH*L**MD*XX*9876543210~
  • 82 — Entity identifier code for Rendering Provider
  • 1 — Entity type qualifier: person
  • JOHNSON — Last name
  • SARAH — First name
  • L — Middle initial
  • MD — Suffix
  • XX — NPI qualifier
  • 9876543210 — The Type 1 NPI of the rendering physician

Why this matters: The rendering NPI is what payers use for credentialing checks. Even if the billing group is enrolled, if Dr. Johnson isn’t individually credentialed with that payer, the claim will deny. This is especially common with new providers who haven’t yet completed payer credentialing but are already seeing patients.

When Can You Omit the Rendering Provider?

If the rendering provider is the same as the billing provider (solo practitioner billing under their own NPI, for example), many payers allow — or even require — omitting Loop 2310B. The claim is understood to be self-referential. However, this varies by payer. When in doubt, populate it explicitly.

Rendering Provider in 837I Claims

In 837I (institutional/UB-04) claims, the rendering provider maps to Loop 2310A with the qualifier 71 (Attending Physician). Institutional claims also have separate loops for the Operating Physician (72, Loop 2310B) and Other Operating Physician (73, Loop 2310C), which are critical for surgical facility claims.

NM1*71*1*PATEL*RAVI****XX*1122334455~

Loop 2310C / 2310E: The Service Facility NPI

The service facility is where the service was delivered. For professional claims, this is Loop 2310C with entity qualifier 77 (Service Location). For institutional claims, the facility is typically the billing provider itself (Loop 2010AA), but there are scenarios — like physician professional billing for services at a hospital — where the service facility loop is populated separately.

NM1*77*2*MEMORIAL HOSPITAL OUTPATIENT*****XX*5544332211~
N3*100 HEALTH PLAZA~
N4*BOSTON*MA*02115~
  • 77 — Service Location entity identifier
  • 2 — Non-person entity (organization)
  • 5544332211 — Type 2 NPI of the facility

Why this matters: Many payers validate the place of service code against the service facility NPI. If you submit a claim with place of service 22 (On Campus – Outpatient Hospital) but the service facility NPI is for an office-based practice, you can expect a denial. Payers cross-reference their facility database against the NPI provided.

The facility NPI also affects reimbursement rates. Facility-based services are typically reimbursed differently than non-facility services under most fee schedules.


Common NPI Errors and How to Fix Them

1. Submitting a Type 1 NPI in a Type 2 NPI Position

Billing providers almost always require a Type 2 (organizational) NPI. Submitting a physician’s personal Type 1 NPI in Loop 2010AA as the billing provider is a common configuration error in practice management systems — especially when a solo physician’s individual NPI gets used as both the billing and rendering identifier.

Fix: Verify your billing entity’s NPI type at NPPES. If the practice is incorporated or operates as a group, the billing NPI should be Type 2.

2. Missing Rendering Provider on Group Claims

When a group practice bills under its Type 2 NPI, the individual rendering provider (Loop 2310B) is almost always required. A missing rendering NPI is one of the most frequent reasons for outright rejections from commercial payers.

Fix: Ensure your billing system is configured to populate Loop 2310B with the individual clinician’s Type 1 NPI on every claim where a group NPI is used in 2010AA.

3. Wrong NPI for Place of Service

Submitting a non-facility NPI when the service was rendered in a facility setting (hospital, ASC, skilled nursing facility) will misrepresent the service to the payer.

Fix: Audit claims where the POS code is 21, 22, 23, or 24 and verify the service facility NPI in Loop 2310C matches the actual facility where care was delivered.

4. NPI Not Enrolled with the Payer

Credentialing and enrollment are the billing team’s responsibility, but the EDI file must carry the correct NPI. If your rendering provider recently joined the group but credentialing hasn’t completed, claims will reject on the rendering NPI even if everything else is correct.

Fix: Cross-reference your credentialed provider roster with active NPI values before submitting. When in doubt, call the payer’s provider relations line to confirm enrollment status before submitting a batch.

5. Incorrect Qualifier Code

The XX qualifier in the NM1 segment must be used for NPIs. A stray SY (Social Security Number) or FI (Federal Taxpayer ID) qualifier in a position where an NPI is expected will fail validation.

Fix: Run the raw 837 file through an EDI validator and confirm that every NPI-bearing NM1 segment uses qualifier XX in element position 8, and that the identifier in position 9 is exactly 10 digits.


Quick Reference: NPI Loops in 837P and 837I

Role837P Loop837I LoopNM1 QualifierNPI Type
Billing Provider2010AA2010AA85Type 2 (Org)
Rendering Provider2310B2310A82 / 71Type 1 (Individual)
Service Facility2310C2010AA (typically)77Type 2 (Org)
Referring Provider2310ADNType 1
Supervising Provider2310DDQType 1

Note: These are general conventions. Always consult the payer’s companion guide — specific loop usage requirements vary significantly by payer and state Medicaid program.


Validating NPI Data in Your EDI Files

The fastest way to catch NPI errors before submission is to open the raw X12 file and inspect the NM1 segments directly. Look for:

  1. Every NM1 segment with XX in position 8 — verify the NPI in position 9 is 10 numeric digits
  2. Entity qualifier codes — confirm 85 = billing, 82 = rendering, 77 = facility
  3. Entity type qualifier (position 2)1 for individuals, 2 for organizations

Manual inspection works for small files. For anything larger, a dedicated EDI viewer that can parse loops and segments by name makes this dramatically faster.


Summary

NPI numbers in EDI claims aren’t a “set it and forget it” configuration. Each role — billing, rendering, facility — has its own loop, its own NPI type requirement, and its own downstream implications for credentialing checks, fee schedules, and payment routing.

The most common errors are:

  • Using a Type 1 NPI where a Type 2 is required (billing provider)
  • Omitting the rendering provider NPI on group claims
  • Mismatched service facility NPIs vs. place of service codes

Getting these right at the EDI layer eliminates a significant source of preventable denials and follow-up work.


Ready to work with EDI files in your browser? Try EDI Paisan free — no install required.