Under IPPS, every inpatient stay is assigned to an MS-DRG based on the principal diagnosis, secondary diagnoses including complications and comorbidities, procedures performed, and discharge status. Each MS-DRG carries a relative weight that reflects average resource use, which is multiplied by the hospital's base rate, adjusted for local wages, teaching status, the disproportionate share of low-income patients, and other factors, to produce the payment. Outlier payments supplement cases with extraordinarily high costs. CMS updates the system annually through the IPPS final rule, revising DRG weights, the base rate, and quality program adjustments.