Skip to contents

This function retrieves hospital reporting data from data.cdc.gov and checks for data latency and reporting completeness issues. It returns a flag string describing any reporting issues.

Usage

check_hospital_reporting_rate(
  reference_date,
  disease,
  excluded_hosp_locations = NULL
)

Arguments

reference_date

Date, the reference date for the forecast.

disease

Character, disease name ("covid" or "rsv").

excluded_hosp_locations

Character vector of US state/territory abbreviations to exclude from expected reporting locations. Pre-resolved for the hospital admissions target by the caller. Default: NULL (no exclusions).

Value

Character string describing reporting issues, or empty string if no issues.