Package: omock 0.6.2.9000

Mike Du

omock: Creation of Mock Observational Medical Outcomes Partnership Common Data Model

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.

Authors:Mike Du [aut, cre], Martí Català [aut], Edward Burn [aut], Nuria Mercade-Besora [aut], Xihang Chen [aut]

omock_0.6.2.9000.tar.gz
omock_0.6.2.9000.zip(r-4.7)omock_0.6.2.9000.zip(r-4.6)omock_0.6.2.9000.zip(r-4.5)
omock_0.6.2.9000.tgz(r-4.6-any)omock_0.6.2.9000.tgz(r-4.5-any)
omock_0.6.2.9000.tar.gz(r-4.7-any)omock_0.6.2.9000.tar.gz(r-4.6-any)
omock_0.6.2.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
omock/json (API)
NEWS

# Install 'omock' in R:
install.packages('omock', repos = c('https://ohdsi.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ohdsi/omock/issues

Pkgdown/docs site:https://ohdsi.github.io

Datasets:

On CRAN:

Conda:

8.37 score 4 stars 384 scripts 796 downloads 41 exports 38 dependencies

Last updated from:213e3c84f2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK232
source / vignettesOK224
linux-release-x86_64OK306
macos-release-arm64OK153
macos-oldrel-arm64OK188
windows-develOK225
windows-releaseOK205
windows-oldrelOK217
wasm-releaseOK146

Exports:achillesColumnsachillesTablesavailableMockDatasetscdmDisconnectcdmNamecdmReferencecdmSourcecdmVersioncohortColumnscohortTablesdownloadMockDatasetdropSourceTableemptyCdmReferenceinsertTableisMockDatasetDownloadedlistSourceTablesmockCdmFromDatasetmockCdmFromTablesmockCdmReferencemockCohortmockConceptsmockConditionOccurrencemockDatasetsFoldermockDatasetsStatusmockDeathmockDrugExposuremockMeasurementmockObservationmockObservationPeriodmockPersonmockProcedureOccurrencemockVisitOccurrencemockVocabularySetmockVocabularyTablesomopColumnsomopDataFolderomopTablesreadSourceTablesubsetVocabularyTablestableNametableSource

Dependencies:arrowassertthatbitbit64blobclicliprclockcpp11crayonDBIdbplyrdplyrgenericsgluehmslifecyclemagrittromopgenericspillarpkgconfigprettyunitsprogresspurrrR6readrrlangsnakecasestringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwithr

Building a mock from data

Rendered frommock_from_tables.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2025-10-31
Started: 2025-10-15

Subsetting concepts

Rendered fromsubset_concepts.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-04-14
Started: 2026-04-14

Creating mock clinical tables

Rendered fromsynthetic_clinical_tables.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-03-06
Started: 2025-10-15

Creating mock cohorts

Rendered fromsynthetic_cohorts.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-03-06
Started: 2025-10-15

Synthetic datasets

Rendered fromsynthetic_datasets.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-03-06
Started: 2025-10-15

Creating mock vocabulary tables

Rendered fromsynthetic_vocabulary.Rmdusingknitr::rmarkdownon May 29 2026.

Last update: 2026-03-06
Started: 2025-10-15

Readme and manuals

Help Manual

Help pageTopics
List the available datasetsavailableMockDatasets
Download an OMOP Synthetic dataset.downloadMockDataset
Check if a certain dataset is downloaded.isMockDatasetDownloaded
Create a 'local' cdm_reference from a dataset.mockCdmFromDataset
Generates a mock CDM (Common Data Model) object based on existing CDM structures and additional tables.mockCdmFromTables
Creates an empty CDM (Common Data Model) reference for a mock database.mockCdmReference
Generate Synthetic CohortmockCohort
Adds mock concept data to a concept table within a Common Data Model (CDM) object.mockConcepts
Generates a mock condition occurrence table and integrates it into an existing CDM object.mockConditionOccurrence
Available mock OMOP CDM Synthetic DatasetsmockDatasets
DeprecatedmockDatasetsFolder
Check the availability of the OMOP CDM datasets.mockDatasetsStatus
Generates a mock death table and integrates it into an existing CDM object.mockDeath
Generates a mock drug exposure table and integrates it into an existing CDM object.mockDrugExposure
Generates a mock measurement table and integrates it into an existing CDM object.mockMeasurement
Generates a mock observation table and integrates it into an existing CDM object.mockObservation
Generates a mock observation period table and integrates it into an existing CDM object.mockObservationPeriod
Generates a mock person table and integrates it into an existing CDM object.mockPerson
Generates a mock procedure occurrence table and integrates it into an existing CDM object.mockProcedureOccurrence
Function to generate visit occurrence tablemockVisitOccurrence
Creates an empty mock CDM database populated with various vocabulary tables set.mockVocabularySet
Creates a mock CDM database populated with various vocabulary tables.mockVocabularyTables
Subset vocabulary tables in a CDMsubsetVocabularyTables