New: independent coding checks for insurers and providers. See how Lens works →

Back

How MS-DRG Assignment Works: Principal Diagnosis, CC/MCC, and Severity

· 10 min read
Coding standards

See how MS-DRG assignment works in Grouper V44: principal diagnosis, surgical hierarchy, CC/MCC splits and exclusions, traced through one heart failure stay.

MS-DRG assignment works in a fixed order. The Medicare Severity Diagnosis Related Group (MS-DRG) grouper reads the principal diagnosis, checks for operating room procedures, picks a base DRG, then checks secondary diagnoses for complications or comorbidities (CCs) and major complications or comorbidities (MCCs). Discharge status, sex and, for newborns, birth weight can also change the result. The grouper never guesses. Give it the same codes twice and it returns the same DRG twice.

That makes the grouper the easy part. Every DRG error is really an error in one of its inputs, which is why the most expensive mistakes in inpatient coding happen in secondary diagnosis capture and CC/MCC support, long before the claim is grouped.

For discharges on or after October 1, 2026, CMS uses MS-DRG Grouper V44.0. For FY 2027 CMS deleted 18 MS-DRGs and added 14, leaving 768 in total. The logic below follows the V44.0 Definitions Manual, CMS's public documentation of every grouping rule.

The six steps of MS-DRG grouping

Step What the grouper checks Input the coder controls Where errors start
1. Edits Validity of codes, age and sex conflicts, unacceptable principal diagnoses Code selection Invalid or manifestation codes sequenced first
2. Pre-MDC Transplants, ECMO, tracheostomy and other high-cost procedures that bypass body-system logic ICD-10-PCS procedure codes Missed or wrong root operation on a tracheostomy
3. Major Diagnostic Category (MDC) Which of the 25 body-system categories the principal diagnosis belongs to Principal diagnosis Wrong condition selected as principal
4. Medical or surgical Whether any procedure is classed as an operating room (O.R.) procedure for that MDC ICD-10-PCS codes Non-O.R. procedure coded as O.R., or the reverse
5. Base DRG Principal diagnosis group (medical) or highest surgical class in the hierarchy (surgical) Principal diagnosis, procedures Procedure order assumed to matter (it doesn't)
6. Severity CC or MCC among secondary diagnoses, minus exclusions; discharge status for some DRGs Secondary diagnoses, POA, discharge disposition Unsupported CC/MCC, missed CC/MCC, wrong disposition

Step 1 runs through the Medicare Code Editor before grouping. Steps 2 to 6 are the grouper itself. A wrong answer at step 3 makes every later step irrelevant.

Step 1 and 2: edits and the Pre-MDC

Before any clinical logic runs, the claim has to pass basic edits. A code that's invalid on the discharge date, a principal diagnosis CMS treats as unacceptable in that position, or a sex conflict will stop or misroute the case. These surface fast, as rejections rather than DRG errors.

The Pre-MDC is different. It catches a short list of very high-cost procedures, such as organ transplants, extracorporeal membrane oxygenation and certain tracheostomies, and assigns the DRG on the procedure regardless of the principal diagnosis. A missed Pre-MDC procedure code is one of the largest single-claim errors a coder can make, because Pre-MDC weights sit far above most medical DRGs. CMS lists the Pre-MDC DRGs at the top of the surgical hierarchy table.

Step 3: principal diagnosis picks the MDC

The ICD-10-CM Official Guidelines for Coding and Reporting, FY 2027, Section II, carry the Uniform Hospital Discharge Data Set (UHDDS) definition: the principal diagnosis is the condition established after study to be chiefly responsible for the admission. Two words in that definition do most of the work.

"After study" means the coder reads the whole record, not the admitting impression. A patient admitted for chest pain who is found to have a non-ST elevation myocardial infarction gets the infarction as principal.

"Chiefly responsible" means one condition, even when several were treated. The guidelines handle the hard cases in order:

  • Two interrelated conditions (Section II.B): either can go first unless the circumstances of admission, the therapy, or a Tabular or Index instruction say otherwise.
  • Two conditions that equally meet the definition (Section II.C): any one can go first when no other guideline applies. This is the provision most often argued in DRG validation.
  • "Either/or" comparative diagnoses (Section II.D): both are coded as if confirmed and sequenced by the circumstances of admission.
  • Uncertain diagnoses at discharge (Section II.H): for inpatient stays, a diagnosis documented as probable, suspected or likely is coded as if it existed. This rule doesn't apply in outpatient coding.

The principal diagnosis decides the MDC, and the MDC decides which DRG families are even available. Sepsis is the clearest example of how much rides on it. Whether sepsis or the localized infection goes first depends on what was present at admission, which is why the sepsis sequencing rules generate more DRG disputes than any other condition.

Callout: the admission order sets the clock. "Present at admission" and "after study" both run from the inpatient order, not from the ED arrival. A condition that developed in the ED before the order counts as present on admission. When the order was written depends on status decisions covered in observation vs inpatient vs ED.

Step 4 and 5: medical or surgical, then the base DRG

Once the MDC is set, the grouper asks one question: did the patient have a procedure that CMS classifies as an O.R. procedure for this MDC? Appendix E of the Definitions Manual lists every ICD-10-PCS code that affects grouping. Codes marked with an asterisk are non-O.R. and don't move the case to a surgical DRG. Everything else does.

If there's no O.R. procedure, the case is medical and the principal diagnosis alone picks the base DRG. Heart failure codes I50.21 through I50.9, for example, all feed the Heart Failure and Shock family, DRGs 291 to 293.

If there are O.R. procedures, the surgical hierarchy decides. CMS ranks the surgical classes in each MDC by resource use and assigns the case to the highest class any of its procedures belongs to. The Definitions Manual gives the standard example: a patient with both a D&C and a hysterectomy groups to the hysterectomy class. Because of the hierarchy, the order procedures appear on the claim has no effect on the DRG.

This is where ICD-10-PCS precision pays. The root operation, body part and approach characters decide whether a code is O.R. at all. An excision coded as a drainage, or an open approach coded as percutaneous, can move a case between surgical classes or out of the surgical partition entirely.

One more case catches people: an O.R. procedure unrelated to the principal diagnosis. The grouper sends these stays to an "unrelated O.R. procedure" DRG within the MDC. When one shows up in your data, check whether the principal diagnosis is wrong before accepting the DRG.

Step 6: CC, MCC and the exclusion list

MS-DRGs split most base DRGs by severity. The split can be three-way (with MCC, with CC, without CC/MCC), two-way (with MCC vs without, or with CC/MCC vs without), or none at all. Heart Failure and Shock is a three-way split: DRG 291 with MCC, 292 with CC, 293 without.

The grouper looks at every secondary diagnosis and asks three questions.

  1. Is the code on the CC or MCC list? Appendix C, Part 1 of the Definitions Manual lists every code that counts as a CC or MCC when secondary. Most ICD-10-CM codes are on neither list.
  2. Is it excluded by the principal diagnosis? Each CC and MCC links to a collection of principal diagnoses that cancel it. A secondary diagnosis that's too close to the principal (the same condition, or one inherent in it) is treated as a non-CC for that case.
  3. Does a discharge-status rule apply? Appendix H, Part II lists diagnoses that act as an MCC only when the patient is discharged alive. For other DRG pairs, such as acute myocardial infarction, discharge status itself splits the family.

The severity tier comes from the single highest qualifying secondary diagnosis. Two CCs don't add up to an MCC. Five MCCs pay the same as one.

The lists change every year. For FY 2027, CMS moved 10 housing and homelessness Z codes, including Z59.00, Z59.01 and Z59.02, from CC back to non-CC, according to AHIMA's summary of the final rule. They should still be reported. They just no longer change the DRG.

POA status matters here too. A hospital-acquired condition on CMS's list, reported with a POA indicator of N, stops counting as a CC or MCC for payment. The POA indicator explainer covers which values do that.

A worked example: one heart failure stay, three possible DRGs

Illustrative example for teaching. Not a real patient.

A 74-year-old is admitted from the ED with acute on chronic systolic heart failure. The record shows:

  • Acute on chronic systolic heart failure (I50.23), diuresed with IV furosemide
  • Acute kidney injury (N17.9), creatinine trended and nephrotoxic drugs held
  • Hyponatremia (E87.1), sodium monitored and fluids restricted
  • "Hypoxia" on arrival, 4 liters of oxygen by nasal cannula, weaned on day 2
Documentation scenario Principal diagnosis Highest secondary MS-DRG
A. As documented I50.23 N17.9 or E87.1 (CC) 292 Heart Failure and Shock with CC
B. Physician documents acute hypoxic respiratory failure, supported by blood gas and work of breathing I50.23 J96.01 (MCC) 291 Heart Failure and Shock with MCC
C. AKI not clinically supported, hyponatremia not addressed I50.23 None 293 Heart Failure and Shock without CC/MCC
D. Respiratory failure was the reason for admission and HF the cause J96.01 or I50.23, by Section II.C Depends on sequencing 189 Pulmonary Edema and Respiratory Failure, or 291

Scenario A is where most charts land. "Hypoxia" alone doesn't support acute respiratory failure, and a coder can't assign J96.01 from oxygen use. If the clinical picture points to respiratory failure, the step is a compliant query, not a code.

Scenario B is the legitimate MCC. It needs the provider's diagnostic statement and clinical support in the record, because Guideline I.A.19 says code assignment rests on the provider's statement, while payers run their own clinical validation afterward.

Scenario C shows the downside risk. Each CC has to meet the Section III reporting criteria: clinical evaluation, therapeutic treatment, diagnostic procedures, extended length of stay, or increased nursing care or monitoring. A sodium value flagged by the lab but never addressed doesn't qualify, because Section III.B says abnormal findings aren't coded unless the provider indicates their clinical significance.

Scenario D is the principal diagnosis argument. When respiratory failure and heart failure both drove the admission, Section II.C allows either first, and the choice moves the case to a different MDC. This is the case to document carefully, because payers review it often.

What the move between DRGs is worth

Medicare's operating payment is roughly the DRG relative weight multiplied by the hospital's wage-adjusted standardized amount, before add-ons for indirect medical education, disproportionate share and outliers. For FY 2027, BDO's summary of the final rule reports a national standardized amount of $4,245.76 labor plus $2,602.24 nonlabor for hospitals with a wage index at or below 1.0 that meet quality reporting and EHR requirements. At a wage index of exactly 1.0 that's $6,848.00 per unit of weight.

So every 0.10 of relative weight is worth about $685 per discharge at that rate. Pull the FY 2027 weights for 291, 292 and 293 from Table 5 on the CMS FY 2027 IPPS final rule page and multiply the gaps by your own blended rate. That number, times your annual heart failure volume, tells you what documentation accuracy in one DRG family is worth.

Where MS-DRG errors actually come from

Because the grouper is deterministic, DRG accuracy audits should test inputs rather than outputs. A useful audit splits every DRG change into the step that caused it.

Error source Typical finding Who fixes it
Principal diagnosis Symptom sequenced over a confirmed cause; Section II.C choice not supported Coder, with CDI query
PCS coding Wrong root operation or approach changes O.R. status Coder, operative note review
CC/MCC captured but unsupported MCC from a single mention, no treatment or monitoring CDI and coder, clinical validation
CC/MCC missed Treated condition documented only in nursing notes or labs CDI query
POA Default "Y" on a hospital-acquired condition Coder, with provider clarification
Discharge status Template disposition, not the final discharge note Coder, patient access

Track these as separate rates. A single "DRG match rate" hides which step is failing, and the fix for a principal diagnosis problem is different from the fix for a discharge status problem. The same logic applies when you measure coding accuracy for any automation: score the inputs, then the DRG.

Discharge status errors are the cheapest to prevent. For DRGs on CMS's post-acute transfer list, a transfer before the geometric mean length of stay reduces payment, so a templated disposition can misstate payment on a perfectly coded chart. A pre-bill edit comparing disposition to the discharge summary catches most of these.

How AI-assisted coding fits the grouper

Because grouping is deterministic, software can run it instantly and show exactly why a case landed where it did. What software can't do safely on its own is choose the principal diagnosis in a Section II.C case or decide that an MCC is clinically supported. Those are judgment calls that sit with a credentialed coder and, where needed, the provider.

MEDIQCODE's approach is AI-assisted coding with coder sign-off: the system proposes codes with the record evidence behind each one, flags the secondary diagnoses that change the severity tier, and a coder confirms the final DRG. For the published evidence on how well models handle each grouper input, see whether AI can assign MS-DRGs accurately.

Frequently asked questions

Does the order of secondary diagnoses affect the MS-DRG?

No. The grouper checks every secondary diagnosis and uses the highest qualifying severity, regardless of position. Order still matters for other purposes, and claim forms limit how many diagnoses some payers read, so put the CC and MCC codes within the first positions that your payers process.

What happens if two diagnoses both meet the principal diagnosis definition?

Section II.C of the ICD-10-CM guidelines allows either to be sequenced first when both equally meet the definition and no other guideline or Tabular instruction applies. Document the reasoning, because payers often challenge this choice when it produces the higher-weighted DRG.

Can a CC or MCC be excluded even if it's documented and supported?

Yes. Each CC and MCC carries an exclusion list of principal diagnoses that cancel it, published in Appendix C of the Definitions Manual. A secondary diagnosis closely related to the principal acts as a non-CC for that case only.

How often does MS-DRG logic change?

Every fiscal year, effective October 1, through the IPPS final rule. CMS can also issue mid-year grouper versions when new ICD-10 codes take effect on April 1. Check which grouper version applies to the discharge date before you validate a DRG.

Do commercial payers use MS-DRGs?

Many do, but some contracts use All Patient Refined DRGs (APR-DRGs) or other groupers with different severity logic. Check the contract, because a CC that changes the MS-DRG may not change an APR-DRG, and the reverse.

This article is general coding education, not a coding determination for any specific encounter.

More from the Journal

All articles

See it on your own charts.