omock 0.7.0
CRAN release: 2026-06-19
New features
- Added
subsetVocabularyTables()to subset vocabulary tables to selected concept IDs while keeping related vocabulary tables consistent. - Added
conceptSet,includeRelated, andkeepDomainsarguments tomockCdmReference(),mockVocabularySet(), andmockVocabularyTables(). - Added a new vignette showing how to subset vocabulary concepts.
-
mockMeasurement()now creates more realistic mock measurements by fillingvalue_as_number,unit_concept_id, andvalue_as_concept_id. -
mockCohort()now creates an omopgenerics-style cohort attrition table with an initial qualifying events row.
CDM version handling
-
changeCdmVersion()now usesomopgenerics::compareOmopTableFields()to identify added, removed, and renamed fields between OMOP CDM versions. -
changeCdmVersion()now aligns local OMOP tables to the target CDM version, including removal of fields that do not exist in the target version. -
mockCdmFromDataset()now validatescdmVersionand converts loaded datasets to the requested CDM version when needed. - 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.
Improvements and fixes
-
mockCdmFromTables()now gives a more informative error when input tables contain missing dates in columns used to derive observation periods. -
mockObservationPeriod()now returns an empty observation period with an informative message when the person table is empty. -
mockConditionOccurrence()now generatesround(recordPerson * nrow(person))records in total and samples condition concepts across those records. - 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.
- Improved the prompt shown when a downloaded dataset appears incomplete.
- Updated documentation with shared roxygen templates and clearer parameter descriptions.
Deprecations
- Deprecated
mockConcepts()because it creates placeholder concept rows that may be mistaken for real OMOP vocabulary content. UsemockCdmReference(vocabularySet = "eunomia"),mockVocabularyTables(), orsubsetVocabularyTables()instead.
omock 0.6.1
CRAN release: 2026-02-03
New Features and Improvements
- Improved dataset downloads with retry logic and timeout handling for more reliable fetching.
- Updated mock dataset URLs to a new storage location and improved join logic.
- Enhanced mock CDM examples, including clearer error handling and more robust behaviour.
- Added an internal GI Bleed dataset, along with the associated loading logic, for expanded example coverage.
omock 0.6.0
CRAN release: 2025-10-31
New Features and Improvements
- Added new vignettes and updated to omopgenerics 1.3.1 #184
- Introduced support for
mockCdmFromTables()#196 - Added re-exported functions from
omopgenericsfor improved usability #198 - Added warning messages in
mockCohort()for clearer user feedback #197 - Added
visit_detailmock table support #224 - Added function to change CDM version from 5.3 to 5.4 #221
omock 0.4.0
CRAN release: 2025-06-12
- Add contributing guidlines by @ilovemane in #152
- Speed up start and end dates by @catalamarti in #150
- Speed up mockObservationPeriod.R by @ilovemane in #153
- Add mock datasets by @catalamarti in #154
- Speed up mockCohort.R by @ilovemane in #156
- Test mock datasets creation by @catalamarti in #155
