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().
id
the cohort id being referenced
name
the name for the cohort to be used in this reference.
description
A description for this Cohort Reference.
new()
creates a new instance, using the provided data param if provided.
CohortReference$new(data = list())