Learn R Programming

DrugUtilisation (version 0.8.3)

addDailyDose: add daily dose information to a drug_exposure table

Description

[Deprecated]

Usage

addDailyDose(drugExposure, ingredientConceptId, name = NULL)

Value

same input table

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.

Examples

Run this code
# \donttest{
library(DrugUtilisation)
library(dplyr)

cdm <- mockDrugUtilisation()

cdm[["drug_exposure"]] |>
  filter(drug_concept_id == 2905077) |>
  addDailyDose(ingredientConceptId = 1125315)
# }

Run the code above in your browser using DataLab