The CohortDefinition class, encapsulating the id, name and expression of a cohort definition.
This R6 class is intended to wrap the Cohort Defintion expression used to generate the cohort, and provide the id and name attribute for this cohort.
Note, when serializing with a library such as jsonlite, first call toList() on the R6 class before calling jsonlite::toJSON().
id
The cohort ID
name
The cohort name
expression
The cohort expression