An entity code in medical billing is a short alphanumeric label that identifies who or what a particular party is on an electronic claim. Every time a claim moves between a provider’s office and an insurance company, each person and organization involved gets tagged with one of these codes so the receiving system knows exactly who is the billing provider, who is the patient, who is the payer, and so on. Without entity codes, the computers processing millions of claims per day would have no standardized way to tell these parties apart.
How Entity Codes Work on a Claim
Entity codes are part of the X12 Electronic Data Interchange (EDI) standard, which is the format HIPAA requires for electronic healthcare transactions. Formally called “entity identifier codes,” they appear inside specific segments of the claim file, most commonly the NM1 (Name) segment. The first data element in that segment, NM101, holds the entity code. It’s a two- or three-character value that tells the system what role that named party plays.
For example, when your billing software generates an 837 Professional claim, it builds an NM1 segment for the billing provider and inserts code 85 in the entity identifier slot. A separate NM1 segment for the patient uses code QC. The insurance company receiving the claim is tagged with PR. Each segment then continues with the party’s name, identification number, and other details, but the entity code is what gives the whole block its meaning.
Common Entity Codes in Medical Claims
There are dozens of entity identifier codes, but a core set appears on nearly every professional or institutional claim:
- 85: Billing Provider, the practice or facility submitting the claim for payment.
- 87: Pay-to Provider, used when payment should go to a different entity than the billing provider.
- PE: Payee, often used for the pay-to plan name on a claim.
- 82: Rendering Provider, the clinician who actually performed the service.
- 71: Attending Physician, the doctor present when services were performed (common on facility claims).
- 72: Operating Physician, the surgeon who performed a procedure.
- PR: Payer, the insurance company or plan processing the claim.
- IL: Insured or Subscriber, the person who holds the insurance policy.
- QC: Patient, the individual who received care (sometimes the same person as the subscriber, sometimes not).
- 41: Submitter, the entity that transmitted the claim file.
- 40: Receiver, the entity that accepts the claim file for processing.
- P3: Primary Care Provider, the physician selected by the insured to manage their care.
Other codes cover parties you’ll encounter less frequently: 1E for an HMO, 1I for a PPO, 2B for a third-party administrator, D2 for a commercial insurer, and X3 for a utilization management organization. The full list runs to hundreds of entries because the X12 standard covers industries beyond healthcare, but only a subset applies to medical claims.
Why the Subscriber and Patient Use Different Codes
One detail that trips up newer billers is the distinction between IL (insured/subscriber) and QC (patient). When someone visits a doctor and they are the policyholder, both codes refer to the same person, but they still appear in separate claim segments. When a child is treated under a parent’s insurance, the parent is the subscriber (IL) and the child is the patient (QC). Getting this wrong can cause the claim to be returned because the payer’s system can’t match the patient to the correct policy.
Entity Codes and Claim Rejections
Incorrect or missing entity codes are a real source of claim denials. The X12 standard defines specific status codes that clearinghouses and payers return when something is off. Status code 26, “Entity not found,” fires when the system can’t locate a party identified by a particular entity code. Status code 24 means an entity wasn’t approved as an electronic submitter. Status code 118 rejects a claim because the payer name is missing, and the rejection instructions specifically reference entity code IN (insurer).
In practice, most of these errors happen because of mismatches rather than literally blank fields. A billing system might populate the wrong entity code for a provider type, or a clearinghouse might not recognize the combination of entity code and identification number. When you see a rejection tied to an entity code, the fix usually involves verifying that the correct code is paired with the correct name and identifier in that NM1 segment.
Where Entity Codes Appear in Claim Files
If you work in a billing office and never look at raw claim files, you may never see an entity code directly. Your practice management software handles the mapping behind the scenes based on how you set up providers, facilities, and payer information. But if you troubleshoot rejected claims, review 835 remittance files, or work with a clearinghouse, understanding the codes becomes essential.
On an 837 Professional claim (the standard format for physician billing), entity codes show up in several loops. Loop 1000A contains the submitter with entity code 41. Loop 1000B holds the receiver with code 40. Loop 2010AA is the billing provider with code 85. Loop 2010BB is the payer with code PR. Loop 2010BA identifies the subscriber with code IL, and if the patient is someone other than the subscriber, Loop 2010CA identifies them with code QC. These loop numbers and entity codes have remained consistent since the transition from the older 4010 format to the current 5010 version that CMS mandates.
Entity Codes vs. Other Code Sets
It’s easy to confuse entity codes with other identifiers in medical billing. CPT and HCPCS codes describe what service was provided. ICD codes describe the diagnosis. Place of service codes indicate where care happened. Entity codes don’t describe any of those things. They answer a simpler question: who is this party, and what is their role on this claim? Think of them as role labels that the system reads before it processes any of the clinical or financial data attached to that party.
Entity codes also differ from the actual identification numbers (like an NPI or a payer ID) that appear alongside them. The entity code says “this is the billing provider,” and the NPI that follows says “and here’s who specifically that is.” Both pieces are required for the claim to process correctly.

