Package: DrugExposureDiagnostics 1.1.9

Ger Inberg

DrugExposureDiagnostics: Diagnostics for OMOP Common Data Model Drug Records

Ingredient specific diagnostics for drug exposure records in the Observational Medical Outcomes Partnership (OMOP) common data model.

Authors:Ger Inberg [aut, cre], Edward Burn [aut], Theresa Burkard [aut], Yuchen Guo [ctb], Marti Catala [ctb], Mike Du [ctb], Xintong Li [ctb], Ross Williams [ctb], Erasmus MC [cph]

DrugExposureDiagnostics_1.1.9.tar.gz
DrugExposureDiagnostics_1.1.9.zip(r-4.7)DrugExposureDiagnostics_1.1.9.zip(r-4.6)DrugExposureDiagnostics_1.1.9.zip(r-4.5)
DrugExposureDiagnostics_1.1.9.tgz(r-4.6-any)DrugExposureDiagnostics_1.1.9.tgz(r-4.5-any)
DrugExposureDiagnostics_1.1.9.tar.gz(r-4.7-any)DrugExposureDiagnostics_1.1.9.tar.gz(r-4.6-any)
DrugExposureDiagnostics_1.1.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
DrugExposureDiagnostics/json (API)

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

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

Pkgdown/docs site:https://darwin-eu.github.io

On CRAN:

Conda:

6.81 score 4 stars 54 scripts 896 downloads 8 exports 49 dependencies

Last updated from:e386f3bb21. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK318
source / vignettesOK259
linux-release-x86_64OK304
macos-release-arm64OK155
macos-oldrel-arm64OK196
windows-develOK278
windows-releaseOK253
windows-oldrelOK264
wasm-releaseOK185

Exports:%>%dataPlotPanelexecuteChecksmetaDataPanelmockDrugExposurerunBenchmarkExecuteSingleIngredientviewResultswriteResultToDisk

Dependencies:askpassbackportsbitbit64blobCDMConnectorcheckmateclicliprclockCodelistGeneratorcpp11crayoncurlDBIdbplyrdplyrDrugUtilisationgenericsgluehmshttr2jsonlitelifecyclemagrittromopgenericsopensslPatientProfilespillarpkgconfigprettyunitsprogresspurrrR6rappdirsreadrrlangsnakecasestringistringrsystibbletidyrtidyselecttzdbutf8vctrsvroomwithr

Introduction To DrugExposureDiagnostics
Drug(s) of interest | Running the diagnostics | Assessing the drug concepts (of interest) | Saving the diagnostic output | View results in the Shiny app & make it available for publishing

Last update: 2026-06-19
Started: 2024-01-15

Days Supply
Run the days supply check | Days supply Overall | Days supply by drug concept

Last update: 2025-02-03
Started: 2024-06-12

Diagnostics Summary
Obtain a diagnostics summary

Last update: 2025-02-03
Started: 2024-06-12

Drug Dose
Run the Drug Dose check | Drug dose

Last update: 2025-02-03
Started: 2024-06-12

DrugDuration
Run duration check | Drug exposure duration Overall | Drug exposure duration by drug concept

Last update: 2025-02-03
Started: 2024-06-12

Drug Sig
Run the Sig checks | Sig | Sig by concept

Last update: 2025-02-03
Started: 2024-06-12

Drug Source Concepts
Run checks | Drug Source by Concept

Last update: 2025-02-03
Started: 2024-06-12

Drug Types
Run the drug type check | Drug Type Overall | Drug Type by drug concept

Last update: 2025-02-03
Started: 2024-06-12

Missingness
Run missingness check | Overall missingness | Missingness by drug concept

Last update: 2025-02-03
Started: 2024-06-12

Quantity
Run the quantity check | Quantity Overall | Quantity by concept

Last update: 2025-02-03
Started: 2024-06-12

Routes
Run the route check | Route Overall | Route by drug concept

Last update: 2025-02-03
Started: 2024-06-12

Verbatim End Date
Run the Verbatim End Date check | Drug verbatim end date Overall | Drug verbatim end date by concept

Last update: 2025-02-03
Started: 2024-06-12

Readme and manuals

Help Manual

Help pageTopics
Check if Days_supply is the same as datediff(drug_exp_start_date,drug_exp_end_date)checkDaysSupply
Check the database type.checkDbType
Get a summary of the daily drug dosecheckDrugDose
Check the drug sig field; this is the verbatim instruction for the drug as written by the provider.checkDrugSig
Check ingredient is present in given tablecheckIngredientInTable
Check is an ingredientcheckIsIngredient
Check if given object is a boolean.checkLogical
Check that the sample is bigger than the mincellcountcheckSampleMinCellCount
Check if given table exists in cdm.checkTableExists
Check the verbatim_end_date fieldcheckVerbatimEndDate
Store the given input in a remote database table. It will be stored either in a permanent table or a temporary table depending on tablePrefix.computeDBQuery
dataPlotPaneldataPlotPanel
Execute given checks on Drug Exposure.executeChecks
Execute given checks on Drug Exposure for a single ingredient.executeChecksSingleIngredient
Get all options that can be passed to the "checks" parametergetAllCheckOptions
Check missings in drug exposure recordsgetDrugMissings
Drug exposure records for ingredients of interestgetDrugRecords
Get drug exposure route typesgetDrugRoutes
Check drug exposure source typesgetDrugSourceConcepts
Get drug exposure record typesgetDrugTypes
Compute the difference in days between 2 variables in a database table.getDuration
Get the descendants for the given ingredientsingredientDescendantsInDb
Determine change in memory from running codemem_change
How much memory is currently used by R?mem_used
metaDataPanelmetaDataPanel
Mock Drug exposure tables for ingredients of interestmockDrugExposure
Obscure the small number of countsobscureCounts
Print duration from start to now and print it as well as new status messageprintDurationAndMessage
Run benchmark for ExecuteSingleIngredientrunBenchmarkExecuteSingleIngredient
DrugExposureDiagnostics ShinyAppShinyApp
Module Decorator ClassShinyModule
Create a summary about the diagnostics resultssummariseChecks
Summarise drug exposure record durationssummariseDrugExposureDuration
Summarise the quantity column of the drug_exposure tablesummariseQuantity
Check time in between drug records per person and report the summarysummariseTimeBetween
Validate the "checks" parametervalidateChecks
View the results in the Shiny appviewResults
Write a result to a file on disk.writeFile
Write (ingredient) diagnostics results on disk in given output folder.writeIngredientResultToDisk
Write diagnostics results to a zip file on disk in given output folder.writeResultToDisk
Write (ingredient) diagnostics results on disk in given output folder.writeZipToDisk