Update definition
updateDefinition(definition, baseUrl, category)
An R list object containing the expression for the specification. This will be converted to JSON expression by function and posted into the WebApi.
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'.
Update a definition in WebAPI. Currently only cohorts are supported. Takes the definition as a parameter and converts it to json. This is the full definition (i.e. including name and id fields)
if (FALSE) {
definition <- getDefinition(
id = 13242,
baseUrl = "http://server.org:80/WebAPI",
category = "cohort"
)
definition$name <- "My new name for this"
updateDefinition(definition, baseUrl, category = "cohort")
}