Learn R Programming

CodelistGenerator (version 3.5.0)

codesFromConceptSet: Get concept ids from JSON files containing concept sets

Description

Get concept ids from JSON files containing concept sets

Usage

codesFromConceptSet(path, cdm, type = c("codelist"))

Value

Named list with concept_ids for each concept set.

Arguments

path

Path to a file or folder containing JSONs of concept sets.

cdm

A cdm reference via CDMConnector.

type

Can be "codelist", "codelist_with_details" or "concept_set_expression".

Examples

Run this code
# \donttest{
cdm <- mockVocabRef("database")
x <- codesFromConceptSet(cdm = cdm,
                         path =  system.file(package = "CodelistGenerator",
                         "concepts_for_mock"))
x
CDMConnector::cdmDisconnect(cdm)
# }

Run the code above in your browser using DataLab