codesFromConceptSet: Get concept ids from a provided path to json files

View source: R/codesFromConceptSet.R

codesFromConceptSetR Documentation

Get concept ids from a provided path to json files

Description

Get concept ids from a provided path to json files

Usage

codesFromConceptSet(path, cdm, withConceptDetails = FALSE)

Arguments

path

Path to a file or folder containing JSONs of concept sets

cdm

A cdm reference created with CDMConnector

withConceptDetails

If FALSE a vector of concept IDs will be returned for each concept set. If TRUE a tibble will be returned with additional information on the identified concepts.

Value

Named list with concept_ids for each concept set

Examples

## Not run: 
cdm <- mockVocabRef("database")
x <- codesFromConceptSet(cdm = cdm,
                         path =  system.file(package = "CodelistGenerator",
                         "concepts_for_mock"))
x
CDMConnector::cdmDisconnect(cdm)

## End(Not run)

oxford-pharmacoepi/CodelistGenerator documentation built on April 12, 2024, 9:30 a.m.