15  Hospital Readmissions

A patient leaves the hospital and returns two weeks later. Counting the return sounds straightforward. But what if the patient transferred to another hospital? What if the return was for a scheduled procedure? What if there were three hospitalizations in those two weeks?

Hospital readmissions are one of the most useful examples of why healthcare analytics requires more than counting events. The calculation is a fraction. Most of the work is deciding which hospitalizations belong in that fraction and how they relate to one another.

In this chapter, we’ll work through the CMS Hospital-Wide All-Cause Unplanned Readmission measure, or HWR. We’ll build the eligible population, assign specialty cohorts, handle transfers, classify planned returns, and follow several patients through the calculation. Then we’ll distinguish the observed readmission rate from the risk-standardized result CMS reports.

Our reference definition is the 2021 claims-based HWR specification, version 10.0, including Planned Readmission Algorithm version 4.0, 2021. This is the specification behind the terminology used in Tuva’s earlier readmissions documentation. The full CMS report is preserved in Rhode Island’s 2021 hospital measure specifications, beginning on PDF page 148. Naming the version gives us one consistent definition to explain. A production implementation also needs that release’s code lists and software specifications.

CMS also publishes the Hybrid HWR measure, which combines claims with clinical risk factors from electronic health records. CMS expanded that measure to include Medicare Advantage admissions beginning with the FY 2027 payment determination. These developments are documented in the CMS hybrid methodology report and FY 2024 final-rule fact sheet. We use the earlier claims definition to teach the mechanics; implementing a current reporting measure means selecting its current specification and required inputs.

15.1 Two roles for a hospitalization

An index admission is a hospitalization that qualifies as the starting event for follow-up. A readmission is a subsequent hospitalization evaluated as an outcome of that index admission. HWR looks for unplanned returns to any eligible short-term acute care hospital, not just the original hospital. The reason for the return need not match the index diagnosis: this is what all-cause means.

These are roles, not permanent labels. A hospitalization can be a readmission for one stay and an index admission for the next. It can also qualify for neither role. In HWR, a readmission becomes a new index admission if it independently meets the index eligibility rules.

Start with one row per candidate index hospitalization and calculate two fields. We’ll use these teaching names rather than the column names of a particular package:

  • index_admit_flag: whether the hospitalization belongs in the denominator.
  • readmit_flag: whether that eligible index hospitalization has a qualifying readmission outcome.

The second flag describes what happened after the row’s hospitalization. It does not mean that the row itself was a return from a previous stay. If we need that relationship too, we store it separately.

\[ \text{Observed readmission rate} = \frac{\text{Eligible index admissions with a qualifying readmission}} {\text{Eligible index admissions}} \]

For example, three hospitalizations might contain two eligible index admissions, one of which has a qualifying readmission. The observed rate is \(1 / 2 = 50\%\). The denominator is hospitalizations, not unique patients, claim lines, or member months. Each eligible index contributes at most one numerator event.

15.2 Choose the measure before choosing the code

HWR is one member of a larger family of readmission measures. The Hospital Readmissions Reduction Program, or HRRP, uses condition- and procedure-specific measures for acute myocardial infarction, chronic obstructive pulmonary disease, heart failure, pneumonia, coronary artery bypass graft surgery, and elective primary total hip or knee arthroplasty. HWR is associated with the Hospital Inpatient Quality Reporting program and is not an HRRP measure. CMS explains this distinction in its readmissions program overview.

The distinction affects the calculation. A condition-specific measure begins with a defined clinical population; HWR begins with a much broader set of inpatient stays. Rules for allowing a readmission to become another index admission also differ. We cannot build HWR by adding together the numerators and denominators from the condition-specific measures.

An all-payer analysis can use the same basic framework. However, removing the Medicare enrollment requirements, including younger patients, or using one health system’s EHR changes the measured population or the ability to observe outcomes. Those are useful adaptations when stated clearly. Neither the chapter nor a Tuva output table, by itself, establishes conformity with a particular CMS reporting measure.

15.3 Build the inpatient stay table

Before applying the measure, construct a reliable table of short-term acute inpatient hospitalizations. A hospital stay can generate several institutional bills and many professional claims. Replacements, interim bills, and overlapping records can make one stay appear to be several. Resolve the relevant claim versions and use the encounter grouping logic before looking for returns.

The working data need more than admission and discharge dates:

Information What it establishes
Person identifier, source, birth date, and death information Patient continuity, age eligibility, and survival
Enrollment periods and coverage type Required history and the ability to observe subsequent care
Stay identifier and underlying claim identifiers One clinical event with a traceable set of source records
Hospital identifier and facility type Attribution, transfers, and eligible care settings
Admission date, discharge date, and claim FROM date The stay interval and the measure’s outcome timing
Discharge disposition Death, leaving against medical advice, and discharge setting
Principal and secondary discharge diagnoses, with coding system and present-on-admission information where required Cohort assignment, exclusions, planned classification, and risk factors
All relevant inpatient procedure codes, with coding system Surgery/gynecology assignment and planned classification

Diagnoses and procedures must be linked to the correct stay. The principal discharge diagnosis has a different role from a secondary diagnosis; a diagnosis found anywhere in a patient’s history cannot substitute for it. Likewise, the procedure logic evaluates the relevant procedures performed during the hospitalization, not an arbitrary first procedure.

Separate data-quality failures from clinical exclusions. An invalid discharge date is not the same as a valid hospitalization excluded for rehabilitation. The CMS report describes preprocessing for ineligible facilities and provider identifiers, overlapping claims, stays longer than one year, and enrollment-record problems. Preserve the reason a record leaves the calculation so changes in data quality do not look like changes in patient outcomes.

15.4 Determine which stays can be index admissions

Index eligibility combines population requirements, clinical exclusions, specialty assignment, and the handling of contiguous stays. We’ll consider each in turn.

15.4.1 Population and observation requirements

For the ordinary Medicare FFS population in the reference specification, an index admission must involve a patient aged 65 or older who has Part A FFS enrollment for the twelve months before admission and during the hospitalization. The patient must be discharged alive from an eligible short-term acute care hospital and have thirty days of post-discharge FFS enrollment, subject to the death exception below.

The twelve-month requirement supports the assessment of prior comorbidities. The post-discharge requirement supports outcome observation. These requirements answer different questions, and neither can be inferred from the presence of a claim.

The 2021 specification also includes VA administrative data. VA beneficiaries hospitalized in VA hospitals do not need Medicare FFS enrollment. VA beneficiaries hospitalized in non-VA hospitals must have FFS Part A at the index admission, but do not need the ordinary twelve-month prior enrollment. The thirty-day post-discharge FFS enrollment exclusion applies to non-VA beneficiaries. An analyst using only Medicare claims should not assume that missing VA care is observable.

A patient who dies during the index hospitalization cannot be readmitted after discharge, so that stay is excluded. Death after discharge is handled differently: an otherwise eligible stay remains eligible when death prevents a full thirty days of post-discharge enrollment. A qualifying return before that death still counts. These population rules and exceptions appear in section 2.2.1 of the reference specification.

15.4.2 Clinical exclusions and specialty cohorts

Exclude stays at PPS-exempt cancer hospitals and stays ending against medical advice. Also apply the specified principal-diagnosis exclusions for psychiatric treatment and the rules identifying rehabilitation admissions. These are specific exclusions, not a reason to exclude every patient who has any mental health condition or receives any rehabilitation service.

Rehabilitation cannot be identified reliably from the principal diagnosis alone in ICD-10 data. The reference specification also uses facility and provider information, discharge disposition and timing, and rehabilitation revenue-center codes to identify relevant rehabilitation stays and transfers. These rules affect both the index population and the removal of rehabilitation transfers from the readmission search. An inpatient rehabilitation unit can share a hospital identifier with an acute care hospital; treating every record under that identifier as acute inpatient care creates false readmissions. The additional rules are documented in Appendix C of the reference report.

Medical treatment of cancer requires particular care. The algorithm distinguishes it from surgical treatment of cancer. A patient undergoing a qualifying major cancer surgery can enter the surgery/gynecology cohort. A patient with cancer admitted for another eligible condition can also remain in the measure. A blanket has_cancer = 1 exclusion removes too many stays.

The five specialty cohorts are mutually exclusive. Each eligible index admission receives one assignment:

Specialty cohort Examples of the types of admissions it contains
Surgery/gynecology Qualifying major surgery, such as coronary artery bypass graft surgery, cholecystectomy, or hip replacement
Cardiorespiratory Heart failure, pneumonia, and chronic obstructive pulmonary disease
Cardiovascular Acute myocardial infarction and other specified cardiovascular conditions
Neurology Stroke and other specified neurologic conditions
Medicine Remaining eligible medical conditions, such as septicemia, urinary tract infection, or acute renal failure

The assignment has an order. After the general exclusions, first check whether any procedure belongs to the surgery/gynecology inclusion list. A qualifying surgical procedure takes precedence over the principal diagnosis. Among the remaining nonsurgical stays, exclude the specified medical-treatment-of-cancer categories, then use the principal discharge diagnosis to assign the appropriate medical cohort.

For example, a stay containing both a cardiovascular principal diagnosis and a qualifying bypass procedure belongs to surgery/gynecology. Assigning it to both cohorts would count it twice and give it two risk-model assignments. The hierarchy is shown in the CMS cohort flowchart.

15.4.3 Keep the terminology with the algorithm

The cohort labels are convenient names for code-defined populations. Implementation requires the corresponding lookup tables:

Terminology Use
ICD-10-CM and ICD-10-PCS mappings to the measure’s CCS categories Translate diagnosis and procedure codes into the categories used by the rules
Specialty-cohort and surgery/gynecology inclusion lists Assign each eligible stay to one cohort, including individually specified procedure codes
Cohort-exclusion categories Identify the specified clinical exclusions
Always-planned diagnosis and procedure categories Identify the first branch of planned classification
Potentially planned procedure categories and individual procedure codes Identify procedures requiring the acute-diagnosis check
Acute diagnosis categories and individual diagnosis codes Prevent potentially planned procedures from making an acute return planned
Risk-factor mappings and complication rules Construct the separate risk-standardization inputs

The historical measure uses CMS/Yale-modified CCS mappings and supplemental lists. A newer grouper with a similar name is not automatically an equivalent replacement. Record the measure release, mapping release, and clinical code versions together. An unmapped principal diagnosis is a data problem to investigate; absence from an exclusion list does not establish eligibility.

15.5 Resolve transfers and same-day returns

Two hospital bills close together can describe one continuous episode of acute care. The reference measure identifies a transfer when a patient enters a different short-term acute care hospital on the discharge date or the following calendar day. Neither a transfer discharge code nor a matching diagnosis is required for that timing rule.

Consider this sequence:

Stay Hospital Admission Discharge and destination
T1 North January 2 January 5; transfer
T2 South January 6 January 10; home
T3 East January 20 January 23; home

T1 and T2 form a transfer episode. T1 does not become a separate index admission. The terminal stay at South is the candidate index, and its January 10 discharge starts follow-up. Assuming the other requirements are met and T3 is unplanned, the January 20 return is attributed to South. It occurs ten days after final discharge. Counting the move from North to South as a readmission would create an outcome while the patient was still receiving the original course of acute care.

Transfer-in status does not itself disqualify the terminal stay. But it does not establish eligibility either: apply the measure’s remaining rules to the final candidate, with the required transfer-episode information. Do not assume that a qualifying first hospital record automatically makes every subsequent record an eligible index.

Same-day returns to the same hospital have a separate rule. If the patient returns on the discharge date for the same diagnosis, CMS treats the records as one continuous admission. A same-day return for a different diagnosis can be a readmission if it meets the outcome rules. This is why a universal next_admission_date > discharge_date condition is insufficient. Use the measure’s diagnosis comparison and retain the underlying records when combining stays. CMS documents the transfer and same-day rules on these consecutive pages.

15.6 Establish the thirty-day window

The follow-up window begins at discharge, after resolving any continuous episode. Time spent in the index hospitalization does not consume the thirty days after discharge. A return on day 30 is within the window; one on day 31 is outside it. Same-day cases require the rules we just discussed.

There is another important date distinction. The reference claims specification uses the subsequent inpatient claim’s FROM date to establish when the return episode began. That date can precede the inpatient admission date when outpatient care at the same hospital begins within three days before admission and is combined into the inpatient claim.

Suppose an index stay ends January 1. The patient returns to the same hospital’s emergency department January 30, becomes an inpatient February 1, and the care is combined into one inpatient claim with a January 30 FROM date. The return begins on day 29 for this calculation, even though inpatient admission is on day 31. It can therefore qualify. An ED visit or observation stay that never becomes an inpatient hospitalization does not qualify on its own. The bundled-care timing rule is described in section 2.2.2 of the CMS report.

Keep three different time requirements visible:

  1. Lookback: the history needed to establish population eligibility and prior risk factors.
  2. Follow-up: the period in which a qualifying return can occur after discharge.
  3. Claims runout: the additional time needed for care during follow-up to reach the extract.

A December 31 index discharge needs outcome observation through January 30 and enough runout for those claims to arrive. The last discharge date found anywhere in the dataset does not prove that follow-up is complete. A single recent claim can be present while many earlier claims are still missing. Use a documented data-completeness cutoff, enrollment information, and the source’s delivery pattern, as discussed in incurred dates, paid dates, and runout.

15.7 Classify the return as planned or unplanned

Scheduled care may be appropriate after discharge. HWR therefore excludes planned returns from the outcome. But the billing label elective is not the planned-readmission algorithm, and an often-scheduled procedure can also be performed during an emergency.

The algorithm evaluates the return hospitalization’s principal discharge diagnosis and procedures. Its branches have a defined order:

Step Test If yes If no
1 Does an always-planned procedure or principal diagnosis match? Planned Continue to step 2
2 Is a potentially planned procedure present? Continue to step 3 Unplanned
3 Is the principal diagnosis on the acute-diagnosis list? Unplanned Planned

First, evaluate the always-planned lists. A procedure in an always-planned category makes the return planned regardless of diagnosis. An always-planned principal diagnosis also makes it planned. These are limited, enumerated categories, including specified transplant procedures, maintenance chemotherapy/immunotherapy, and rehabilitation. A history of transplantation or cancer is not the same as receiving the listed care during this stay.

Next, evaluate potentially planned procedures. If the first branch did not apply, look for a procedure in the potentially planned list. This includes both procedure categories and individually specified codes. Without a match, classify the return as unplanned.

Finally, check the principal diagnosis for acute illness or complications. A potentially planned procedure results in a planned classification only when the principal diagnosis is absent from the specified acute-diagnosis lists. A secondary acute diagnosis does not substitute for the principal-diagnosis test. Conversely, a chronic condition elsewhere on the claim does not override an acute principal diagnosis.

For a synthetic example, suppose a return has a procedure on the potentially planned list. With a non-acute principal diagnosis, and no always-planned match, the algorithm labels it planned. Change only the principal diagnosis to one on the acute list and the result becomes unplanned. The presence of the procedure has not changed; the reason for the hospitalization has.

The always-planned branch takes precedence. Applying a blanket acute-diagnosis override to every return would implement a different algorithm. These branches are specified in section 2.2.3 and Appendix E of the 2021 report. Missing diagnoses or procedure data require investigation; they should not silently become evidence that a stay was unplanned.

15.8 Follow the sequence without skipping stays

After resolving transfers and continuous stays, identify the first subsequent short-term acute inpatient hospitalization in the outcome window. Apply the measure’s care-setting rules, but do not require this return to qualify as a new index admission. Preserve its planned classification. Do not remove planned stays and then search for the next unplanned stay.

Suppose one patient has these hospitalizations:

Stay Admission Discharge Planned classification
A January 2 January 5 Not needed to evaluate A’s subsequent outcome
B January 12 January 15 Planned
C January 20 January 23 Unplanned

B is the first return after A. Because B is planned, A does not receive a qualifying readmission outcome. C occurs fifteen days after A’s discharge, but it is not attributed to A. The intervening planned hospitalization may have contributed to C, so the algorithm does not skip B and connect A directly to C.

C can still be a readmission for B. If B independently qualifies as an index admission, its January 15 discharge starts a new window, and C occurs five days later. Being planned as a return from A does not, by itself, prohibit B from being an index. If B fails an index exclusion, such as the exclusion for medical treatment of cancer, it does not enter the denominator; C still does not become A’s outcome.

Now change B to unplanned. A receives one qualifying outcome, represented by B. If B qualifies as an index, C is B’s outcome. A does not receive a second numerator event for C, and C is not attributed to both A and B. The two rules work together: one outcome per index, while preserving the sequence of acute inpatient returns. The CMS hybrid methodology report, section 2.3, also explains this sequence and index reuse explicitly.

Index eligibility and outcome eligibility remain separate throughout. For example, an unplanned return ending in death can be the outcome for an earlier eligible index stay, even though that return cannot start a new index window. Filtering the entire stay table to index-eligible rows before finding returns would lose it.

15.9 Calculate the observed rate

Here is a small synthetic result after the rules have been applied. P1, P2, and P3 belong to the same patient. Q1 and R1 belong to two other patients. These are all candidate index stays in this example, and required history and mature outcome data are available except where stated.

Candidate index Discharge First subsequent acute inpatient return Eligible index Qualifying outcome
P1 January 5 P2 on January 16; unplanned 1 1
P2 January 18 P3 on January 25; unplanned 1 1
P3 January 27 None within thirty days 1 0
Q1 January 10 None within thirty days 1 0
R1 March 25 Unknown; complete data end March 31 0 Not evaluated

There are four eligible index admissions and two qualifying outcomes, for an observed rate of \(2 / 4 = 50\%\). P1’s return occurs eleven days after discharge. P2’s return occurs seven days after discharge. P3 is twenty days after P1’s discharge, but P1 still contributes only one outcome.

Counting eligible people would produce a denominator of two rather than four and answer a different question. Treating R1 as an index with no return would produce \(2 / 5 = 40\%\), a lower rate caused entirely by incomplete follow-up.

For reporting by month, group eligible index admissions by their final discharge month and attach each outcome to that index month. A January discharge followed by a February readmission contributes to January’s numerator and denominator. Grouping the numerator by the return month while grouping the denominator by index discharge month breaks the fraction.

15.10 Understand risk standardization

The observed rate answers a descriptive question: what proportion of these eligible index admissions had the defined outcome? It does not account for differences in the patients and services at different hospitals.

The reference HWR measure estimates a separate hierarchical logistic regression model for each specialty cohort. The models account for patient risk and a hospital-specific effect. Risk factors include age and specified comorbidities; service mix is represented using the measure’s diagnosis groupings. Comorbidities are drawn from the index stay and the preceding twelve months of inpatient history under rules intended to avoid adjusting away complications caused during the index hospitalization.

For each hospital and specialty cohort, the model calculates:

  • Predicted readmissions: the sum of modeled readmission probabilities for that hospital’s patients, using its estimated hospital effect.
  • Expected readmissions: the sum for the same patients using the average hospital effect.

Their ratio is the specialty cohort’s standardized readmission ratio. The hospital-wide calculation combines those ratios using a volume-weighted geometric mean, then multiplies by the national observed readmission rate:

\[ \text{HWR risk-standardized rate} = \text{Combined standardized readmission ratio} \times \text{National observed rate} \]

For illustration, a combined ratio of 0.90 and a national observed rate of 15% produce a risk-standardized rate of 13.5%. The hospital’s own observed rate need not be 13.5%. This example assumes the combined ratio has already been estimated; dividing observed events by expected events, or dividing a crude rate by a patient’s HCC score, does not reproduce the CMS calculation.

CMS also constructs interval estimates and applies reporting-volume rules. In the reference version, hospital comparisons use the 95% interval relative to the national observed rate; fewer than 25 eligible cases prevents public reporting of the hospital’s rate and interval. A small difference between two point estimates does not establish a meaningful difference in performance. The model, geometric combination, and reporting rules are described in sections 2.2.6–2.2.7 and Appendix A.

15.11 Make each decision inspectable

A useful readmission table preserves the logic behind its flags. Keep the candidate stay, patient and source keys, final attributed hospital, cohort assignment, individual exclusion reasons, final discharge date, observation and extraction cutoffs, first subsequent stay, elapsed days, planned-classification branch, and measure and terminology versions. Keep the claims supporting transfer and same-day consolidation as well.

For implementation in Tuva, the Quality Measures documentation is the entry point for installation, readmission outputs, and example queries. Use its documented column names and package definitions when querying those outputs; the two flag names used in this chapter explain the calculation.

Review patient timelines alongside aggregate counts. Particularly useful cases include day 30 versus day 31, a same-day return with the same versus a different diagnosis, a transfer without a transfer discharge code, a planned return followed by an unplanned one, a readmission that becomes another index, and a return that ends in death. These cases expose errors that a plausible overall percentage can hide.

A readmission does not establish that the earlier care was poor or that the return was preventable. It identifies an outcome under a defined set of rules. Report the eligible index count and outcome count with the rate, and name the population, measure version, follow-up period, and claims cutoff. That gives a clinical reviewer enough context to investigate the result and another analyst enough information to reproduce it.