addDailyDose {DrugUtilisation} | R Documentation |
add daily dose information to a drug_exposure table
Description
add daily dose information to a drug_exposure table
Usage
addDailyDose(
drugExposure,
cdm = attr(drugExposure, "cdm_reference"),
ingredientConceptId
)
Arguments
drugExposure |
drugExposure it must contain drug_concept_id, quantity, drug_exposure_start_date and drug_exposure_end_date as columns |
cdm |
A cdm reference |
ingredientConceptId |
ingredientConceptId for which to filter the drugs of interest |
Value
same input table
Examples
library(DrugUtilisation)
library(dplyr)
cdm <- mockDrugUtilisation()
cdm[["drug_exposure"]] %>%
filter(drug_concept_id == 2905077) %>%
addDailyDose(ingredientConceptId = 1125315)
[Package DrugUtilisation version 0.6.0 Index]