Removes drug ingredient allergies documented prior to observation period and requires all patients to have >=1 drug allergy list entry during observation period.

require_drug_allergies(ehr_drug_allergies, covariates)

Arguments

ehr_drug_allergies

A tibble

covariates

A tibble

Value

A tibble covariates