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().
idan integer uniquely identifying this outcome definition
namethe name given to this outcome definition
cohortIdThe outcome cohort ID for this outcome.
cleanWindowThe clean window for this outcome.
excludeCohortIdThe cohort that will be used to exclude time at risk.