Creation of Mock Observational Medical Outcomes Partnership Common Data Model
Overview
Creates mock data for testing and package development for the Observational Medical Outcomes Partnership common data model. The package offers functions crafted with pipeline-friendly implementation, enabling users to effortlessly include only the necessary tables for their testing needs.
- Deprecated
mockConcepts()because it creates placeholder concept rows that may be mistaken for real OMOP vocabulary content. UsemockCdmReference(vocabularySet = "eunomia"),mockVocabularyTables(), orsubsetVocabularyTables()instead. changeCdmVersion()now usesomopgenerics::compareOmopTableFields()and aligns local OMOP tables to the target CDM version fields.mockCdmFromDataset()now validatescdmVersionand converts loaded datasets to the requested CDM version when needed.- Downloaded mock datasets within 99.99% of their expected size are now reused; users are only asked to delete a dataset when it appears incomplete.
- Mock dataset CDM names now resolve to a downloadable dataset version before download, avoiding invalid URL errors when a requested target CDM version is not directly hosted.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-30
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-20
Show 8 earlier changesHide 8 earlier changes
- ERROR11 OK, 2 ERROR2026-06-19
- 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-03-10
Documentation
- Help pages
- 25 (2 internal)includes a package overview page
- Examples that run
- 61%14 run in a plain check · 9 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 96%
- Documented parameters
- 98%
- Return-value docs
- 96%
- Help pages citing references
- 0%
- mock_from_tables HTML
- subset_concepts HTML
- synthetic_clinical_tables HTML
- synthetic_cohorts HTML
- synthetic_datasets HTML
- synthetic_vocabulary HTML
Downloads
Repository
- PRs merged (all time)
- 98%
- Median days to close, 50 most recently updated closed issues
- 41
- 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
13 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/ohdsi/omock on 2026-10-11.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2026-06-29 · The repository has a site deploy workflow
pkgdown site last built 2026-06-29
Show all practicesHide 3 practices
Dependencies
Installing omock adds 38 packages (19 with compiled code, 27 MB of source tarballs). Heaviest: stringi 11 MB, arrow 4.2 MB, vctrs 1.0 MB.
Show all 14 packagesHide all 14 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.7.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.6.22026-03-23 · diff ↗
- 0.6.12026-02-03 · diff ↗
- 0.6.02025-10-31 · diff ↗ ·
removed 5 exports
attrition, bind, cohortCount, dropTable, settingsadded 14 exports
achillesColumns, achillesTables, cdmDisconnect, cdmReference, cohortColumns, cohortTables, dropSourceTable, listSourceTables, omopColumns, omopDataFolder, omopTables, readSourceTable, tableName, tableSource - 0.5.0
- 0.4.02025-06-12 · diff ↗ ·
added 6 exports
availableMockDatasets, downloadMockDataset, isMockDatasetDownloaded, mockCdmFromDataset, mockDatasetsFolder, mockDatasetsStatus - RR 4.5.0 released · 2025-04-11
- 0.3.22025-01-23 · diff ↗
- 0.3.12024-10-15 · diff ↗
- 0.3.0
- 0.2.02024-05-20 · diff ↗ ·
removed 1 export
mockCdmFromTableadded 8 exports
mockCdmFromTables, mockConcepts, mockConditionOccurrence, mockDeath, mockDrugExposure, mockMeasurement, mockObservation, mockVocabularyTables - RR 4.4.0 released · 2024-04-24
- 0.1.02024-03-08
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2024-03-08
- Total releases
- 11 / 2 yrs
- License
- Apache License (>= 2)
- Minimum R
- ≥ 4.1.0
- Bundled data
- 1.3 KB / 1 file
- Download size
- 3.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("omock")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.08178.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.