Characteristics and outcomes of ED patients requiring non-invasive respiratory support admitted to ward, intermediate, and intensive care settings
Acute respiratory failure (ARF) is a common and increasingly prevalent cause of hospitalization and death in the United States, accompanied by rising use of high-flow nasal oxygen (HFNO) and non-invasive ventilation (NIV). Although such patients have traditionally been managed in intensive care units (ICUs), many can now be safely treated in intermediate care (IMC) or specialized ward settings, depending on illness severity and available monitoring and staffing. IMC units were developed to optimize ICU utilization and may influence both triage patterns and outcomes for patients receiving HFNO or NIV, yet their role in this population remains incompletely defined.
In this study, we examine variation in clinical outcomes among patients with ARF initiated on HFNO and/or NIV in the emergency department across hospitals in the CLIF consortium, testing whether the availability of IMC capability is associated with differences in mortality and hospital length of stay across ICU, IMC, and ward admissions.
Please refer to the online CLIF data dictionary, and ETL tools, for more information on constructing the required tables and fields.
The following tables are required:
hospitalizationadtrespiratory_supportmedication_admin_continuouscode_statuspatientvitalslabspatient_assessmentshospital_diagnosiscrrt_therapy
To run this code, you must also be able to run R and Python and have clify installed.
-
Rename
config/config_template.yamltoconfig/config.yamlwith site-specific details -
Run the local code files
-
Run
code/00_ARF_IMC_cohort.Rmd -
To run
code/01_ARF_IMC_sepsis_indicators.py:-
Install
uv(if not already installed):curl -LsSf https://astral.sh/uv/install.sh | sh -
Sync the Python environment and install dependencies:
uv sync
-
Run the script:
uv run code/01_ARF_IMC_sepsis_indicators.py
-
-
Run
code/02_ARF_IMC_stratification.Rmd -
Run
code/03_ARF_IMC_initial_analysis.Rmd -
Run
code/04_ARF_IMC_generate_local_coeff.Rmd
-
-
Wait for Hopkins to pool the local coefficients to generate global coefficients
-
Pull from the GitHub repo to update global coefficients
-
Run the remaining code, starting at
code/06_ARF_IMC_apply_summary_coeff.Rmd
In running the code, each site will produce two folders: private_tables and [sitename]_project_output. private_tables is NOT to be shared, as it includes patient row-level data for local analysis. When completed your analysis, please upload [sitename]_project_output to the shared box: https://app.box.com/folder/342878616000.