Post a definition into WebApi
postDefinition(baseUrl, name, category, definition)
The base URL for the WebApi instance, for example: "http://server.org:80/WebAPI".
A valid name for the definition. WebApi will use this name (if valid) as the name of the definition. WebApi checks for validity, such as uniqueness, absence of unacceptable character etc. An error might be thrown.
These are the categories in WebApi. The valid string options are 'conceptSet', 'cohort', 'characterization', 'pathway, 'incidenceRate', 'estimation', 'prediction'.
An R list object containing the expression for the specification. This will be converted to JSON expression by function and posted into the WebApi. Note: only limited checks are performed in R to check the validity of this expression.
This function will return a dataframe object with one row describing the posted WebApi expression and its details. If unsuccessful a STOP message will be shown.
Post a definition into WebAPI. Currently only cohort and concept-set are supported.
if (FALSE) {
definition <- getCohortDefinition(baseUrl = baseUrl, cohortId = 15873)
postDefinition(name = "new name for expression in sdaddaddd",
baseUrl = "http://server.org:80/WebAPI",
expression = definition,
category = "cohort")
}