What Is a DRG Grouper? How MS-DRG Assignment Actually Works
A DRG grouper is the software that turns a coded inpatient claim into a single MS-DRG. Feed it the principal diagnosis, secondary diagnoses, procedures, and a few demographic fields, and it applies CMS's published decision logic to output one DRG — the code Medicare actually pays on. Everything that happens after (weights, wage index, outliers) is pricing; the grouper's only job is choosing which DRG the stay belongs to.
The four decisions, in order
Grouper logic is deterministic, not probabilistic: the same claim under the same version always yields the same DRG. It runs roughly like this:
1. Principal diagnosis → MDC
The principal diagnosis — the condition established after study to be chiefly responsible for the admission — maps the case into one of 27 Major Diagnostic Categories, broadly organized by body system. Sepsis lands in MDC 18 (Infectious & Parasitic Diseases); a hip replacement in MDC 8 (Musculoskeletal). Get the principal diagnosis wrong and everything downstream is wrong, which is why sequencing matters more than any other coding decision on an inpatient claim.
A handful of catastrophic cases (major transplants, ECMO) are pulled out before MDC assignment into pre-MDC DRGs.
2. Surgical or medical
Within the MDC, the grouper asks whether an operating-room procedure was performed. That splits the case into the surgical or medical partition. In the FY2026 table this is close to an even split — 403 surgical and 367 medical DRGs out of 770 total.
The subtlety: "OR procedure" is a CMS designation, not a clinical judgement. Some bedside procedures count; some things performed in an operating room do not. A procedure that isn't OR-designated leaves the case in the medical partition no matter where it happened.
3. Base DRG family
The partition narrows the case to a base DRG family — for sepsis without prolonged mechanical ventilation, that's the 871/872 family.
4. CC / MCC severity
Finally the grouper scans the secondary diagnoses for complications and comorbidities and picks the severity tier: with MCC, with CC, or without CC/MCC. This is the step that most often moves money, and the one CDI programs focus on.
A worked example
A 66-year-old male admitted with sepsis (A41.9), discharged home, no OR procedure:
Now watch what that last step is worth. Same admission, same principal diagnosis — only the documented severity differs:
| DRG | Description | Relative weight | GMLOS |
|---|---|---|---|
| 872 | Septicemia or severe sepsis w/o MV >96 hrs, without MCC | 1.0233 | 3.4 |
| 871 | Septicemia or severe sepsis w/o MV >96 hrs, with MCC | 1.9425 | 4.8 |
| 870 | Septicemia or severe sepsis with MV >96 hrs | 6.9118 | 12.7 |
One documented MCC moves the case from 872 to 871 — roughly 1.9× the relative weight. And if the patient required more than 96 hours of mechanical ventilation, the grouper never reaches the CC/MCC step at all: ventilation branches the case to DRG 870, at nearly 6.8× the weight of 872. The order of the decisions is the point.
Why the grouper version matters
CMS reissues the MS-DRG grouper for each federal fiscal year and patches it mid-year — the current logic is MS-DRG v43.1 (FY2026). Between versions, CMS adds and deletes codes, moves diagnoses between CC and MCC tiers, and occasionally restructures whole DRG families.
The practical consequence: a claim must be grouped under the version in effect on its discharge date. Regrouping an older claim under current logic can produce a different DRG — legitimate for modeling, wrong for adjudication or appeal. Any grouper worth using tells you which version it ran.
Grouping is not pricing
This is the distinction most often collapsed. The grouper outputs a DRG. Payment then comes from a separate calculation:
- Grouping — claim in, one MS-DRG out. Same everywhere; the logic is CMS's, published, and identical for every hospital.
- Pricing — DRG relative weight × the hospital's IPPS base rate, adjusted for area wage index, plus DSH, IME, new technology and high-cost outlier add-ons.
Two hospitals can group the same claim to DRG 871 and be paid materially different amounts, because pricing is hospital-specific and grouping is not. See how the payment side is calculated →
Frequently asked questions
What is a DRG grouper?
Software that turns a coded inpatient claim into a single MS-DRG by applying CMS's published decision logic to the diagnoses, procedures and demographics on the claim. Medicare pays on that DRG rather than on itemized charges.
How does a DRG grouper decide which DRG to assign?
Principal diagnosis → MDC; OR procedure or not → surgical/medical partition; that gives a base DRG family; then secondary diagnoses are tested for CCs and MCCs to select the severity tier.
What does MS-DRG v43.1 mean?
The version of CMS's grouper logic — v43.1 is the FY2026 logic and code tables. The same claim can group differently under a different version, so version and discharge date must match.
How many MS-DRGs are there?
The FY2026 table has 770 DRGs across 27 MDCs — 403 surgical and 367 medical.
Is grouping the same as pricing?
No. Grouping assigns the DRG; pricing turns that DRG into dollars using the hospital's base rate and adjustments. Same DRG, different hospitals, different payment.