Skip to contents

SOFA score

Calculate (elements) of the SOFA score

sofa_cardiovascular()
SOFA cardiovascular
sofa_cns()
SOFA CNS
sofa_coagulation()
SOFA coagulation
sofa_liver()
SOFA liver
sofa_magic_wrapper()
SOFA magic wrapper
sofa_renal()
SOFA renal
sofa_respiration()
SOFA respiration
sofa_total()
Total SOFA score

Respiration

Collection of function to clean and impute respiratory parameters

clean_fio2()
Clean FiO2
clean_spo2()
Clean SpO2
impute_fio2()
Impute FiO2
impute_pao2()
Impute PaO2 with SpO2
pfratio_imputed()
Calculate P/F-ratio
o2supply_to_fio2()
O2-supply to FiO2
spo2_to_pao2()
Convert SpO2 to PaO2

NEWS score

Calculate (elements) of the National Early Warning Score (NEWS)

news_consc()
Calculate NEWS score for Consciousness level (AVPU or GCS)
news_hr()
Calculate NEWS score for Heart Rate (HR)
news_o2supp()
Calculate NEWS score for Oxygen Supplementation (O2 supp)
news_rf()
Calculate NEWS score for Respiratory Frequency (RF)
news_sbp()
Calculate NEWS score for Systolic Blood Pressure (SBP)
news_spo2()
Calculate NEWS score for Oxygen Saturation (SpO2)
news_temp()
Calculate NEWS score for Temperature (Temp)
news_total()
Calculate total NEWS score from individual components

Postprocessing functions

Functions to postprocess and clean data

clean_lab()
Clean laboratory variables by removing '<' and '>' characters and converting to numeric Cleans all columns starting with "lab_" (per Acutelines standard)
normalize_decimal_format()
Normalize decimal format in a data frame Interprets both "." and "," as decimal indicators

Helper functions

cbrt()
Calculate cube root of x