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_latency(
  reference_date,
  disease,
  included_locations = hubhelpr::included_locations
)

Arguments

reference_date

Date, the reference date for the forecast.

disease

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

included_locations

Character vector of location codes that are expected to report. Default hubhelpr::included_locations.

Value

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