View source: R/getDescendants.R
| getDescendants | R Documentation |
Get descendant codes for a given concept
getDescendants(cdm, conceptId, withAncestor = FALSE)
cdm |
A cdm reference to an OMOP CDM dataset. If data is held within a database, the vocabulary tables should be in the same schema as the clinical tables (person, observation period, and so on). |
conceptId |
concept_id to search |
withAncestor |
If TRUE, return column with ancestor. In case of multiple ancestors, concepts will be separated by ";". |
The descendants of a given concept id.
library(CodelistGenerator)
cdm <- mockVocabRef()
getDescendants(cdm = cdm, conceptId = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.