getSourceKeyConfiguration: Get configuration information for source keys.

Description Usage Arguments Details Value Examples

Description

Get configuration information for source keys.

Usage

1
getSourceKeyConfiguration(baseUrl, sourceKeys)

Arguments

baseUrl

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

sourceKeys

A list of string names for the source keys as in configuration page of Atlas.

Details

Source keys are commonly used as aliases to identify a data source. A data source is uniquely identified a combination of sourceName and/or CDM name. sourceName/CDM name may also have version information. WebApi calls rely on sourceKey for query. But relying on aliases is not reliable, as the underlying data source may change. This function, will give the configuration information for data sources given source keys. It may be used to unambigously identify the data source in a study.

Value

A list of two objects called native and parsed. Native is the json specification, and parsed is the simplified version returned as a data.frame object. The data.frame object may be used for creating reports.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
#

getSourceKeyConfiguration(baseUrl = "http://server.org:80/WebAPI",
                                     sourceKeys = c('source1', 'source2')
                                   )$parsed
would return a data.frame with items like sourceId, sourceName, sourceDialect,
sourceKey, priority, CDM, CEM.

## End(Not run)

gowthamrao/StudyManagement documentation built on March 9, 2020, 10:48 p.m.