NEWS
omock 0.7.0.9000
omock 0.7.0 (2026-06-19)
New features
- Added
subsetVocabularyTables() to subset vocabulary tables to selected
concept IDs while keeping related vocabulary tables consistent.
- Added
conceptSet, includeRelated, and keepDomains arguments to
mockCdmReference(), mockVocabularySet(), and mockVocabularyTables().
- Added a new vignette showing how to subset vocabulary concepts.
mockMeasurement() now creates more realistic mock measurements by filling
value_as_number, unit_concept_id, and value_as_concept_id.
mockCohort() now creates an omopgenerics-style cohort attrition table with
an initial qualifying events row.
CDM version handling
changeCdmVersion() now uses omopgenerics::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 validates cdmVersion and 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 generates
round(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. Use
mockCdmReference(vocabularySet = "eunomia"), mockVocabularyTables(), or
subsetVocabularyTables() instead.
Maintenance
- The minimum required version of
omopgenerics is now 1.4.0.
omock 0.6.2 (2026-03-23)
omock 0.6.1 (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.
Bug Fixes
- Removed unused input validation and table-checking functions to simplify the codebase.
- Fixed the placement of rows_to_keep calculation in mockCohort to ensure correct behaviour.
omock 0.6.0 (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
omopgenerics for improved usability #198
- Added warning messages in
mockCohort() for clearer user feedback #197
- Added
visit_detail mock table support #224
- Added function to change CDM version from 5.3 to 5.4 #221
Updates and Maintenance
- Updated citation and badge information #195
- Updated
drugStrength from RDS source #194
- General updates and internal refinements #207
- Replaced deprecated
lubridate usage with clock for date-time handling #222
Bug Fixes
- Fixed handling of concepts not in OMOP tables #199
- Fixed vocabulary set retrieval issues #209
- Fixed concept type ID handling #208
- Fixed download truncation issues #212
- Fixed other minor bugs #192 #200
omock 0.5.0 (2025-09-01)
omock 0.4.0 (2025-06-12)
omock 0.3.2 (2025-01-23)
omock 0.3.1 (2024-10-15)
omock 0.3.0 (2024-09-20)
omock 0.2.0 (2024-05-20)
omock 0.1.0 (2024-03-08)