
Get concept ids from JSON files containing concept sets
codesFromConceptSet.RdGet concept ids from JSON files containing concept sets
Usage
codesFromConceptSet(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 <- codesFromConceptSet(cdm = cdm,
                         path =  system.file(package = "CodelistGenerator",
                         "concepts_for_mock"))
x
#> 
#> ── 3 codelists ─────────────────────────────────────────────────────────────────
#> 
#> - arthritis_desc (3 codes)
#> - arthritis_no_desc (1 codes)
#> - arthritis_with_excluded (2 codes)
CDMConnector::cdmDisconnect(cdm)
# }