The CohortReference class, encapsulating the id, name and descritpion fields that refernces a cohort definition.
This class is used to reference a cohort definition by ID, while providing a way to substitute a name for this specific reference.
Note, when serializing with a library such as jsonlite, first call toList() on the R6 class before calling jsonlite::toJSON().
idthe cohort id being referenced
namethe name for the cohort to be used in this reference.
descriptionA description for this Cohort Reference.
new()creates a new instance, using the provided data param if provided.
CohortReference$new(data = list())