addRoute {DrugUtilisation} | R Documentation |
add route column to a table containing drug_exposure information
addRoute(drugTable, cdm = attr(drugTable, "cdm_reference"))
drugTable |
Table in the cdm that must contain drug_concept_id |
cdm |
'cdm' object created with CDMConnector::cdm_from_con(). It must must contain 'concept_relationship' table. |
It adds route to the current table
library(DrugUtilisation)
library(dplyr)
cdm <- mockDrugUtilisation()
cdm[["drug_exposure"]] %>%
addRoute()