(Deprecated) Get a cohort definition expression

getCohortDefinitionExpression(cohortId, baseUrl)

Arguments

cohortId

An integer id representing the id that uniquely identifies a cohort definition in a WebApi instance.

baseUrl

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

Value

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"

Details

(Deprecated) Obtain the JSON expression from WebAPI for a given cohort id

Examples

if (FALSE) {
# This will obtain a cohort definition's JSON expression:

getCohortDefinitionExpression(cohortId = 282, baseUrl = "http://server.org:80/WebAPI")
}