Usage
stratifyByUnit(conceptSet, cdm, ingredientConceptId)
Arguments
- conceptSet
List of concepts to be included.
- cdm
A cdm_reference
object.
- ingredientConceptId
Ingredient OMOP concept that we are interested for
the study.
Value
The conceptSet stratified by unit
Examples
# \donttest{
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
codelist <- CodelistGenerator::getDrugIngredientCodes(cdm, "acetaminophen")
codelistStratified <- stratifyByUnit(codelist, cdm, 1125315)
#> Warning: `stratifyByUnit()` was deprecated in DrugUtilisation 0.7.0.
#> ℹ Please use `CodelistGenerator::stratifyByDoseUnit()` instead.
codelistStratified
#> $`161_acetaminophen unit: milligram`
#> [1] 1125360 2905077 43135274
#>
# }