shape_hospital_data: Shape EM Resource summary data for metric calculations

Description Usage Arguments Value Examples

View source: R/count_metrics.R

Description

Shape EM Resource summary data for metric calculations

Usage

1

Arguments

hosp_df

data.frame output by pull_hospital

Value

a list of data.frames. The "summary" data.frame has one row per county, state, and HERC regions with the following columns

Run_Date

Date hospital report was run

RowType

Are row values summary or daily values

fips

FIPS Code and/or region identifier

geo_name

Name of geography

pop_2018

2018 Population Numbers pulled from WISH

covid_reg_weekly_1

Hospitalized Covid cases for current 7 day period

covid_reg_weekly_2

Hospitalized Covid cases for prior 7 day period

covid_icu_weekly_1

ICU Covid cases for current 7 day period

covid_icu_weekly_2

ICU Covid cases for prior 7 day period

week_end_1

End date for current 7 day period

week_end_2

End date for prior 7 day period

and the "daily" data.frame has one row per state and HERC region (not county) per day for the two week period with the following columns

County

Name of geography

Report_Date

Date hospital information was reported

dailyCOVID_px
dailyCOVID_ICUpx
geo_type

Type of geography - all missing should be removed

fips

FIPS Code and/or region identifier

pop_2018

WISH 2018 population figures

RowType

Are row values summary or daily values

totalbeds

Total Beds (ICU, Intermediate, Med/Surg, Neg. Flow)

beds_IBA

Total Immediate Beds Available (ICU, Intermediate, Med/Surg, Neg. Flow)

totalICU

Total ICU Beds

ICU_IBA

Immediate ICU Beds Available

num_px_vent

Current Number of Ventilated Patients (Induvated and mechanically ventilated)

total_vents

Total rented/owned/demoed general use ventilators on hand

intermed_beds_IBA

Immediate Intermediate Care Beds Available

negflow_beds_IBA

Immediate Negative Airflow Isolation Beds Available

medsurg_beds_IBA

Immediate Medical/Surgical Beds Available

PrctBeds_IBA

Hosp_beds_IBA / Hosp_totalbeds

PrctICU_IBA

Hosp_ICU_IBA / Hosp_ICU_IBA

PrctVent_Used

Hosp_num_px_vent / Hosp_total_vents

Run_Date

Date hospital report was run

Examples

1
2
3
4
## Not run: 
  #Add examples here

## End(Not run)

Skomim/COVID_trajectory_Madison documentation built on July 19, 2020, 12:34 a.m.