Compile a Capr cohort to json

Compile a Capr Concept Set to json

# S4 method for Cohort
compile(object, ..., includeConceptSets = NULL)

# S4 method for ConceptSet
compile(object, ...)

Arguments

object

A Capr Concept Set created with `cs`

...

Arguments passed on to jsonlite::toJSON. e.g. `pretty = TRUE` for nicely formatted json.

includeConceptSets

Optional list of ConceptSet objects to include in the JSON even if not referenced in the cohort (e.g. for round-trip equivalence).

Value

The json representation of Capr cohorts

The json representation of Capr cohorts

Details

Deprecated; use toCohortJson instead.