Skip to contents

Mock CDM Initialization

This group includes functions that initialize the foundational structures required for the mock CDM environment.

mockCdmReference()
Creates an empty CDM (Common Data Model) reference for a mock database.
mockCdmFromTables()
Generates a mock CDM (Common Data Model) object based on existing CDM structures and additional tables.
mockCdmFromDataset()
Create a local cdm_reference from a dataset.

Mock Datasets

This group of functions are utility functions to work with the mock datasets.

mockDatasets
Available mock OMOP CDM Synthetic Datasets
downloadMockDataset()
Download an OMOP Synthetic dataset.
availableMockDatasets()
List the available datasets
isMockDatasetDownloaded()
Check if a certain dataset is downloaded.
mockDatasetsStatus()
Check the availability of the OMOP CDM datasets.
mockDatasetsFolder()
Check or set the datasets Folder

Mock Table Creation

These functions are focused on adding mock data tables based on the initialized CDM structure.

mockPerson()
Generates a mock person table and integrates it into an existing CDM object.
mockObservationPeriod()
Generates a mock observation period table and integrates it into an existing CDM object.
mockConditionOccurrence()
Generates a mock condition occurrence table and integrates it into an existing CDM object.
mockDrugExposure()
Generates a mock drug exposure table and integrates it into an existing CDM object.
mockMeasurement()
Generates a mock measurement table and integrates it into an existing CDM object.
mockObservation()
Generates a mock observation table and integrates it into an existing CDM object.
mockProcedureOccurrence()
Generates a mock procedure occurrence table and integrates it into an existing CDM object.
mockDeath()
Generates a mock death table and integrates it into an existing CDM object.
mockVisitOccurrence()
Function to generate visit occurrence table

Vocabulary Tables Creation

This group includes functions that set up vocabulary tables.

mockVocabularyTables()
Creates a mock CDM database populated with various vocabulary tables.
mockConcepts()
Adds mock concept data to a concept table within a Common Data Model (CDM) object.
mockVocabularySet()
Creates an empty mock CDM database populated with various vocabulary tables set.

Cohort Tables Creation

These functions are focused on adding mock cohort tables based on the initialized CDM structure.

mockCohort()
Generate Synthetic Cohort