addDailyDose {DrugUtilisation}R Documentation

add daily dose information to a drug_exposure table

Description

[Deprecated]

Usage

addDailyDose(drugExposure, ingredientConceptId, name = NULL)

Arguments

drugExposure

drugExposure it must contain drug_concept_id, quantity, drug_exposure_start_date and drug_exposure_end_date as columns

ingredientConceptId

ingredientConceptId for which to filter the drugs of interest

name

Name of the computed table, if NULL a temporary table will be generated.

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.7.0 Index]