The Outcome class, encapsulating the id, name, outcome cohortId, exclusion cohortId, and clean window.
This class is used to specify an outcome definition. The outcome id is distinct from the outcome cohort ID in that you can define multiple outcomes that use the same outcome cohort with different clean windows or exclusion cohort.
Note, when serializing with a library such as jsonlite, first call toList() on the R6 class before calling jsonlite::toJSON().
id
an integer uniquely identifying this outcome definition
name
the name given to this outcome definition
cohortId
The outcome cohort ID for this outcome.
cleanWindow
The clean window for this outcome.
excludeCohortId
The cohort that will be used to exclude time at risk.