parents | R Documentation |
Returns concepts with 'Is a' or inverse 'Is a' relationship with a set of target concepts. Ancestors include parents and all higher relations. Descendants include children and all lower relations.
parents(
conceptIds,
include_self = FALSE,
SNOMED = getSNOMED(),
TRANSITIVE = NULL,
...
)
ancestors(
conceptIds,
include_self = FALSE,
SNOMED = getSNOMED(),
TRANSITIVE = NULL,
...
)
children(
conceptIds,
include_self = FALSE,
SNOMED = getSNOMED(),
TRANSITIVE = NULL,
...
)
descendants(
conceptIds,
include_self = FALSE,
SNOMED = getSNOMED(),
TRANSITIVE = NULL,
...
)
conceptIds |
character or integer64 vector of SNOMED concept IDs |
include_self |
whether to include the original concept(s) in the output, default = FALSE |
SNOMED |
environment containing a SNOMED dictionary |
TRANSITIVE |
transitive closure table for ancestors and descendants, containing is-a relationships. This table can be created by createTransitive to speed up the ancestor / descendant functions. If a TRANSITIVE table is provided, the SNOMED environment is not used and relatedConcepts is not called. TRANSITIVE should be a data.table with columns ancestorId and descendantId. |
... |
other arguments to pass to relatedConcepts |
a bit64 vector of SNOMED CT concepts
[createTransitive()] for creation of TRANSITIVE table, and [relatedConcepts()] for the underlying function to extract SNOMED CT relationships.
SNOMED <- sampleSNOMED()
parents('Heart failure')
children('Heart failure')
ancestors('Heart failure')
descendants('Heart failure')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.