Cohort Generation for the OMOP Common Data Model
Overview
Generate cohorts and subsets using an Observational Medical Outcomes Partnership (OMOP) Common Data Model (CDM) Database. Cohorts are defined using 'CIRCE' (https://github.com/ohdsi/circe-be) or SQL compatible with 'SqlRender' (https://github.com/OHDSI/SqlRender).
Bug Fixes
- Prevents duplicate cohort IDs bin
runCohortGeneration(#275) - Fix backwards compatiblity for v0.x cohort subset operator (#276)
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-18
- ERROR11 OK, 2 ERROR2026-10-09
- OK13 OK2026-09-30
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-22
Show 14 earlier changesHide 14 earlier changes
- ERROR12 OK, 1 ERROR2026-08-20
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-22
- ERROR12 OK, 1 ERROR2026-06-21
- OK13 OK2026-06-09
- 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
- OK14 OK2026-04-06
- ERROR13 OK, 1 ERROR2026-04-04
- OK14 OK2026-03-10
Documentation
- Help pages
- 69 (1 internal)includes a package overview page
- Examples that run
- 25%1 run in a plain check · 3 never run
- Exported functions with examples
- 6%
- Documented parameters
- 99%
- Return-value docs
- 41%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 95%
- Median days to close, 50 most recently updated closed issues
- 34
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/ohdsi/cohortgenerator on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows
GitHub Pages site last deployed 2026-07-10 · The repository has a site deploy workflow
pkgdown site last built 2026-07-10
Show all practicesHide 1 practice
Dependencies
Installing CohortGenerator adds 55 packages (32 with compiled code, 30 MB of source tarballs). Heaviest: stringi 11 MB, Rcpp 1.8 MB, ResultModelManager 1.5 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.1.1Latest
- RR 4.6.0 released · 2026-04-24
- 1.1.0
- 1.0.22026-02-10 · diff ↗
- 1.0.12025-11-17 · diff ↗
- 1.0.02025-11-12 · diff ↗ ·
removed 4 exports
getRequiredTasks, isTaskRequired, recordTasksDone, saveIncrementaladded 21 exports
CohortTemplateDefinition, addCohortTemplateDefintion, addExcludeOnIndexSubsetDefinition, addIndicationSubsetDefinition, addRestrictionSubsetDefinition, addSqlCohortDefinition, addUnionCohortDefinition, createAtcCohortTemplateDefinition, createCohortSubsetOperator, createCohortTemplateDefintion, createDemographicSubsetOperator, createLimitSubsetOperator, createRxNormCohortTemplateDefinition, createSnomedCohortTemplateDefinition, createUnionCohortTemplate, getCohortValidationCounts, getExcludeOnIndexSubsetDefinitionIds, getIndicationSubsetDefinitionIds, getLastGeneratedCohortChecksums, getRestrictionSubsetDefinitionIds, getTemplateDefinitions - 0.12.22025-09-11 · diff ↗
- 0.12.12025-09-05 · diff ↗
- 0.12.02025-07-31 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.11.22024-09-30 · diff ↗
- 0.11.12024-09-15
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-09-15
- Total releases
- 10 / 2 yrs
- License
- Apache License
- Minimum R
- ≥ 4.1.0
- Bundled data
- 0.7 KB / 2 files
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("CohortGenerator")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.