# \donttest{
cdm <- mockDrugUtilisation()
indications <- list("headache" = 378253, "asthma" = 317009)
cdm <- CDMConnector::generateConceptCohortSet(
cdm = cdm, conceptSet = indications, name = "indication_cohorts"
)
cdm <- generateIngredientCohortSet(
cdm = cdm, name = "drug_cohort",
ingredient = "acetaminophen"
)
cdm$drug_cohort |>
addIndication(
indicationCohortName = "indication_cohorts",
indicationWindow = list(c(0, 0)),
unknownIndicationTable = "condition_occurrence"
) |>
dplyr::glimpse()
# }
Run the code above in your browser using DataLab