getConceptSetDefinitionBySourceKey: Fetch concept set definition from WebAPI by SourceKey

View source: R/getConceptSetDefinitionBySourceKey.R

getConceptSetDefinitionBySourceKeyR Documentation

Fetch concept set definition from WebAPI by SourceKey

Description

Fetch concept set definition from WebAPI by SourceKey

Usage

getConceptSetDefinitionBySourceKey(
  conceptSetId,
  baseUrl,
  vocabularySourceKey = NULL
)

Arguments

conceptSetId

the id of the concept set to retrieve.

baseUrl

The base URL for the WebApi instance, for example: "http://server.org:80/WebAPI".

vocabularySourceKey

The source key of the Vocabulary. By default, the priority Vocabulary is used.

Details

Fetches a concept set definition from WebAPI by SourceKey. If SourceKey is not specified, the priority vocabulary will be used.

Value

An R object representing the ConceptSet definition

Examples

## Not run: 
conceptSetDefinition <- getConceptSetDefinitionBySourceKey(conceptSetId = 282,
                                                baseUrl = "http://server.org:80/WebAPI",
                                                vocabularySourceKey = "MY_VOCAB")
conceptIds <- resolveConceptSet(conceptSetDefinition = conceptSetDefinition,
                                baseUrl = "http://server.org:80/WebAPI")

## End(Not run)


OHDSI/ROhdsiWebApi documentation built on March 15, 2023, 1:23 p.m.