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
- Host: GitHub
- Owner: OHDSI
- License: apache-2.0
- Language: HTML
- Default Branch: main
- Homepage: https://ohdsi.github.io/omock/
- Size: 27.8 MB
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
[](https://github.com/OHDSI/omock/actions/workflows/R-CMD-check.yaml)
[](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
- Website: http://ohdsi.org
- Repositories: 285
- Profile: https://github.com/OHDSI
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
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Núria Mercadé-Besora
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Marta Alcalde-Herraiz
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Xihang Chen
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Yuchen Guo
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Kim López-Güell
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Health Data Sciences Group, Nuffield Department of Orthopaedics, Rheumatology and Musculoskeletal Sciences, University of Oxford, United Kingdom
Tags
Epidemiology OMOP CDM syntheticGitHub 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
Top Committers
| Name | 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
- Homepage: https://ohdsi.github.io/omock/
- Documentation: http://cran.r-project.org/web/packages/omock/omock.pdf
- License: Apache License (≥ 2)
-
Latest release: 0.5.0
published 6 months ago
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