
Get concept ids from JSON files containing cohort definitions
codesFromCohort.Rd
Get concept ids from JSON files containing cohort definitions
Usage
codesFromCohort(path, cdm, type = c("codelist"))
Examples
# \donttest{
cdm <- mockVocabRef("database")
#> Warning: There are observation period end dates after the current date: 2025-04-11
#> ℹ The latest max observation period end date found is 2025-12-31
#> Warning: There are observation period end dates after the current date: 2025-04-11
#> ℹ The latest max observation period end date found is 2025-12-31
x <- codesFromCohort(cdm = cdm,
path = system.file(package = "CodelistGenerator",
"cohorts_for_mock"))
x
#>
#> ── 3 codelists ─────────────────────────────────────────────────────────────────
#>
#> - OA no descendants (1 codes)
#> - Other (1 codes)
#> - arthritis (3 codes)
CDMConnector::cdmDisconnect(cdm)
# }