writeCohort | R Documentation |
Write Cohort json file
writeCohort(x, path)
x |
A Capr cohort |
path |
The name of the file to create |
Invisibly returns the path to the json file that was written
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.