Check if source key is valid.

isValidSourceKey(sourceKeys, baseUrl)

Arguments

sourceKeys

The source key(s) for a CDM instance in WebAPI, as defined in the Configuration page.

baseUrl

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

Value

A logical vector indicating if an ID is valid.

Details

Checks if a set of sourceKey(s) are valid, i.e. checks if all the sourceKey(s) exists in the WebApi i.e. valid.

Examples

if (FALSE) {
isValidSourceKey(sourceKeys = c("HCUP", "CCA"),
                 baseUrl = "http://server.org:80/WebAPI",
                 category = "cohort")
}