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

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'))