Skip to contents

Generate a drug utilisation cohort set

Generate a cohort of drug use

generateAtcCohortSet()
Generates a cohort of the drug use of ATC name(s) of interest.
generateDrugUtilisationCohortSet()
Generates a cohort of the drug use of a certain list of concepts.
generateIngredientCohortSet()
Generates a cohort of the drug use of ingredient name(s) of interest.

Indication functions

Indication functions are used to summarise and obtain the indication information

addIndication()
Get indication for a target cohort
indicationToStrata()
Create new variables summarising the data of indication that can be used as stratification columns
summariseIndication()
This function is used to summarise the indication table over multiple cohorts.

Add daily dose

Tools to compute the daily dose, see when it can be computed

addDailyDose()
add daily dose information to a drug_exposure table
addRoute()
add route column to a table containing drug_exposure information
dailyDoseCoverage()
Check coverage of daily dose computation in a sample of the cdm for selected concept sets and ingredient
patternTable()
Function to create a tibble with the patterns from current drug strength table
patternsWithFormula
Patterns valid to compute daily dose with the associated formula.
stratifyByUnit()
Function to stratify a conceptSet by unit

Drug use functions

Drug use functions are used to summarise and obtain the drug use information

addDrugUse()
Add new columns with drug use related information
summariseDrugUse()
This function is used to summarise the dose table over multiple cohorts.

Summarise treatments during certain windows

Summarise the use of different treatments during certain windows

summariseTreatmentFromCohort()
This function is used to summarise the dose table over multiple cohorts.
summariseTreatmentFromConceptSet()
This function is used to summarise the dose table over multiple cohorts.

Charcterise a cohort

Different functions to characterize cohort, these functions may be moved to more focused into characterization packages within DARWIN-EU framework

Complementary functions

Helpper functions, some of thay may be deprecated in the near future

mockDrugUtilisation()
It creates a mock database for testing drugutilisation package
readConceptList()
Get concept ids from a provided path to json files

Benchmarking function

Function to test performance of different functions in DrugUtilisation

benchmarkDUS()
Run benchmark of drug utilisation cohort generation