Understanding CMS-HCC risk adjustment, hierarchies, RAF calculation, and our AI-powered clinical coding engine
HCC Engine is an AI-powered clinical coding assistant that automatically extracts Hierarchical Condition Categories (HCCs) from clinical documentation. It uses:
The HCC Engine processes clinical notes through multiple stages:
An HCC is a grouping of related ICD-10 diagnosis codes that indicate similar levels of expected healthcare costs. CMS uses HCCs to:
The CMS-HCC V28 model (2025 Midyear) includes 115 payment HCCs mapped from 7,903 ICD-10 codes organized into disease groups:
| Disease Group | Example HCCs |
|---|---|
| Heart | HCC 221-229 (Heart Failure, MI, etc.) |
| Diabetes | HCC 35-38 (Pancreas Transplant to Uncomplicated) |
| Neoplasms | HCC 17-23 (Metastatic Cancer to Breast/Prostate) |
| Renal | HCC 326-329 (CKD Stage 5 to Stage 3) |
CMS-HCC V28 is the current version of the CMS Hierarchical Condition Category model, phased in starting 2024:
The RAF (Risk Adjustment Factor) is a numerical score representing a patient's expected healthcare costs relative to an average Medicare beneficiary:
The RAF score directly impacts Medicare Advantage plan payments. A patient with RAF 1.5 generates 50% more payment than RAF 1.0.
Total RAF is calculated as:
1. Base RAF: Sum of individual HCC coefficients after hierarchy application
2. Interaction Bonus: Additional RAF when certain HCC combinations are present together (e.g., Diabetes + Heart Failure)
3. Count Bonus (D1-D10+): Bonus for having multiple HCCs:
| HCC Count | Bonus (CNA Model) |
|---|---|
| 1-4 HCCs | No bonus |
| 5 HCCs (D5) | +0.050 |
| 6 HCCs (D6) | +0.082 |
| 7 HCCs (D7) | +0.111 |
| 10+ HCCs (D10+) | +0.179 |
CMS recognizes that certain disease combinations have synergistic cost impacts. The V28 model includes these interaction pairs:
Each interaction adds a coefficient to the total RAF when both/all conditions are present.
Hierarchies are CMS rules that prevent double-counting related conditions. Within a hierarchy group, only the highest-severity HCC pays RAF.
Key hierarchy groups in V28:
| Group | Hierarchy (High → Low) |
|---|---|
| Heart | 221 > 222 > 223 > 224 > 225 > 226 > 227 |
| Diabetes | 35 > 36 > 37 > 38 |
| Liver | 62 > 63 > 64 > 65 |
| Renal | 326 > 327 > 328 > 329 |
| Cancer | 17 > 18 > 19 > 20 > 21 > 22 > 23 |
Important distinction: CMS counts unique HCC numbers before hierarchy for the count bonus, but applies hierarchy for RAF calculation.
This is why the display shows "5 Unique HCCs" even when one is marked as ↓HIER - the count bonus uses pre-hierarchy unique HCC count as a proxy for disease burden.
| Badge | Meaning |
|---|---|
NEW | This HCC was newly identified and wasn't in the patient's existing diagnoses |
↑DUP | Duplicate - Same HCC from multiple ICD-10 codes (only one pays RAF) |
↓HIER | Hierarchy trumped - A higher-severity HCC in the same group zeros this one's RAF |
✓ | Verified - AI verification confirmed this code is appropriate |
AI Verification uses Large Language Models (Claude or GPT-4) to validate extracted codes against the clinical note. The AI:
Verification statuses:
Each HCC family has a YAML-based decision tree that guides code selection:
Example for Diabetes (E11.x):