Check if an id is valid.
isValidId(ids, baseUrl, category)
A list of integer id(s) of the category to be tested for validity.
The base URL for the WebApi instance, for example: "http://server.org:80/WebAPI".
These are the categories in WebApi. The valid string options are 'conceptSet', 'cohort', 'characterization', 'pathway, 'incidenceRate', 'estimation', 'prediction'.
A logical vector indicating if an ID is valid.
Checks if a set of id for a category is valid, i.e. checks if all the ids exists in the WebApi i.e. valid.
if (FALSE) {
isValidId(ids = c(13242, 3423, 34), baseUrl = "http://server.org:80/WebAPI", category = "cohort")
}