What Is an Entity Code in Medical Billing? Codes, 277CA Rejections and Fixes

By Jacob Greenberg

ClaimCarePro Insights banner: What Is an Entity Code in Medical Billing?

An entity code is a two- or three-character X12 code that names the role a party plays on an electronic claim: 85 is the billing provider, 82 the rendering provider, IL the insured or subscriber, QC the patient and PR the payer. On a 277CA rejection, it tells you whose information to fix.

This page gives you the full lookup list, shows how to read a rejection like A7:562:85, and lists the fix for each entity.

ClaimCarePro is a family-owned medical billing company in Clearwater, Florida, billing since 2010. Our billing software sends claims through the Claim.MD clearinghouse and turns rejection codes like these into plain English with a next step. Here is how to do it by hand.

What is an entity code in medical billing?

An entity code says who a piece of claim data belongs to. It does not identify the person; the NPI, tax ID or member ID does that. It names the role.

Every electronic professional claim (the 837P) names several parties, and each one is labeled with an Entity Identifier Code in its name segment. The CMS crosswalk of the 837P shows that element as two to three characters and lists each role by loop: submitter 41, receiver 40, billing provider 85, pay-to provider 87, subscriber IL, payer PR, patient QC, referring provider DN, rendering provider 82, service facility 77, supervising provider DQ and ordering provider DK (CMS 837P 4010A1 to 5010 crosswalk).

The same codes come back on rejections. X12 marks many claim status codes with the note “This code requires use of an Entity Code”, for example 562, “Entity's National Provider Identifier (NPI)” (X12 claim status codes). An NPI error alone does not say whose NPI. The entity code does.

Entity code lookup list: who each code means and whose data to fix

The codes you will see on professional claims

Code, who it means, where it sits on the 837P, and what to check when a rejection names it. Names are from New York Medicaid's published list (eMedNY Entity Identifier Code List) unless noted; loops are from the CMS 837P crosswalk (CMS 837P crosswalk).

  • 85, Billing Provider (loop 2010AA). The practice or provider billing the claim. Check: billing NPI, tax ID, physical address and ZIP, taxonomy, payer enrollment.
  • 87, Pay-to Provider (loop 2010AB). Used only when payment goes somewhere other than the billing provider address. Check: the pay-to address.
  • 82, Rendering Provider (loop 2310B). The clinician who performed the service. Check: that clinician's own NPI, taxonomy, and whether the payer has them linked to your group.
  • IL, Insured or Subscriber (loop 2010BA). The person who holds the policy. Check: member ID with any prefix, name, date of birth, group number.
  • QC, Patient (loop 2010CA). The person who was treated. Check: the patient's own name, date of birth, gender and relationship to the subscriber.
  • PR, Payer (loop 2010BB). The insurance company. Medicare contractor CGS labels it “Payer” on its 277CA edits (CGS 5010A2 claim edits). Check: payer name and payer ID in your clearinghouse.
  • DN, Referring Provider (loop 2310A; the crosswalk also allows P3 there). Check: the referring doctor's NPI and name, exactly as in the NPI registry.
  • 77, Service Location (loop 2310C). Where care was given, when it differs from the billing address. Check: address and full ZIP.
  • DQ, Supervising Physician (loop 2310D). Check: supervising doctor's NPI and name.
  • DK, Ordering Physician (loop 2420E, at the service line). Check: ordering doctor's NPI and name.
  • 41, Submitter (loop 1000A). Whoever sent the electronic file, often your clearinghouse; CGS lists 41 as “submitter” (CGS 277CA tool help). Check: your clearinghouse setup with that payer.
  • 40, Receiver (loop 1000B). Whoever receives the file. Check: payer routing in your clearinghouse.
  • 71, Attending Physician and 72, Operating Physician. Mostly hospital and facility claims.

What is entity code 85?

85 is the billing provider. It carries the practice's NPI, tax ID, address and enrollment, so most billing-provider rejections trace back to one of those four.

What is entity code 82?

82 is the rendering provider, the clinician who saw the patient. In a group practice the billing provider (85) and the rendering provider (82) are usually different parties, and each needs its own correct NPI.

How do you read an entity code rejection on a 277CA?

Read the three codes left to right: category, then status, then entity. The category says what happened, the status code says what is wrong, and the entity code says whose data it is.

After you send a claim, a 999 comes back first and accepts or rejects the file. Only if the 999 accepts it does a 277CA follow, carrying the payer's claim number for accepted claims (CGS EDI questions). Claim-level rejections live in the 277CA's status segment (STC), in three parts (First Coast 277CA lookup guide):

  • Category code (CSCC): the general outcome, such as accepted or rejected.
  • Status code (CSC): the specific problem, for the claim or one service line.
  • Entity identifier code (EIC): the party the problem belongs to, present only when the status code needs one.
How to read A7:562:85A 277CA rejection has three parts. A7 is the category code: rejected for invalid information. 562 is the status code: the entity's NPI. 85 is the entity code: the billing provider. Read together: the billing provider NPI is invalid. How to read A7:562:85 A7 562 85 Category Rejected for invalid information Status: what Entity’s National Provider Identifier Entity: who Billing provider Fix: the billing provider NPI on the claim. Code meanings: X12 category and status code lists; eMedNY entity list.

The category codes that matter

From X12 (X12 claim status category codes):

  • A1 received. X12 notes this does not mean the claim was accepted for adjudication.
  • A2 accepted into the adjudication system. This is the one you want.
  • A3 returned as unprocessable: rejected and not entered into the adjudication system.
  • A6 rejected for missing information.
  • A7 rejected for invalid information.
  • A8 rejected for relational field in error: two pieces of data do not agree with each other.

Real Medicare examples and what causes them

Medicare contractor CGS publishes the exact codes its front end returns and why (CGS 5010A2 claim edits). On those edits:

  • A7:562:85: the billing provider NPI is invalid, in the wrong format, or not valid in PECOS for that Medicare contractor.
  • A8 with 562 and 128, entity 85: the billing provider's tax ID was not found with that NPI. The NPI and tax ID do not match the enrollment.
  • A7:743:85: the billing provider has no active enrollment.
  • A7:562:82: the rendering NPI is invalid, not valid in PECOS, has no active Medicare ID, or the billing provider does not have permission to bill for that rendering provider.
  • A7:164:IL: the beneficiary's Medicare ID is not an accepted MBI format, or the MBI is inactive.

One claim can carry several code sets. Read all of them before you correct anything (First Coast 277CA lookup guide).

A hypothetical example, start to finish

This is a made-up case to show the steps, not a real client.

  • What happened: a two-doctor practice set up a new business entity with a new tax ID. The front desk updated the practice name in the billing software but left the old tax ID on the billing provider.
  • What came back: the 999 accepted the file. The 277CA then rejected every Medicare claim from that week with category A8, status codes 562 and 128, and entity 85.
  • How to read it: A8 means two pieces of data do not agree. Entity 85 points to the billing provider. On CGS's edits, that code set means the tax ID was not found with that NPI.
  • The fix: match the tax ID on the claim to the one on the Medicare enrollment for that NPI. If the enrollment itself still shows the old tax ID, update the enrollment first. Then correct the claims and send them again as new claims, not appeals, before the filing deadline.

What does “this code requires use of an Entity Code” mean?

It is not an error message. It is X12's usage note on a status code, saying the code is only complete with an entity code next to it (X12 claim status codes). If your clearinghouse shows that sentence, look for the entity code beside it: that is whose data to fix.

Is an entity code rejection the same as a denial?

No. A rejection means the claim never entered the payer's adjudication system, so the payer made no decision on it. A denial is a decision on a claim the payer accepted and processed.

  • Rejection (A3, A6, A7, A8 on the 277CA): not entered into adjudication (X12 category codes). You correct the data and send the claim again.
  • Denial: the claim was accepted (A2) and processed, and the remittance shows it unpaid with adjustment codes. It can be appealed. Our guide to why medical claims get denied covers that side.

Do not appeal a rejection. First Coast, a Medicare contractor, says claims returned as unprocessable are not appealable, that an appeal only delays payment, and that it can end in a timely filing denial if the corrected claim is not refiled in time (First Coast on unprocessable claims). The filing clock keeps running while a rejection sits in a queue. Check your payer's deadline in our timely filing limits guide.

How do you fix an entity code rejection?

Match the entity code to the status code, fix that one field at its source, and resend the claim as a new claim. Status code meanings below are from X12 (X12 claim status codes); the fixes are where to look first.

85: billing provider

  • 562 (NPI): check the billing NPI digit by digit against the NPI registry and against the NPI the payer has on file for your practice. For Medicare, also check PECOS.
  • 128 (tax ID): the tax ID must be the one enrolled with that NPI.
  • 126 (address) or 500 (ZIP): CGS says a P.O. Box in place of a physical billing address gets an error (CGS EDI questions). Use the street address and the full ZIP.
  • 145 (taxonomy): match the taxonomy the payer has for that provider.
  • 496 (submitter not approved for this entity): CGS says 496 with 85 means you are not set up to bill that payer electronically (CGS EDI questions). That is EDI enrollment, not the claim. Call the payer's EDI help desk.

82: rendering provider

  • 562 (NPI): the clinician who saw the patient needs their own NPI on the claim. Providers must use their NPI on standard transactions and report changes to their NPI record within 30 days (45 CFR 162.410). After a move or a name change, check the registry record first.
  • For Medicare, confirm the clinician is enrolled and allowed to bill under your group, one of the causes CGS lists for A7:562:82 (CGS 5010A2 claim edits).

IL: insured or subscriber

  • 164 (contract/member number) or 733 (member number prefix): copy the member ID exactly from the current card, letters included, and run eligibility again. For Medicare, use the MBI.
  • 33 (subscriber and subscriber ID not found): check spelling, date of birth and whether the plan changed.
  • 125 (name), 158 (date of birth), 157 (gender): enter them as the insurer has them.
  • 663 (group name) or 163 (policy/group number): some payers want no group at all. For Medicare, CGS says 663 or 732 with IL means the group name and group number must be empty (CGS EDI questions).

QC: patient

  • 125, 158, 157: the patient's own name, date of birth and gender, never the subscriber's.
  • 156 (patient relationship to subscriber): check that the relationship matches who holds the policy.

PR: payer

  • Check the payer ID selected in your clearinghouse against the payer on the patient's current card.

77: service location

  • 500 (ZIP): CGS requires a 9-digit ZIP for the service facility location (CGS EDI questions). Other payers set their own rule in their companion guide.

DN, DK, DQ: referring, ordering or supervising provider

  • 562 (NPI) or 125 (name): look the doctor up in the NPI registry and enter the NPI and name exactly as listed. A wrong referring NPI can get your claim rejected even though that doctor is not yours.

41: submitter

  • The problem is with whoever sent the file. Call your clearinghouse before you change the claim.

Still stuck? CGS and First Coast run free lookup tools: enter the category, status and entity codes and get likely causes back (CGS 277CA Edit Lookup Tool; First Coast lookup).

Entity code vs NPI entity type vs taxonomy: what is the difference?

They answer three different questions: the entity code says what role a party plays on this claim, the NPI entity type says whether the NPI belongs to a person or an organization, and the taxonomy code says what kind of provider it is.

  • NPI entity type: Type 1 is an individual provider, such as a physician or nurse practitioner; Type 2 is an organization, such as a physician group. An incorporated provider can hold both (CMS NPI fact sheet).
  • Entity code: the role on one claim. A group's Type 2 NPI often goes with 85, billing provider; the doctor's Type 1 NPI with 82, rendering provider.
  • Taxonomy: the specialty. When it is wrong, the rejection uses status 145, “Entity's specialty/taxonomy code,” plus the entity code of whose taxonomy it is (X12 claim status codes).

What do most entity code guides get wrong?

Five claims you will read online, and what the primary sources say.

  • “There are four main entity types.” The CMS 837P crosswalk lists more than a dozen entity codes on a professional claim alone (CMS 837P crosswalk).
  • “The patient is the subscriber.” Only sometimes. They are different entities with different codes and loops: IL in 2010BA, QC in 2010CA (CMS 837P crosswalk). For a child on a parent's plan, fixing the wrong one changes nothing.
  • “72 is the attending physician.” 71 is Attending Physician; 72 is Operating Physician (eMedNY list).
  • “An entity code is the provider's ID number.” No. The code is the role; the NPI, tax ID or member ID identifies the party. On a rejection, 562 says the NPI is the problem and the entity code says whose.
  • “Check the HICN.” Medicare claims use the MBI. CGS rejects a Medicare ID that is not an accepted MBI format with A7:164:IL (CGS 5010A2 claim edits).

How do you prevent entity code rejections?

Keep each party's data right at its source, so the claim never carries a bad NPI, member ID or address in the first place.

  • Keep one provider record per clinician: NPI, taxonomy, tax ID, service address. Update it the day anything changes, and update the NPI registry within 30 days (45 CFR 162.410).
  • Scan the insurance card at every visit and run eligibility before the claim goes out.
  • Capture the referring provider's NPI at intake, not after the rejection.
  • Work the 277CA every day. The filing clock runs while a rejection sits.
  • Read each payer's companion guide. ZIP, group-number and address rules differ by payer.

These are the same habits that make a clean claim. For what the clearinghouse does between your software and the payer, read what is a medical billing clearinghouse.

Getting help with claim rejections

We work rejections and denials for every client as part of our denial management service. We charge 6% of insurance collections with a $1,000 monthly minimum, published on our pricing page.

If rejected claims are piling up and nobody is sure which ones were ever resent, start with a free A/R audit.

Frequently asked questions

What is an entity code in medical billing?

An entity code is a two- or three-character X12 code that names the role a party plays on an electronic claim: 85 is the billing provider, 82 the rendering provider, IL the insured or subscriber, QC the patient and PR the payer. On a 277CA rejection, it tells you whose information to fix.

What is entity code 85?

85 means billing provider: the practice or provider billing for the claim. On a professional claim it sits in loop 2010AA. A rejection with entity code 85 points at the billing provider's NPI, tax ID, address, taxonomy or enrollment.

What is entity code 82?

82 means rendering provider: the clinician who performed the service. On a professional claim it sits in loop 2310B. A rejection with 82 usually means the rendering NPI is wrong, or the payer has no record of that clinician billing under your group.

What does A7:562:85 mean?

A7 means rejected for invalid information. 562 means the problem is an entity's National Provider Identifier (NPI). 85 means that entity is the billing provider. Together: the billing provider NPI is invalid or not on file. Medicare contractor CGS lists an invalid NPI, a bad NPI format and an NPI not valid in PECOS for that contractor as causes.

Can you appeal an entity code rejection?

No. A rejected claim never entered the payer's adjudication system, so there is no decision to appeal. Fix the data and send the claim again. Medicare contractor First Coast warns that appealing instead of refiling can end in a timely filing denial.

Is an entity code the same as an NPI entity type?

No. The NPI entity type is set in the NPI registry: Type 1 is an individual provider, Type 2 an organization such as a group practice. An entity code is the role a party plays on one claim. A Type 2 group NPI is often the billing provider (85), and a Type 1 individual NPI the rendering provider (82).

What is an entity code on Availity?

The same thing it is anywhere else. Entity codes come from the X12 standard, not from the clearinghouse, so 85 means billing provider and IL means subscriber whichever clearinghouse shows you the rejection.

Every guide, the glossary and the FAQ are indexed in our medical billing resources.