compile-methods: Compile a Capr cohort to json

compile,Cohort-methodR Documentation

Compile a Capr cohort to json

Description

Compile a Capr cohort to json

Compile a Capr Concept Set to json

Usage

## S4 method for signature 'Cohort'
compile(object, ...)

## S4 method for signature '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.

Value

The json representation of Capr cohorts

The json representation of Capr cohorts

Examples

ch <- cohort(conditionOccurrence(cs(1,2, name = "concepts")))
compile(ch)

OHDSI/Capr documentation built on Feb. 20, 2025, 4 a.m.