stratifyByUnit {DrugUtilisation}R Documentation

Function to stratify a conceptSet by unit

Description

Function to stratify a conceptSet by unit

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)
library(CodelistGenerator)

cdm <- mockDrugUtilisation()

codelist <- getDrugIngredientCodes(cdm, "acetaminophen")

codelistStratified <- stratifyByUnit(codelist, cdm, 1125315)

codelistStratified



[Package DrugUtilisation version 0.6.0 Index]