R/Deprecated.R
getCohortDefinitionExpression.Rd
(Deprecated) Get a cohort definition expression
getCohortDefinitionExpression(cohortId, baseUrl)
An integer id representing the id that uniquely identifies a cohort definition in a WebApi instance.
The base URL for the WebApi instance, for example: "http://server.org:80/WebAPI".
A JSON list object representing the cohort definition This function has been deprecated. As an alternative please use the following steps as in the example below: 1) cohortDefinition <- getCohortDefinition(baseUrl = baseUrl, cohortId = 15873) 2) validJsonExpression <- RJSONIO::toJSON(cohortDefinition$expression) 3) save validJsonExpression object as .txt"
(Deprecated) Obtain the JSON expression from WebAPI for a given cohort id
if (FALSE) {
# This will obtain a cohort definition's JSON expression:
getCohortDefinitionExpression(cohortId = 282, baseUrl = "http://server.org:80/WebAPI")
}