An entity code in medical billing is an alphanumeric identifier that labels each party involved in a healthcare claim and defines their role. Every time a claim moves electronically between a provider’s office, a clearinghouse, and an insurance payer, entity codes tell each system exactly who is the billing provider, who is the patient, who is the insurer, and so on. Without them, there’s no reliable way for automated systems to distinguish one party from another.
How Entity Codes Work in a Claim
When a medical claim is submitted electronically, it follows a standardized format known as the 837 transaction (the HIPAA-mandated electronic claim file). Within that file, information about each party sits in designated sections called “loops.” Each loop contains a field for the entity identifier code, which is a short value, usually two characters, that tells the receiving system what role that person or organization plays in the transaction.
Think of it like a cast list at the beginning of a script. Before the payer’s system reads any of the clinical or financial details, it needs to know who’s who. The entity code is the label that makes that possible. A code of 85 means “this is the billing provider.” A code of QC means “this is the patient.” The payer’s system routes and processes the claim based on those labels.
Common Entity Codes You’ll See
Several entity codes appear on nearly every claim. The most frequently referenced ones include:
- 85 (Billing Provider): The provider or organization submitting the claim for payment. This sits in Loop 2010AA of the 837 file.
- 87 (Pay-to Provider): The provider or address where payment should be sent, if different from the billing provider.
- 82 (Rendering Provider): The individual clinician who actually performed the service. Found in Loop 2310B or 2420A.
- IL (Subscriber/Insured): The person who holds the insurance policy. Located in Loop 2010BA.
- QC (Patient): The person who received the service. This may be the same as the subscriber or a dependent.
- PR (Payer): The insurance company or plan processing the claim.
- 40 (Receiver): The entity receiving the electronic transaction.
You won’t always type these codes manually. Most practice management and billing software populates them automatically based on the information you enter in provider, patient, and insurance fields. But understanding what they represent matters, especially when a claim is rejected and the error message points to a specific entity code.
Entity Type Qualifiers: Individual vs. Organization
Closely related to entity codes is the entity type qualifier, a single-digit value that tells the system whether a party is an individual person or an organization. In the 837 claim format, a value of 1 means “individual” (a physician, nurse practitioner, or sole proprietor), and a value of 2 means “organization” (a hospital, nursing home, or physician group).
This distinction ties directly to the National Provider Identifier (NPI) system. Every healthcare provider who bills electronically has an NPI, and that number is classified as either Type 1 (individual) or Type 2 (organization). A provider who is incorporated can actually hold both: a Type 1 NPI for themselves personally and a Type 2 NPI for their corporation or LLC. Getting these types mixed up on a claim is a common source of rejections. CMS, for example, will reject a claim outright if you submit a value of 2 in the subscriber entity type qualifier field where only a value of 1 is accepted.
Why Entity Code Errors Cause Rejections
Entity code problems are one of the more frustrating categories of claim rejection because the error messages can feel cryptic. When a claim fails at the front end, the acknowledgment report (called a 277CA) will reference a specific entity code and loop to tell you where the problem is. For instance, a rejection pointing to entity 85 in Loop 2010AA means there’s an issue with the billing provider’s information.
The most common triggers for these rejections include:
- NPI and Tax ID mismatch: The billing or rendering provider’s NPI isn’t enrolled under the Tax Identification Number listed on the claim for that specific payer.
- Invalid payer ID: The electronic routing identifier for the insurance company isn’t recognized, so the claim can’t reach its destination.
- Wrong subscriber ID format: The member ID number doesn’t match what the payer has on file, or it’s in the wrong format.
- Patient demographic mismatch: The date of birth or sex listed on the claim doesn’t match the payer’s records for that patient.
- Incomplete service facility or pay-to information: The NPI or address details for the service location or pay-to provider are missing or not enrolled with the payer.
The fix for most entity code rejections comes down to data hygiene. Correcting the specific identifiers, updating payer enrollment records, and resubmitting the claim will resolve the issue. This is different from a claim-level rejection, which involves problems with the clinical content of the claim itself, like invalid diagnosis or procedure codes.
How to Troubleshoot an Entity Code Rejection
When you receive a rejection tied to an entity code, start by reading the 277CA acknowledgment carefully. Look at the STC segments and the entity identifier code referenced. A code of 85 points you to the billing provider loop. A code of 82 points to the rendering provider. IL and QC point to subscriber and patient information, respectively. The loop reference (2010AA, 2010BA, 2310B, etc.) narrows down exactly which section of the claim file contains the bad data.
Once you’ve identified the entity, check the basics: Is the NPI correct and actively enrolled with that payer under the correct Tax ID? Are the patient demographics an exact match with what the insurer has on file? Is the payer ID in your system current? Many billing teams find that maintaining clean provider master data and running pre-submission validation checks against their top rejection reasons eliminates the majority of entity-level errors before claims ever go out the door.
Entity Codes vs. Other Billing Codes
It’s easy to confuse entity codes with the other types of codes used in medical billing, but they serve a completely different purpose. CPT and HCPCS codes describe what service was performed. ICD codes describe the diagnosis. Place-of-service codes describe where care happened. Entity codes don’t describe clinical activity at all. They identify the people and organizations involved in the transaction and clarify each one’s role.
You can think of entity codes as the addressing system on a package. The other codes are the contents inside. Both need to be correct for the claim to be accepted and paid, but the errors look different and get fixed in different ways. A wrong CPT code might lead to a payment dispute or audit. A wrong entity code usually means the claim never makes it past the front door.

