add_subanalysis_flags flags patients for subanalysis

add_subanalysis_flags(indication_drug_exposed, covariates, ...)

Arguments

indication_drug_exposed

A tibble with columns, c('person_id','rxcui_ingr','rxcui_ingr_name', 'group')

covariates

A tibble with columns, c('person_id','dob', 'gender_concept_id', 'race_concept_id', 'start_date', 'first_drug_exposure', 'final_end_date','age')

Details

This function flags patients for subanalysis, based on exposure to known approved drugs for target phenotype. Used for excluding patients exposed to known approved drugs.

Updated: 2021-03-27