Concept Architecture
DRG Assignment in Hospital Coding, Grouping and Costing
DRG assignment turns the clinical record of a hospital stay into a single payment group. Assignment happens in two stages, with clinical coders first translating the notes into standard diagnosis and procedure codes and grouper software then applying fixed rules to those codes. For health economists the result matters because the weight of the assigned group, multiplied by a base rate, sets the price a payer pays for the stay, while the group itself feeds the case mix figures used to compare hospitals and supplies the unit cost that many models attach to an admission. England applies the same kind of logic, with its own rules, to allocate stays to healthcare resource groups (HRGs).
Turning the medical record into a coded abstract
Grouping works only on what has been coded. The Centers for Medicare & Medicaid Services (CMS) states that Medicare stays paid under the inpatient prospective payment system are classified into Medicare severity DRGs (MS-DRGs) on the principal diagnosis, up to 24 additional diagnoses and up to 25 procedures, with age, sex and discharge status used in a small number of groups, all reported in ICD-10-CM and ICD-10-PCS codes since 1 October 2015. CMS explains that the original design limited these characteristics to information routinely collected in hospital abstract systems, so that the scheme could be applied uniformly across hospitals.
The principal diagnosis is the entry point, and its definition is a rule of the national system rather than a clinical fact. Roberts, Reid and Irwin note that the Australian definition of principal diagnosis differed from the US one used when DRGs were developed, and they studied how often it led to a different DRG. Grouped data pooled across countries therefore carry each system's coding conventions as well as its groups.
How grouper software chooses one group
The MS-DRG grouper applies fixed rules to each abstract, and CMS publishes the full logic in its definitions manual. The main tests in Version 44 are these.
- Pre-MDC procedures. Since the eighth version, stays with certain very resource-intensive procedures, such as heart, liver or lung transplants, have been assigned to Pre-MDC groups whatever the principal diagnosis.
- Major diagnostic category. Otherwise the principal diagnosis places the stay in one of 25 major diagnostic categories (MDCs), most of which follow an organ system.
- Medical or surgical partition. A procedure designated as an operating room procedure makes the stay surgical. When several are recorded, a surgical hierarchy ranks the classes by resource intensity, so the order of procedures on the abstract has no influence on the group. A stay whose only operating room procedures are unrelated to the principal diagnosis goes to a group for unrelated procedures.
- Severity split. Each secondary diagnosis is classed as a major complication or comorbidity (MCC), a complication or comorbidity (CC) or neither. A CC exclusion list stops a code acting as a CC or MCC when it is closely related to the principal diagnosis.
- Discharge status and validity. For acute myocardial infarction, an MCC sends a patient discharged alive to MS-DRG 280 and one who died to MS-DRG 283, and an invalid principal diagnosis code sends any stay to the ungroupable MS-DRG.
The scale of the classification explains why software does the work. CMS reports that Version 44, in force between 1 October 2026 and 31 March 2027, has 346 base MS-DRGs split into 768 MS-DRGs.
HRG grouping in England
English grouping follows a similar path with different priorities. Grašič, Mason and Street describe grouping software allocating patients to HRGs from their electronic record, with missing or invalid required fields giving an error code HRG. In HRG4+ the first step is unbundling, which moves some high cost procedures, diagnostic imaging and high cost drugs into separate HRGs that the grouper ignores when it derives the core HRG. Multiple trauma is identified next, and procedures are then ranked by a hierarchy based on cost data and clinical knowledge.
Two details differ from the MS-DRG rules. Where several procedures share the same hierarchy value, the one listed first in the record is used, so procedure order can matter. Complication and comorbidity splits in HRG4+ rest on the summed score of all comorbidities present.
Grouper versions and change over time
A DRG is defined by the grouper version that produced it. CMS notes that it is required by statute to adjust the DRG classifications and relative weights at least annually, and its version table shows a new MS-DRG version each October and a point release each April, such as Version 43.1 from 1 April 2026. Carter, Newhouse and Relles traced some of the 1986 to 1987 rise in Medicare's case mix index to changes in the grouper itself, with most of it due to truly more complex cases and more complete coding. Comparisons across years, and tariff costs used in a model set in another year, need the grouping version stated.
Coding quality and the group a stay receives
Because grouping is deterministic, a coding error in any grouping variable can change the group. Hsia and colleagues reabstracted 7,050 Medicare records from 239 hospitals and found an error rate of 20.8% in DRG coding. Of the errors, 61.7% favoured the hospital, raising the average hospital's case mix index by 1.9%, the pattern the DRG creep page examines.
Accuracy has since improved in some settings. In a systematic review of 32 studies of routinely collected data in Great Britain, Burns and colleagues report a median diagnostic coding accuracy of 80.3% and a median procedure accuracy of 84.2%, with primary diagnosis accuracy of 96.0% after Payment by Results began in 2002, against 73.8% before. Grouping rules can also remove a payment incentive, and CMS disregards a listed hospital acquired condition as a CC or MCC when the present on admission indicator shows it was not present at admission.
Worked example with case mix shares in a cohort model
All numbers in this example are illustrative, and the weights do not reproduce any national tariff. A model compares two drug treatments for patients admitted with acute myocardial infarction, treated without a procedure that changes the group and discharged alive, so each admission falls into one of three groups split by MCC, CC or neither, with relative weights of 1.70, 1.00 and 0.75 and a base rate of USD 7,000 per unit of weight.
where is the expected payment per admission, is the base rate in USD per unit of weight, is the share of admissions assigned to group , is the relative weight of group and is the number of groups, here three.
Step 1. Current care. Shares are 0.30 with an MCC, 0.40 with a CC and 0.30 with neither. The expected weight is 0.30 × 1.70 + 0.40 × 1.00 + 0.30 × 0.75 = 1.135, made up of 0.51, 0.40 and 0.225, so the expected payment is 1.135 × 7,000 = USD 7,945 per admission.
Step 2. New treatment. Fewer in-hospital complications move the shares to 0.25, 0.35 and 0.40. The expected weight is 0.25 × 1.70 + 0.35 × 1.00 + 0.40 × 0.75 = 1.075, made up of 0.425, 0.35 and 0.30, and the expected payment is 1.075 × 7,000 = USD 7,525, a difference of 7,945 minus 7,525 = USD 420 per admission.
Step 3. Coding change alone. If better documentation under current care shifted 0.05 of admissions out of the no CC group into the CC group with no change in treatment, the expected weight would rise by 0.05 × 0.25 = 0.0125, worth 0.0125 × 7,000 = USD 87.50 per admission.
Step 4. Reading the result. A model that costed every admission at one average group would show no saving, because the effect of the treatment works only through the group shares. The coding change in Step 3 is about a fifth of the treatment effect in Step 2, since 87.50 / 420 is about 0.21, so group shares taken from coded data should be checked for coding drift before they enter a model.
DRG assignment in economic evaluation and models
When a model uses DRG or HRG prices, the analyst performs a form of assignment by deciding which group each modelled event belongs to. The NICE manual PMG36 calls HRGs a valuable source of information for estimating resource use and asks for all relevant HRGs to be considered, since time in critical care is costed as a separate HRG and some costs are unbundled from the core HRG (section 4.4.9). Section 4.4.10 adds that HRG data may not suit cases where the new technology and the comparator fall in the same HRG, or where the mean cost does not reflect resource use with the new technology, and that micro-costing studies may then be more appropriate.
The choice of split deserves a sensitivity analysis when severity data are thin, because the expected cost depends on the share of stays in each severity split. Grouped administrative data bring the same assumptions with them, so the grouper version, coding rules and any unbundled activity should be reported with the cost.
Boundaries with nearby concepts
DRG assignment is the act of classifying one stay, while the diagnosis related group page covers the classification itself, its relative weights and its use in hospital payment. Case mix describes the patients a provider treats and is measured by summarising the groups assigned. Case-based payment and activity-based funding are payment designs that depend on assignment, while DRG creep describes a rise in coded case mix that comes from coding or grouper changes rather than from changes in the patients treated.
In RHEO
RHEO represents the real activity behind this concept with the class case-mix grouping process (RHEO_0000115), a planned process in which the coded record of a care episode or spell is assigned to a case-mix group by a grouping algorithm. The RHEO class is broader than the wiki concept and also covers HRG and other case-mix groupings, which makes DRG assignment the narrower idea within it. The RHEO process starts from the coded record, so the clinical coding that produces that record is an earlier, separate step outside this class.
The class case-mix group assignment (RHEO_0000114) is the data entity that records the group, such as a healthcare resource group or a diagnosis-related group, to which a care episode or spell has been assigned for payment. Despite the similar name, it is the record of the group that grouping produces, which makes it related to DRG assignment rather than the same thing. RHEO is a formal ontology published at healtheconomics.wiki/ontologies/rheo.
Common errors with assigned groups
Most errors come from reading the group as more than a resource class. Two recur in models and studies.
- Group as severity. CMS states that a more complex case mix in DRG terms means patients who need more hospital resources, not necessarily greater severity of illness, and gives terminal cancer as an example of severe illness with modest resource use.
- Procedure order assumed irrelevant. Order has no influence under the MS-DRG surgical hierarchy, but it settles ties in HRG4+.
Sources
- Burns EM, Rigby E, Mamidanna R, Bottle A, Aylin P, Ziprin P, Faiz OD. Systematic review of discharge coding accuracy. Journal of Public Health. 2012;34(1):138-148. https://doi.org/10.1093/pubmed/fdr054
- Carter GM, Newhouse JP, Relles DA. How much change in the case mix index is DRG creep? Journal of Health Economics. 1990;9(4):411-428. https://doi.org/10.1016/0167-6296(90)90003-L
- Centers for Medicare & Medicaid Services. Defining the Medicare Severity Diagnosis Related Groups (MS-DRGs), Version 44.0. Baltimore, MD: CMS; October 2026. https://www.cms.gov/icd10m/FY2027-fr-v44-fullcode-cms/fullcode_cms/Defining_the_Medicare_Severity_Diagnosis_Related_Groups_(MS-DRGs).pdf
- Centers for Medicare & Medicaid Services. Design and Development of the Diagnosis Related Group (DRGs), MS-DRG Definitions Manual Version 44.0. Baltimore, MD: CMS; October 2026. https://www.cms.gov/icd10m/FY2027-fr-v44-fullcode-cms/fullcode_cms/Design_and_Development_of_the_Diagnosis_Related_Group_(DRGs).pdf
- Centers for Medicare & Medicaid Services. MS-DRG Classifications and Software. Baltimore, MD: CMS; accessed 15 November 2026. https://www.cms.gov/medicare/payment/prospective-payment-systems/acute-inpatient-pps/ms-drg-classifications-and-software
- Grašič K, Mason AR, Street A. Paying for the quantity and quality of hospital care: the foundations and evolution of payment policy in England. Health Economics Review. 2015;5:50. https://doi.org/10.1186/s13561-015-0050-x
- Hsia DC, Krushat WM, Fagan AB, Tebbutt JA, Kusserow RP. Accuracy of diagnostic coding for Medicare patients under the prospective-payment system. New England Journal of Medicine. 1988;318(6):352-355. https://doi.org/10.1056/NEJM198802113180604
- National Institute for Health and Care Excellence. NICE technology appraisal and highly specialised technologies guidance: the manual (PMG36), chapter 4 Economic evaluation. London: NICE; published 31 January 2022, last updated 13 October 2026. Sections 4.4.9 and 4.4.10. https://www.nice.org.uk/process/pmg36/chapter/economic-evaluation-2
- Roberts RF, Reid BA, Irwin AL. Case-mix grouping and DRGs: making the principal diagnosis. Medical Journal of Australia. 1985;143(6):243-245. https://doi.org/10.5694/j.1326-5377.1985.tb122962.x
Related Concepts (4)
Library
Publications
3
Paying for the quantity and quality of hospital care: the foundations and evolution of payment policy in England — Grašič K, Mason AR, Street A, Vol. 5, Article 50 ed., 2015 (Health Economics Review)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on drg-assignment, healthcare-resource-group and Classification Revision, where it is cited as a reference for these concepts.
Journal ArticleView source →Case-mix grouping and DRGs: making the principal diagnosis — Roberts RF, Reid BA, Irwin AL, Vol. 143, No. 6, pp. 243-245 ed., 1985 (Medical Journal of Australia)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on drg-assignment, where it is cited as a reference for that concept.
Journal ArticleView source →Accuracy of diagnostic coding for Medicare patients under the prospective-payment system — Hsia DC, Krushat WM, Fagan AB, Tebbutt JA, Kusserow RP, Vol. 318, No. 6, pp. 352-355 ed., 1988 (New England Journal of Medicine)
Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on drg-assignment, where it is cited as a reference for that concept.
Journal ArticleView source →
Frequently Asked Questions (6)
What is DRG assignment?
DRG assignment is the process of placing an inpatient stay in one diagnosis-related group, using its coded diagnoses, procedures and patient details.
Source: CMS 2026
What does DRG assignment classify an inpatient stay into?
Each stay is placed in exactly one diagnosis-related group, a class of stays expected to need similar hospital resources. CMS reports that Version 44 of the Medicare severity system has 346 base MS-DRGs split into 768 MS-DRGs, so one base group can hold separate groups by severity, depending on whether a major complication or comorbidity, a complication or comorbidity, or neither is coded. CMS also states that a more complex case mix in DRG terms means patients who need more hospital resources, not necessarily greater severity of illness. The assigned group is therefore a resource class, and CMS calculates the payment for the stay by multiplying the hospital's payment rate per case by the weight of that group.
Source: CMS 2026
What does DRG assignment classify?
The unit classified is a single inpatient stay, taken as the coded abstract of that stay and not the clinical notes themselves. Clinical coders first translate the record into standard diagnosis and procedure codes, and grouper software then applies fixed rules to those codes. CMS states that Medicare stays paid under the inpatient prospective payment system are classified in this way, with the codes reported in ICD-10-CM and ICD-10-PCS since 1 October 2015. Because the grouper sees only what has been coded, a coding error in any grouping variable can change the group a stay receives.
Source: CMS 2026
On what is DRG assignment based?
According to CMS, MS-DRG assignment uses the principal diagnosis, up to 24 additional diagnoses and up to 25 procedures, with age, sex and discharge status used in a small number of groups. The principal diagnosis usually places the stay in one of 25 major diagnostic categories, although certain very resource-intensive procedures such as transplants send it to a Pre-MDC group. An operating room procedure makes the stay surgical, and secondary diagnoses classed as complications or comorbidities set the severity split. CMS explains that the original design kept to information routinely collected in hospital abstract systems, so the scheme could be applied uniformly across hospitals.
Source: CMS 2026
What kind of stay does DRG assignment classify?
The stays in scope are admitted hospital stays, and each stay receives one group from its coded record. In the United States, CMS states that Medicare stays paid under the inpatient prospective payment system are classified into MS-DRGs, and how the stay ended can matter to the group. For acute myocardial infarction with a major complication or comorbidity, a patient discharged alive goes to MS-DRG 280 and one who died goes to MS-DRG 283. For health economists the assigned group of such a stay often supplies the unit cost that a model attaches to a hospital admission.
Source: CMS 2026
How does DRG assignment relate to DRG creep?
DRG creep is a rise in coded case mix that comes from coding or grouper changes rather than from changes in the patients treated. Because grouping is deterministic, more complete or more generous coding of secondary diagnoses can move a stay into a higher weighted group with no change in the patient. Carter, Newhouse and Relles traced some of the 1986 to 1987 rise in Medicare's case mix index to changes in the grouper itself, with most of it due to truly more complex cases and more complete coding. Group shares taken from coded data should therefore be checked for coding drift before they enter a cost model.
Source: Carter et al. 1990
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 15 Nov 2026
Content version: 1.0.1
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/drg-assignment
- Term code
- HS-HP-PP-043
Stable URI · Machine-readable · Resolvable · CC BY 4.0
