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().
idThe cohort ID
nameThe cohort name
expressionThe cohort expression