AnyLearn
All lessons
Businessbeginner

The Code Sets: ICD-10, CPT, and HCPCS

Coding is turning a clinical note into standardized codes a payer will accept. This lesson covers the three code sets, ICD-10-CM for diagnoses, CPT for procedures and services, and HCPCS for supplies, plus modifiers and the medical-necessity link between diagnosis and procedure that decides whether a claim is paid.

Updated · AI-authored, review-gated · how lessons are made

Not signed in: your progress and quiz score won't be saved.
Progress1 / 7

The universal languages of a claim

Lesson 1 established that a payer will not accept "treated a sore throat", it needs standardized codes. This lesson is about those codes: what they are, how they divide up the work, and how a coder turns a doctor's note into them.

The reason standardized codes exist is coordination at scale. Thousands of providers bill thousands of payers for millions of encounters. If everyone described care in their own words, no payer could process it. Codes are a shared, unambiguous language for two questions every claim must answer:

  • What was wrong with the patient? (the diagnosis)
  • What did the provider do about it? (the procedure or service)

Those two questions map onto two different code sets, and keeping them straight is the foundation of coding:

  • ICD-10-CM codes the diagnoses, the conditions, symptoms, and diseases.
  • CPT codes the procedures and services, what was done.
  • HCPCS codes the supplies, equipment, and services CPT does not cover.

A useful mental split: ICD says why, CPT says what. The diagnosis explains why the patient was seen; the procedure records what was performed. Nearly every claim carries both, and, as this lesson builds to, the relationship between them is what a payer scrutinizes most.

Full lesson text

All 7 steps on one page, for reading, reference, and search.

Show

1. The universal languages of a claim

Lesson 1 established that a payer will not accept "treated a sore throat", it needs standardized codes. This lesson is about those codes: what they are, how they divide up the work, and how a coder turns a doctor's note into them.

The reason standardized codes exist is coordination at scale. Thousands of providers bill thousands of payers for millions of encounters. If everyone described care in their own words, no payer could process it. Codes are a shared, unambiguous language for two questions every claim must answer:

  • What was wrong with the patient? (the diagnosis)
  • What did the provider do about it? (the procedure or service)

Those two questions map onto two different code sets, and keeping them straight is the foundation of coding:

  • ICD-10-CM codes the diagnoses, the conditions, symptoms, and diseases.
  • CPT codes the procedures and services, what was done.
  • HCPCS codes the supplies, equipment, and services CPT does not cover.

A useful mental split: ICD says why, CPT says what. The diagnosis explains why the patient was seen; the procedure records what was performed. Nearly every claim carries both, and, as this lesson builds to, the relationship between them is what a payer scrutinizes most.

2. ICD-10-CM: the diagnosis

ICD-10-CM is the code set for diagnoses, what is wrong with the patient. ICD stands for the International Classification of Diseases, now in its tenth revision; the "CM" is the Clinical Modification used in the US. It is vast: over 70,000 codes, because it aims to name essentially every condition, symptom, injury, and disease with precision.

An ICD-10-CM code is alphanumeric and structured so that more characters mean more specificity. For example, codes beginning with a category letter and digits narrow down as they lengthen: a general category, then the specific condition, then details like which side of the body, which encounter, or which complication.

The governing principle for a coder is specificity. Payers require the most specific code the documentation supports, not a vague general one. If a note documents "type 2 diabetes with diabetic neuropathy," coding just "diabetes" is wrong, incomplete, and a common denial reason. The code must capture what the documentation actually says, at the finest level it supports.

This produces the coder's central discipline: code what is documented, and only what is documented. You cannot code a condition the physician did not record, even if it seems obvious, and you cannot leave out specificity the note contains. The documentation is the boundary. If the note is unclear or incomplete, the correct move is to query the physician, not to guess, because a guess is either a denial or, worse, a compliance problem (Lesson 3).

ICD-10-CM, then, answers "why was this patient here?" in a language the payer trusts, and getting it specific and documentation-supported is half the coder's job.

3. CPT: the procedure

CPT (Current Procedural Terminology) is the code set for procedures and services, what the provider did. It is maintained by the American Medical Association, and every office visit, surgery, lab test, imaging study, and evaluation carries a CPT code.

CPT codes are five digits, and they cover an enormous range, from a routine office visit to open-heart surgery. A few categories a new coder meets constantly:

  • Evaluation and management (E/M) codes, for office visits and consultations, the bread and butter of outpatient coding. These are leveled by the complexity of the visit, and choosing the right level is a frequent source of both revenue and denials.
  • Procedures and surgeries, from a skin biopsy to a joint replacement.
  • Diagnostic services, labs, imaging, and tests.

Where ICD answered "why," CPT answers "what was done," and it is the code that primarily drives how much the provider is paid, because reimbursement is largely tied to the services performed.

The same documentation discipline applies, sharpened: the CPT code must reflect exactly what was performed and documented, no more and no less. Coding a higher-level or more extensive service than the note supports is not just a denial risk, it is the compliance issue Lesson 3 covers. Coding a lower one leaves money the provider earned uncollected. The coder's accuracy sits directly on the provider's revenue, which is why the role is valued and why precision, not speed, is the trait that matters.

So far: ICD says why, CPT says what. One more set fills the gap between them.

4. HCPCS and modifiers

Two more pieces complete the coder's toolkit.

HCPCS Level II (Healthcare Common Procedure Coding System) covers what CPT does not: supplies, durable medical equipment, ambulance services, certain drugs, and some services outside CPT's scope. If a patient is given a wheelchair, a prosthetic, or an injectable medication, that item is typically a HCPCS code. Think of HCPCS as handling the things and services around the procedure, where CPT handles the procedure itself. (CPT is sometimes called HCPCS Level I, they are part of one overall system, which is why the names sit together.)

Modifiers are the other essential tool, and they are where coding gets subtle. A modifier is a two-character add-on to a CPT or HCPCS code that adjusts its meaning without changing the base code. It answers "the same procedure, but with an important circumstance." Common uses:

  • The procedure was performed on both sides of the body (bilateral).
  • Two distinct procedures were done in the same visit that a payer might otherwise assume were bundled into one.
  • A service was more or less extensive than the base code implies.

Modifiers matter enormously because they change how a claim is paid, and because misusing them is a classic compliance problem (Lesson 3): adding a modifier to suggest two separate procedures when the work was really one bundled service is a well-known form of billing fraud. Used correctly, modifiers capture real clinical circumstances that would otherwise cause a claim to be underpaid or wrongly denied.

With diagnoses (ICD), procedures (CPT), supplies (HCPCS), and circumstances (modifiers), the coder can now describe almost any encounter precisely, which sets up the single most important relationship in coding.

5. Medical necessity: linking why to what

Here is the single most important concept in coding, and the one that ties the whole lesson together: medical necessity, the link between the diagnosis and the procedure.

A payer does not pay for a service simply because it was performed. It pays only if the service was medically necessary, that is, justified by the patient's diagnosis. So on the claim, the CPT procedure must be supported by an ICD diagnosis that makes it reasonable. The diagnosis answers "why"; the procedure answers "what"; and the payer checks that the why actually justifies the what.

Examples make it vivid:

  • A chest X-ray (CPT) billed with a diagnosis of "cough" or "chest pain" (ICD): the diagnosis justifies the imaging. Paid.
  • The same chest X-ray billed with a diagnosis of "sprained ankle": the diagnosis does not justify imaging the chest. Denied for lack of medical necessity.

This is why coding is not two independent tasks (pick a diagnosis, pick a procedure) but one linked task: the codes must tell a coherent clinical story in which the condition explains the service. Payers publish medical-necessity rules, and a mismatch is one of the most common denial reasons.

For the coder, the discipline is to always ask: does the diagnosis I am coding actually justify the procedure being billed, and does the documentation support both? When it does, the claim tells a story the payer accepts. When it does not, no matter how correct each individual code is, the claim is denied.

Medical necessity is where the coder's two code sets meet, and where accurate coding most directly determines whether the provider gets paid.

6. A note becomes a claim

See the whole toolkit turn one encounter into codes. A patient with type 2 diabetes comes in for a routine check; the physician also examines a suspicious mole and removes it, and sends it to pathology.

The coder reads the note and builds the coded picture:

Diagnoses (ICD-10-CM, the "why"):
  - Type 2 diabetes mellitus (coded to the specificity documented)
  - Skin lesion, with the documented site

Procedures/services (CPT, the "what"):
  - E/M office visit, at the level the documentation supports
  - Skin lesion removal, the specific excision code

Modifier:
  - On the E/M visit, to show it was a distinct service
    from the procedure done the same day (or it may be bundled)

Supplies (HCPCS, if applicable):
  - Any billable supplies used

Medical-necessity check:
  - Diabetes diagnosis justifies the office visit
  - Skin-lesion diagnosis justifies the removal
  Each procedure is linked to a diagnosis that supports it.

Every element from the lesson appears. ICD captures why (diabetes, the lesion), coded to the specificity the note supports. CPT captures what (the visit and the excision). A modifier signals that the visit and the procedure were distinct services, or the coder confirms whether they bundle. HCPCS covers any billable supplies. And the medical-necessity check confirms each service is justified by a diagnosis.

The result is a claim that tells a coherent, payer-acceptable story: this patient had these conditions, so the provider reasonably did these things. That translation, from a paragraph of clinical prose into a precise, linked, documentation-supported set of codes, is exactly what a coder is paid to do, and Lesson 3 follows that claim to payment.

7. The code sets, condensed

The coder's toolkit in one view.

Code setAnswersCoversMaintained around
ICD-10-CMwhy (diagnosis)conditions, symptoms, diseases (70,000+ codes)specificity to what is documented
CPTwhat (procedure/service)visits, surgeries, teststhe American Medical Association
HCPCS Level IIwith whatsupplies, equipment, some drugs/servicesitems around the procedure
Modifiersunder what circumstancebilateral, distinct, extentadjust meaning, not the base code
Medical necessitydoes why justify what?the link between ICD and CPTthe top denial concept

The throughline for an aspiring coder: coding is disciplined translation. You render a clinical narrative into a precise, standardized, documentation-supported set of linked codes, and the quality of that translation directly determines whether the provider is paid.

Three habits define a good coder:

  • Code to the specificity the documentation supports, no vaguer, and never beyond what is written.
  • Link every procedure to a diagnosis that justifies it, because medical necessity is where claims live or die.
  • When the documentation is unclear, query, do not guess. A guess is a denial or a compliance risk, never a shortcut.

This is the competency the CPC certification tests, and it is genuinely learnable: the code sets are large but systematic, and the rules are consistent. Master this translation and you have the upstream half of the profession.

But a perfect set of codes is still just codes. Someone has to build them into a claim, get it accepted, and collect the money, including the large fraction of claims that come back denied. That is billing, and it is Lesson 3.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. What do ICD-10-CM and CPT codes each capture on a claim?
    • ICD captures the procedure; CPT captures the diagnosis
    • ICD-10-CM captures the diagnosis (the 'why', over 70,000 codes for conditions); CPT captures the procedure or service performed (the 'what')
    • Both capture only supplies
    • ICD captures payment; CPT captures the patient's name
  2. What is the coder's central discipline with ICD-10-CM specificity?
    • Always use the most general category code available
    • Code to the most specific code the documentation supports, and only what is documented, if the note is unclear, query the physician rather than guess
    • Add every possible related condition to maximize payment
    • Copy the previous visit's codes
  3. What does HCPCS Level II cover that CPT does not?
    • Diagnoses and symptoms
    • Supplies, durable medical equipment, ambulance services, certain drugs, and services outside CPT's scope, the things and services around the procedure
    • The patient's insurance details
    • Only surgical procedures
  4. What is a modifier, and why does it matter?
    • A new diagnosis code added to the claim
    • A two-character add-on that adjusts a code's meaning without changing the base code (e.g. bilateral, distinct procedure, different extent); it changes how a claim is paid and is a classic compliance risk if misused
    • The patient's copay amount
    • A code that replaces the CPT code entirely
  5. What is 'medical necessity' and why is it the most important concept in coding?
    • That every patient must be treated regardless of cost
    • That a payer pays for a service only if a diagnosis justifies it, so the CPT procedure must be supported by an ICD diagnosis, a chest X-ray is paid with 'cough' but denied with 'sprained ankle'
    • That the most expensive code should always be chosen
    • That coders decide what treatment a patient needs

Related lessons

Business
beginner

Medical Billing and Coding: The Revenue Cycle

In US healthcare, a service does not become revenue until it is translated into codes and paid by an insurer. This lesson explains why that gap exists, the difference between coding and billing, the revenue cycle that connects them, and why this is one of the most accessible no-degree, often-remote career switches.

7 steps·~11 min
Business
advanced

Where the Risk Moved

Central clearing was extended after the financial crisis because it removes counterparty risk from the network. It does not remove it from the system: it concentrates it in a small number of institutions that are now indispensable. This lesson assesses what was gained, what was created, and how to read any infrastructure change for the risk it relocates.

8 steps·~12 min
Business
advanced

Settlement, Custody, and What Happens When It Fails

Settlement is one instant of exchange, and getting it right means never letting the two legs come apart. This lesson covers delivery versus payment, where securities actually live and who is in the chain, why settlement fails are routine rather than scandalous, and what shortening the cycle costs.

8 steps·~12 min
Business
advanced

The Central Counterparty and Its Default Waterfall

A CCP takes the other side of every trade, which means one member's failure becomes its problem and therefore everyone's. This lesson covers how it survives that: the margin it collects, the ordered stack of resources it burns through in a default, and the deliberate design choice of putting its own capital ahead of the mutualised fund.

8 steps·~12 min