writeCohort: Write Cohort json file

View source: R/cohort.R

writeCohortR Documentation

Write Cohort json file

Description

Write Cohort json file

Usage

writeCohort(x, path)

Arguments

x

A Capr cohort

path

The name of the file to create

Value

Invisibly returns the path to the json file that was written

Examples

## Not run: 
cs1 <- cs(descendants(exclude(436665),440383,442306,4175329), name = "concepts")
# optional step to fill in concept set details. Requires database connection.
con <- {A CDM datbase connection}
cs1 <- getConceptSetDetails(cs1, con)

x <- cohort(conditionOccurrence(cs1))
writeCohort(x, "cohortDefinition.json")

## End(Not run)

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