All functions

add_subanalysis_flags()

Flag patients for subanalysis

calculate_comorbidity_scores()

Calculates Elixhauser comorbidity scores

clean_process_clinical_data()

Clean and process EHR data

ddi_ohdsi_rxnorm

ddi_ohdsi_rxnorm

ddi_rxcui2in

ddi_rxcui2in

ddi_rxcui_names

ddi_rxcui_names

define_observation_periods()

Define baseline and treatment periods

dr_ts_tutorial_data

dr_ts_tutorial_data

drugsHyperlipidemia

drugsHyperlipidemia

drugsHypertension

drugsHypertension

extract_clinical_data()

Extract clinical data from All of Us dataset

extract_icd_codes()

Function to get ICD data for calculating elixhauser scores

map_drugs_to_ingredients()

For drug repurposing EHR validation studies, map patient drugs to ingredients

observation_period_drug_exposures()

Get baseline and treatment period drug exposures

ohdsi_icd_elix

ohdsi_icd_elix

process_biomarker()

Process biomarkers data

process_clinical_data_lmm()

Clean and process EHR data for linear mixed model analysis

process_covariates()

Process covariates data

vw_weights

vw_weights