Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in JOSS metadata
  • Academic publication links
  • Committers with academic emails
    1 of 5 committers (20.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software
Last synced: 6 months ago · JSON representation

Repository

Basic Info
Statistics
  • Stars: 2
  • Watchers: 6
  • Forks: 1
  • Open Issues: 2
  • Releases: 8
Created about 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# omock 


[![R-CMD-check](https://github.com/OHDSI/omock/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/OHDSI/omock/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/OHDSI/omock/branch/main/graph/badge.svg)](https://app.codecov.io/gh/OHDSI/omock?branch=main)



The primary objective of the omock package is to generate mock OMOP CDM (Observational Medical Outcomes Partnership Common Data Model) data to facilitating the testing of various packages within the OMOPverse ecosystem.


## Introduction

You can install the development version of omock using:

``` r
# install.packages("devtools")
devtools::install_github("OHDSI/omock")
```

## Example

With omock we can quickly make a simple mock of OMOP CDM data.

```{r, warning=FALSE, message=FALSE}
library(omopgenerics)
library(omock)
library(dplyr)
```

We first start by making an empty cdm reference. This includes the person and observation tables (as they are required) but they are currently empty.
```{r}
cdm <- emptyCdmReference(cdmName = "mock")
cdm$person %>%
  glimpse()
cdm$observation_period %>%
  glimpse()
```

Once we have have our empty cdm reference, we can quickly add a person table with a specific number of individuals.
```{r}
cdm <- cdm %>%
  omock::mockPerson(nPerson = 1000)

cdm$person %>%
  glimpse()
```

We can then fill in the observation period table for these individuals.
```{r}
cdm <- cdm %>%
  omock::mockObservationPeriod()

cdm$observation_period %>%
  glimpse()
```

Owner

  • Name: Observational Health Data Sciences and Informatics
  • Login: OHDSI
  • Kind: organization

JOSS Publication

omock: A R package for Mock Data Generation for the Observational Medical Outcomes Partnership Common Data Model
Published
September 12, 2025
Volume 10, Issue 113, Page 8178
Authors
Mike Du ORCID
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Núria Mercadé-Besora ORCID
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Marta Alcalde-Herraiz ORCID
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Xihang Chen ORCID
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Yuchen Guo ORCID
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Kim López-Güell ORCID
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Edward Burn ORCID
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Martí Català ORCID
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Editor
Julia Romanowska ORCID
Tags
Epidemiology OMOP CDM synthetic

GitHub Events

Total
  • Create event: 18
  • Release event: 3
  • Issues event: 32
  • Delete event: 1
  • Issue comment event: 10
  • Push event: 70
  • Pull request review comment event: 4
  • Pull request review event: 5
  • Pull request event: 30
Last Year
  • Create event: 18
  • Release event: 3
  • Issues event: 32
  • Delete event: 1
  • Issue comment event: 10
  • Push event: 70
  • Pull request review comment event: 4
  • Pull request review event: 5
  • Pull request event: 30

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 178
  • Total Committers: 5
  • Avg Commits per committer: 35.6
  • Development Distribution Score (DDS): 0.607
Past Year
  • Commits: 87
  • Committers: 2
  • Avg Commits per committer: 43.5
  • Development Distribution Score (DDS): 0.241
Top Committers
Name Email Commits
ilovemane 5****e 70
ilovemane m****u@w****k 63
catalamarti m****e@g****m 31
nmercadeb n****7@g****m 8
edward-burn 9****n 6
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 46
  • Total pull requests: 57
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 6 days
  • Total issue authors: 7
  • Total pull request authors: 4
  • Average comments per issue: 0.7
  • Average comments per pull request: 0.02
  • Merged pull requests: 50
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 15
  • Pull requests: 31
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 11 days
  • Issue authors: 5
  • Pull request authors: 2
  • Average comments per issue: 0.33
  • Average comments per pull request: 0.0
  • Merged pull requests: 24
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • catalamarti (18)
  • ilovemane (16)
  • nmercadeb (3)
  • edward-burn (3)
  • mvankessel-EMC (2)
  • martaalcalde (2)
  • chitrams (1)
Pull Request Authors
  • ilovemane (59)
  • catalamarti (15)
  • edward-burn (4)
  • nmercadeb (2)
Top Labels
Issue Labels
needs discussion (4) enhancement (3)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 7,734 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
cran.r-project.org: omock

Creation of Mock Observational Medical Outcomes Partnership Common Data Model

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 7,734 Last month
Rankings
Dependent packages count: 28.1%
Dependent repos count: 36.1%
Average: 49.7%
Downloads: 84.9%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 2.10 depends
  • cli * imports
  • dplyr * imports
  • lubridate * imports
  • methods * imports
  • omopgenerics >= 0.0.1 imports
  • purrr * imports
  • rlang * imports
  • snakecase * imports
  • stats * imports
  • stringr * imports
  • testthat >= 3.0.0 suggests