
Extract cohort summary information from a Hospital-Specific Report (HSR)
Source:R/hsr_cohort_summary.R
hsr_cohort_summary.RdParses the Table 2 cohort summary from the HSR, including (but not limited to) the discharge/readmission volumes, predicted/expected readmission rates, peer group medians, and DRG ratios.
Note: CMS changed the format of Hospital-Specific Reports (HSRs) for FY2026 (see here). The current HSR functions support formats through FY2025.
Value
A tibble::tibble() containing the full Table 2 parsed from the report.
Examples
# Access a report
my_report <- hsr_mock_reports("FY2025_HRRP_MockHSR.xlsx")
# Extract the cohort summary as a dataset
hsr_cohort_summary(my_report)
#> # A tibble: 6 × 10
#> `Measure [a]` `Number of Eligible Discharges [b]` Number of Readmissions Amo…¹
#> <chr> <dbl> <dbl>
#> 1 AMI 2 0
#> 2 COPD 18 3
#> 3 HF 25 2
#> 4 Pneumonia 32 5
#> 5 CABG NA NA
#> 6 THA/TKA 45 0
#> # ℹ abbreviated name: ¹`Number of Readmissions Among Eligible Discharges [c]`
#> # ℹ 7 more variables: `Predicted Readmission Rate [d]` <dbl>,
#> # `Expected Readmission Rate [e]` <dbl>,
#> # `Excess Readmission Ratio (ERR) [f]` <dbl>,
#> # `Peer Group Median ERR [g]` <dbl>, `Penalty Indicator (Yes/No) [h]` <chr>,
#> # `Ratio of DRG Payments Per Measure to Total Payments [i]` <dbl>,
#> # `National Observed Readmission Rate [j]` <dbl>