writeConceptSet: Save a concept set as a json file

writeConceptSetR Documentation

Save a concept set as a json file

Description

The resulting concept Set JSON file can be imported into Atlas.

Usage

writeConceptSet(x, path, format = "auto", ...)

Arguments

x

A Capr concept set created by 'cs()'

path

Name of file to write to. (e.g. "concepts.json")

format

the file extension to write

...

additional arguments

Examples

anemia <- cs(descendants(439777,4013073,4013074), name = "anemia")
writeConceptSet(anemia, file.path(tempdir(), 'anemia.json'))
writeConceptSet(anemia, file.path(tempdir(), 'anemia.csv'))

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