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 returning 13 rows (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

metro_areacbsacodenum_hospitalscovid_icu_fractionicu_occupancy_fractiontotal_staffed_icu_bedstotal_covid_icu_beds
Athens, TX 11980 1 0.8907103825136612 1.0 18.3 16.3
Amarillo, TX 11100 2 0.7454545454545455 0.9272727272727272 55.0 41.0
Killeen-Temple, TX 28660 1 0.7079646017699115 1.0 11.3 8.0
Nacogdoches, TX 34860 1 0.70625 1.0 16.0 11.3
Tyler, TX 46340 2 0.6233644859813084 0.9598130841121496 107.0 66.7
McAllen-Edinburg-Mission, TX 32580 4 0.6033333333333333 0.9888888888888889 90.0 54.3
Corpus Christi, TX 18580 1 0.555977229601518 1.0 52.7 29.3
Austin-Round Rock, TX 12420 4 0.47896634615384626 0.9699519230769231 166.39999999999998 79.7
Dallas-Fort Worth-Arlington, TX 19100 13 0.4458858413639734 0.8632320237212752 539.5999999999999 240.60000000000002
Brownsville-Harlingen, TX 15180 4 0.41280539174389214 0.797809604043808 118.7 49.0
Houston-The Woodlands-Sugar Land, TX 26420 8 0.4032524807056229 0.9233737596471886 362.79999999999995 146.29999999999998
San Antonio-New Braunfels, TX 41700 7 0.3556207535515751 0.9073502161828291 647.6 230.3
El Paso, TX 21340 5 0.18114285714285713 0.8554285714285713 175.0 31.7
Powered by Datasette · Query took 10.991ms