MS-DRGs (Medicare Severity Diagnosis Affiliated Groups) is a system that classifies Medicare hospital stays into groups to align payment with resource utilization. It defines patient categories based on treatment, resources, duration of stay, age, and diagnosis, and uses an algorithm to assign patients to groups for prospective payment.