Analyzes Real-World Treatment Patterns of a Study Population of Interest
Overview
Computes treatment patterns within a given cohort using the Observational Medical Outcomes Partnership (OMOP) common data model (CDM). As described in Markus, Verhamme, Kors, and Rijnbeek (2022) doi:10.1016/j.cmpb.2022.107081.
---------
- Fixes run-to-run stability of TreatmentPatterns.
- Fixes issue for andromeda >= 1.0.0
- Fixed issue where doubles casted to numeric were reported in scientific notation.
- Fixed issue when parallelizing multiple computePathways(), caused by database-side conflicts.
- Fixed issue where the same subject_id was assigned a different pseudo-subject_id when using multiple cohort tables.
- Fixed issue when multiple target cohorts and multiple cohort tables were specified.
- Added export of problematic records when combination check fails.
- Deprecated SQL implementation for fetching cohort information.
- Internal change to always use CDMConnector internally (either using ODBC or JDBC).
- Require CDMConnector >= 2.0.0.
- Gracefully exit when there is no internet connection when running internal helper functions for testing.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-29
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
Show 9 earlier changesHide 9 earlier changes
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-24
- ERROR12 OK, 1 ERROR2026-05-17
- OK13 OK2026-05-15
- ERROR12 OK, 1 ERROR2026-05-13
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-06
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-04
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 12 (1 internal)includes a package overview page
- Examples that run
- 56%5 run in a plain check (1 of them under a condition) · 4 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 90%
- Documented parameters
- 100%
- Return-value docs
- 90%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 34
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Releases over time
Issues over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/darwin-eu/treatmentpatterns on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-02-11 · The repository has a site deploy workflow
pkgdown site last built 2026-02-11
Show all practicesHide 2 practices
Dependencies
Installing TreatmentPatterns adds 48 packages (27 with compiled code, 35 MB of source tarballs). Heaviest: stringi 11 MB, duckdb 4.6 MB, CDMConnector 4.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 3.1.2Latest
- 3.1.12025-08-25 · diff ↗
- 3.1.0
- 3.0.32025-04-16 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 3.0.22025-04-04 · diff ↗
- 3.0.12025-03-10 · diff ↗ ·
removed 6 exports
CharacterizationPlots, InputHandler, SankeyDiagram, ShinyModule, SunburstPlot, launchResultsExploreradded 1 export
ggSunburst - 3.0.0
- 2.7.02024-11-27 · diff ↗ ·
removed 2 exports
createSankeyDiagram2, createSunburstPlot2added 1 export
plotEventDuration - unarchivedReturned to CRAN2024-09-02
- 2.6.92024-09-02 · diff ↗
- archivedRemoved from CRAN2024-09-01issues were not corrected in time
- 2.6.82024-08-29 · diff ↗
- 2.6.72024-05-24 · diff ↗
- RR 4.4.0 released · 2024-04-24
Show 11 earlier eventsHide 11 earlier events
- 2.6.62024-04-16 · diff ↗ ·
removed 2 exports
InteractivePlots, Moduleadded 3 exports
SankeyDiagram, ShinyModule, SunburstPlot - 2.6.52024-02-19 · diff ↗
- 2.6.42024-01-26 · diff ↗
- 2.6.3
- 2.6.2
- 2.6.12023-12-11 · diff ↗ ·
added 5 exports
CharacterizationPlots, InputHandler, InteractivePlots, Module, launchResultsExplorer - 2.6.0
- 2.5.22023-09-15 · diff ↗
- 2.5.12023-09-07 · diff ↗
- 2.5.02023-08-16
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-08-16
- Total releases
- 21 / 3 yrs
- License
- Apache License (>= 2)
- Minimum R
- ≥ 4.2
- Download size
- 3.7 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("TreatmentPatterns")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1016/j.cmpb.2022.107081.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.