Package: DrugUtilisation 0.7.1

Martí Català

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

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.

Authors:Martí Català [aut, cre], Mike Du [ctb], Yuchen Guo [aut], Kim Lopez-Guell [aut], Edward Burn [aut], Xintong Li [ctb], Marta Alcalde-Herraiz [ctb], Nuria Mercade-Besora [aut], Xihang Chen [aut]

DrugUtilisation_0.7.1.tar.gz
DrugUtilisation_0.7.1.zip(r-4.5)DrugUtilisation_0.7.1.zip(r-4.4)DrugUtilisation_0.7.1.zip(r-4.3)
DrugUtilisation_0.7.1.tgz(r-4.4-any)DrugUtilisation_0.7.1.tgz(r-4.3-any)
DrugUtilisation_0.7.1.tar.gz(r-4.5-noble)DrugUtilisation_0.7.1.tar.gz(r-4.4-noble)
DrugUtilisation_0.7.1.tgz(r-4.4-emscripten)DrugUtilisation_0.7.1.tgz(r-4.3-emscripten)
DrugUtilisation.pdf |DrugUtilisation.html
DrugUtilisation/json (API)
NEWS

# Install 'DrugUtilisation' in R:
install.packages('DrugUtilisation', repos = c('https://darwin-eu-dev.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/darwin-eu-dev/drugutilisation/issues

Datasets:

On CRAN:

53 exports 4 stars 2.99 score 51 dependencies 2 dependents 267 scripts 772 downloads

Last updated 8 days agofrom:08f7a3203c. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 10 2024
R-4.5-winOKSep 10 2024
R-4.5-linuxOKSep 10 2024
R-4.4-winOKSep 10 2024
R-4.4-macOKSep 10 2024
R-4.3-winOKSep 10 2024
R-4.3-macOKSep 10 2024

Exports:addCumulativeDoseaddCumulativeQuantityaddDailyDoseaddDrugUseaddDrugUtilisationaddExposedTimeaddIndicationaddInitialDailyDoseaddInitialQuantityaddNumberErasaddNumberExposuresaddRouteaddTimeToExposureattritionbenchmarkDrugUtilisationbindcohortCodelistcohortCountcohortGapEradailyDoseCoveragedefaultTableOptionsexportSummarisedResultgenerateAtcCohortSetgenerateDrugUtilisationCohortSetgenerateIngredientCohortSetmockDisconnectmockDrugUtilisationpatternTableplotDrugRestartplotIndicationplotProportionOfPatientsCoveredplotTreatmentreadConceptListrequireDrugInDateRangerequireIsFirstDrugEntryrequireObservationBeforeDrugrequirePriorDrugWashoutsettingsstratifyByUnitsummariseDoseCoveragesummariseDrugRestartsummariseDrugUsesummariseDrugUtilisationsummariseIndicationsummariseProportionOfPatientsCoveredsummariseTreatmentsuppresstableDoseCoveragetableDrugRestarttableDrugUtilisationtableIndicationtableProportionOfPatientsCoveredtableTreatment

Dependencies:backportsbitbit64blobCDMConnectorcheckmateclicliprclockCodelistGeneratorcpp11crayonDBIdbplyrdiffobjdplyrfansifsgenericsgluehmsjsonlitelifecyclelubridatemagrittromopgenericsPatientProfilespillarpkgconfigprettyunitsprogresspurrrR6readrrematch2RJSONIOrlangsnakecasestringistringrtibbletidyrtidyselecttimechangetzdbutf8vctrsvisOmopResultsvroomwaldowithr

Getting drug utilisation related information of subjects in a cohort

Rendered fromdrug_utilisation.Rmdusingknitr::rmarkdownon Sep 10 2024.

Last update: 2024-07-30
Started: 2024-07-17

Creating drug cohorts

Rendered fromcreate_cohorts.Rmdusingknitr::rmarkdownon Sep 10 2024.

Last update: 2024-07-30
Started: 2024-07-16

Readme and manuals

Help Manual

Help pageTopics
To add a new column with the cumulative dose. To add multiple columns use 'addDrugUtilisation()' for efficiency.addCumulativeDose
To add a new column with the cumulative quantity. To add multiple columns use 'addDrugUtilisation()' for efficiency.addCumulativeQuantity
add daily dose information to a drug_exposure tableaddDailyDose
Add new columns with drug use related informationaddDrugUse
Add new columns with drug use related informationaddDrugUtilisation
To add a new column with the exposed time. To add multiple columns use 'addDrugUtilisation()' for efficiency.addExposedTime
Add a variable indicating individuals indicationsaddIndication
To add a new column with the initial daily dose. To add multiple columns use 'addDrugUtilisation()' for efficiency.addInitialDailyDose
To add a new column with the initial quantity. To add multiple columns use 'addDrugUtilisation()' for efficiency.addInitialQuantity
To add a new column with the number of eras. To add multiple columns use 'addDrugUtilisation()' for efficiency.addNumberEras
To add a new column with the number of exposures. To add multiple columns use 'addDrugUtilisation()' for efficiency.addNumberExposures
add route column to a table containing drug_exposure informationaddRoute
To add a new column with the time to exposure. To add multiple columns use 'addDrugUtilisation()' for efficiency.addTimeToExposure
Run benchmark of drug utilisation cohort generationbenchmarkDrugUtilisation
Get the gapEra used to create a cohortcohortGapEra
Check coverage of daily dose computation in a sample of the cdm for selected concept sets and ingredientdailyDoseCoverage
Additional arguments for the table functions.defaultTableOptions
Generate a set of drug cohorts based on ATC classificationgenerateAtcCohortSet
Generate a set of drug cohorts based on given conceptsgenerateDrugUtilisationCohortSet
Generate a set of drug cohorts based on drug ingredientsgenerateIngredientCohortSet
It creates a mock database for testing DrugUtilisation packagemockDrugUtilisation
Patterns valid to compute daily dose with the associated formula.patternsWithFormula
Function to create a tibble with the patterns from current drug strength tablepatternTable
Generate a custom ggplot2 from a summarised_result object generated with summariseDrugRestart() function.plotDrugRestart
Generate a plot visualisation (ggplot2) from the output of summariseIndicationplotIndication
Plot proportion of patients coveredplotProportionOfPatientsCovered
Generate a custom ggplot2 from a summarised_result object generated with summariseTreatment function.plotTreatment
Get concept ids from a provided path to json filesreadConceptList
Restrict cohort to only cohort records within a certain date rangerequireDrugInDateRange
Restrict cohort to only the first cohort record per subjectrequireIsFirstDrugEntry
Restrict cohort to only cohort records with the given amount of prior observation time in the databaserequireObservationBeforeDrug
Restrict cohort to only cohort records with a given amount of time since the last cohort record endedrequirePriorDrugWashout
Function to stratify a conceptSet by unitstratifyByUnit
Check coverage of daily dose computation in a sample of the cdm for selected concept sets and ingredientsummariseDoseCoverage
Summarise the drug restart per window.summariseDrugRestart
This function is used to summarise the dose table over multiple cohorts.summariseDrugUse
This function is used to summarise the dose utilisation table over multiple cohorts.summariseDrugUtilisation
Summarise the indications of individuals in a drug cohortsummariseIndication
Summarise proportion Of patients coveredsummariseProportionOfPatientsCovered
This function is used to summarise treatments receivedsummariseTreatment
Format a dose_coverage object into a visual table.tableDoseCoverage
Format a drug_restart object into a visual table.tableDrugRestart
Format a drug_utilisation object into a visual table.tableDrugUtilisation
Create a table showing indication resultstableIndication
Create a table with proportion of patients covered resultstableProportionOfPatientsCovered
Format a summarised_treatment result into a visual table.tableTreatment