stratifyByUnit {DrugUtilisation} | R Documentation |
Function to stratify a conceptSet by unit
Description
Usage
stratifyByUnit(conceptSet, cdm, ingredientConceptId)
Arguments
conceptSet |
List of concept sets |
cdm |
cdm reference |
ingredientConceptId |
ConceptId that refers to an ingredient |
Value
The conceptSet stratified by unit
Examples
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
codelist <- CodelistGenerator::getDrugIngredientCodes(cdm, "acetaminophen")
codelistStratified <- stratifyByUnit(codelist, cdm, 1125315)
codelistStratified
[Package DrugUtilisation version 0.7.0 Index]