isValidSourceKey: Check if source key is valid.

View source: R/WebApi.R

isValidSourceKeyR Documentation

Check if source key is valid.

Description

Check if source key is valid.

Usage

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".

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.

Value

A logical vector indicating if an ID is valid.

Examples

## Not run: 
isValidSourceKey(sourceKeys = c("HCUP", "CCA"),
                 baseUrl = "http://server.org:80/WebAPI",
                 category = "cohort")

## End(Not run)

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