How full are ICUs summed by metropolitan area in a given state?

How full is the ICU at all reporting hospitals overall in metropolitan areas with more than 10 ICU beds in a given state? Enter the metropolitan area's cbsacode below and hit 'Run SQL'. To see hospital level detail for this metro area, copy the cbsacode and paste it into this query

Note that this query leaves out hospitals averaging less than 4 ICU COVID beds weekly, or that don't report their weekly staffed bed count, so consider the results an estimate only. This query also ignores lines where this data is blank.

The fractions are calculated as:
icu_occupancy_fraction = staffed_adult_icu_bed_occupancy_7_day_avg /total_staffed_adult_icu_beds_7_day_avg
How full is the ICU in terms of confirmed or suspected COVID patients? This is calculated as:
covid_icu_fraction = staffed_icu_adult_patients_confirmed_and_suspected_covid_7_day_avg /total_staffed_adult_icu_beds_7_day_avg

This database can be queried directly using Structured Query Language (SQL) supported by SQLite. For more on that syntax, see here. Read more about datasette, the technology powering these interactive queries.

Custom SQL query (hide)

select  cbsatitle as metro_area, cbsacode, count(*) as num_hospitals, (0.0 + sum(staffed_icu_adult_patients_confirmed_and_suspected_covid_7_day_avg))/sum(total_staffed_adult_icu_beds_7_day_avg) as covid_icu_fraction, (0.0 + sum(staffed_adult_icu_bed_occupancy_7_day_avg))/sum(total_staffed_adult_icu_beds_7_day_avg) as icu_occupancy_fraction, sum(total_staffed_adult_icu_beds_7_day_avg) as total_staffed_icu_beds, sum(staffed_icu_adult_patients_confirmed_and_suspected_covid_7_day_avg) as total_covid_icu_beds from   hosp_capacity left join cbsaxfips on hosp_capacity.fips_code = cbsaxfips.fips_code where  not total_staffed_adult_icu_beds_7_day_avg = '' and staffed_icu_adult_patients_confirmed_and_suspected_covid_7_day_avg > 0 and staffed_adult_icu_bed_occupancy_7_day_avg > 0 and staffed_adult_icu_bed_occupancy_7_day_avg > 0 and state = :state and collection_week = '2021/09/17' group by cbsacode, cbsatitle having sum(total_staffed_adult_icu_beds_7_day_avg) > 10 order by covid_icu_fraction desc;

Query parameters

Edit SQL

0 results

Powered by Datasette · Query took 1.069ms