Create mock CDM reference with survival::mgus2 dataset
Examples
# \donttest{
cdm <- mockMGUS2cdm()
#> Creating a new cdm
#> Uploading table person (1384 rows) - [1/7]
#> Uploading table observation_period (1384 rows) - [2/7]
#> Uploading table visit_occurrence (1 rows) - [3/7]
#> Uploading table death_cohort (963 rows) - [4/7]
#> Uploading table mgus_diagnosis (1384 rows) - [5/7]
#> Uploading table progression (115 rows) - [6/7]
#> Uploading table progression_type (230 rows) - [7/7]
cdm$person
#> # Source: table<person> [?? x 7]
#> # Database: DuckDB 1.5.2 [unknown@Linux 6.17.0-1010-azure:R 4.6.0/:memory:]
#> person_id gender_concept_id year_of_birth month_of_birth day_of_birth
#> <int> <int> <int> <int> <int>
#> 1 1 8532 1980 10 5
#> 2 2 8532 1967 10 15
#> 3 3 8507 1979 9 29
#> 4 4 8507 1976 10 25
#> 5 5 8532 1972 10 3
#> 6 6 8507 1989 10 3
#> 7 7 8532 1973 10 4
#> 8 8 8532 1973 10 6
#> 9 9 8532 1993 10 7
#> 10 10 8532 1980 10 14
#> # ℹ more rows
#> # ℹ 2 more variables: race_concept_id <int>, ethnicity_concept_id <int>
# }
