- Explore low tidal volume ventilation variation between males and females
- Identify risk factors for length of mechanical ventilation. Specific
variables of interest:
ltvvsexoxygenation_indexhospital
Please refer to the online CLIF data dictionary, ETL tools, and specific table contacts for more information on constructing the required tables and fields. List all required tables for the project here, and provide a brief rationale for why they are required.
The following tables are required:
- patient:
patient_id,race_category,ethnicity_category,sex_category,death_date - hospitalization:
hospitalization_id,admission_dttm,discharge_dttm,age_at_admission,patient_id,admission_type_name,admission_type_category,discharge_name,discharge_category - vitals:
hospitalization_id,recorded_dttm,vital_category,vital_value-vital_category= 'heart_rate', 'resp_rate', 'sbp', 'dbp', 'resp_rate', 'spo2' - labs:
hospitalization_id,lab_result_dttm,lab_order_dttm,lab_collect_dttm,lab_category,lab_name,lab_value_numeric,reference_unit,lab_category= 'sodium', 'albumin', 'bilirubin_total', 'bun', 'carbon_dioxide', 'creatinine', 'glucose_serum', 'hemoglobin', 'lactate', 'pco2_arterial', 'po2_arterial', 'ph_arterial', 'platelet_count', 'so2_arterial', 'sodium', 'troponin_i', 'wbc' - adt:
hospitalization_id,in_dttm,out_dttm,location_name,location_category - respiratory_support:
hospitalization_id,recorded_dttm,device_name,device_category,mode_name,mode_category,fio2_set,lpm_set,tidal_volume_set,resp_rate_set,pressure_support_set,peep_set,tidal_volume_obs(optional),plateau_pressure_obs,peak_inspiratory_pressure_obs,mean_airway_pressure_obs(optional),tracheostomy - patient_assessments:
hospitalization_id,recorded_dttm,numerical_value,assessment_category= "gcs_total"
- Adults (age >= 18 years old)
- Mechanical Ventilation within 72 hours of admission
- Admission from 2018-2024 (anytime between these years is acceptable... does not need to be the entire time frame)
- Volume control with a set tidal volume within 24 hours of mechanical ventilation
- Patient that died within 24 hours of mechanical ventilation
Table 1 - descriptive data by hospital aggregated data 1 - male vs.
female LTVV aggregated data 2 - odds ratios for regression of
ventilator days
project results will be saved in the output/final
directory.
This has been completed by Nick when making this script already
(SKIP)
Describe the steps to set up the project environment.
# Install renv if not already installed:
if (!require("renv", quietly = TRUE)) {
install.packages("renv")
}
# Initialize renv for the project:
renv::init(bare = TRUE, settings = list(use.cache = FALSE))
# Install required packages:
renv::install("BiocManager")
BiocManager::install("IRanges")
# renv::update()
renv::install(c("tidyverse", "ggthemes", "systemfonts", "styler", "readxl", "writexl", "DBI", "dbplyr", "knitr", "pandoc", "janitor", "data.table", "duckdb" ,"powerjoin", "collapse", "tidyfast", "datapasta", "fst", "dtplyr", "bit64", "zoo", "fuzzyjoin", "arrow", "hrbrthemes", "here", "table1", "rvest", "tidymodels", "pscl", "survminer"))
# Save the project's package state:
renv::snapshot()
Follow the instructions in the config/README.md file for detailed configuration steps.
Detailed instructions on the code workflow are provided in the code directory