DrugUtilisation1.0.5 package

Summarise Patient-Level Drug Utilisation in Data Mapped to the OMOP Common Data Model

addTreatment

Add a variable indicating individuals medications

benchmarkDrugUtilisation

Run benchmark of drug utilisation cohort generation

cdmDoc

Helper for consistent documentation of cdm.

censorDateDoc

Helper for consistent documentation of censorDate.

cohortDoc

Helper for consistent documentation of cohort.

cohortGapEra

Get the gapEra used to create a cohort

cohortIdDoc

Helper for consistent documentation of cohortId.

compNameDoc

Helper for consistent documentation of name for computed tables.

conceptSetDoc

Helper for consistent documentation of conceptSet.

daysPrescribedDoc

Helper for consistent documentation of daysPrescribed.

DrugUtilisation-package

DrugUtilisation: Summarise Patient-Level Drug Utilisation in Data Mapp...

requireIsFirstDrugEntry

Restrict cohort to only the first cohort record per subject

addCumulativeDose

To add a new column with the cumulative dose. To add multiple columns ...

addCumulativeQuantity

To add a new column with the cumulative quantity. To add multiple colu...

addDaysExposed

To add a new column with the days exposed. To add multiple columns use...

addDaysPrescribed

To add a new column with the days prescribed. To add multiple columns ...

addDrugRestart

Add drug restart information as a column per follow-up period of inter...

addDrugUtilisation

Add new columns with drug use related information

addIndication

Add a variable indicating individuals indications

addInitialDailyDose

To add a new column with the initial daily dose. To add multiple colum...

addInitialExposureDuration

To add a new column with the duration of the first exposure. To add mu...

addInitialQuantity

To add a new column with the initial quantity. To add multiple columns...

addNumberEras

To add a new column with the number of eras. To add multiple columns u...

addNumberExposures

To add a new column with the number of exposures. To add multiple colu...

addTimeToExposure

To add a new column with the time to exposure. To add multiple columns...

drugUtilisationDoc

Helper for consistent documentation of add/`summariseDrugUtilisation...

erafyCohort

Erafy a cohort_table collapsing records separated gapEra days or less.

gapEraDoc

Helper for consistent documentation of gapEra.

generateAtcCohortSet

Generate a set of drug cohorts based on ATC classification

generateDrugUtilisationCohortSet

Generate a set of drug cohorts based on given concepts

requireDrugInDateRange

Restrict cohort to only cohort records within a certain date range

generateIngredientCohortSet

Generate a set of drug cohorts based on drug ingredients

indexDateDoc

Helper for consistent documentation of indexDate.

ingredientConceptIdDoc

Helper for consistent documentation of ingredientConceptId.

mockDrugUtilisation

It creates a mock database for testing DrugUtilisation package

nameStyleDoc

Helper for consistent documentation of nameStyle.

newNameDoc

Helper for consistent documentation of name for new cohorts.

numberExposuresDoc

Helper for consistent documentation of numberExposures.

patternTable

Function to create a tibble with the patterns from current drug streng...

plotDoc

Helper for consistent documentation of plot.

plotTreatment

Generate a custom ggplot2 from a summarised_result object generated wi...

plotDrugRestart

Generate a custom ggplot2 from a summarised_result object generated wi...

plotDrugUtilisation

Plot the results of summariseDrugUtilisation

plotIndication

Generate a plot visualisation (ggplot2) from the output of summariseIn...

plotProportionOfPatientsCovered

Plot proportion of patients covered

reexports

Objects exported from other packages

requireObservationBeforeDrug

Restrict cohort to only cohort records with the given amount of prior ...

requirePriorDrugWashout

Restrict cohort to only cohort records with a given amount of time sin...

restrictIncidentDoc

Helper for consistent documentation of restrictIncident.

resultDoc

Helper for consistent documentation of result.

strataDoc

Helper for consistent documentation of strata.

summariseDoseCoverage

Check coverage of daily dose computation in a sample of the cdm for se...

summariseDrugRestart

Summarise the drug restart for each follow-up period of interest.

summariseDrugUtilisation

This function is used to summarise the dose utilisation table over mul...

summariseIndication

Summarise the indications of individuals in a drug cohort

summariseProportionOfPatientsCovered

Summarise proportion Of patients covered

summariseTreatment

This function is used to summarise treatments received

tableDoc

Helper for consistent documentation of table.

tableDoseCoverage

Format a dose_coverage object into a visual table.

tableDrugRestart

Format a drug_restart object into a visual table.

tableDrugUtilisation

Format a drug_utilisation object into a visual table.

tableIndication

Create a table showing indication results

tableProportionOfPatientsCovered

Create a table with proportion of patients covered results

tableTreatment

Format a summarised_treatment result into a visual table.

Summarise patient-level drug utilisation cohorts using data mapped to the Observational Medical Outcomes Partnership (OMOP) common data model. New users and prevalent users cohorts can be generated and their characteristics, indication and drug use summarised.

  • Maintainer: MartĂ­ CatalĂ 
  • License: Apache License (>= 2)
  • Last published: 2025-11-19