updateCohortDefinition: Update a Cohort definition.

View source: R/AutoGeneratedDefinitions.R

updateCohortDefinitionR Documentation

Update a Cohort definition.

Description

Update a Cohort definition.

Usage

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

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

## End(Not run)

OHDSI/ROhdsiWebApi documentation built on March 15, 2023, 1:23 p.m.