Update a Cohort definition.

updateCohortDefinition(cohortDefinition, baseUrl)

Arguments

cohortDefinition

An R list object containing the expression for the specification. Must include id, name and expression. This will be converted to JSON expression by function and posted into the WebApi. The definition will be checked against the WebApi instance for errors

baseUrl

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

Details

Update a Cohort definition.

Examples

if (FALSE) {
definition <- getCohortDefinition(id = 13242,
                                  baseUrl = "http://server.org:80/WebAPI",
                                  category = cohort)
definition$name <- "My new name for this"
updateCohort(cohortDefinition, baseUrl, category = "cohort")
}