parents: Ancestors and descendants of SNOMED CT concepts

View source: R/hierarchy.R

parentsR Documentation

Ancestors and descendants of SNOMED CT concepts

Description

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.

Usage

parents(conceptIds, include_self = FALSE, SNOMED = getSNOMED(), ...)

ancestors(conceptIds, include_self = FALSE, SNOMED = getSNOMED(), ...)

children(conceptIds, include_self = FALSE, SNOMED = getSNOMED(), ...)

descendants(conceptIds, include_self = FALSE, SNOMED = getSNOMED(), ...)

Arguments

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

...

other arguments to pass to relatedConcepts

Value

a bit64 vector of SNOMED CT concepts

Examples

SNOMED <- sampleSNOMED()

parents('Heart failure')
children('Heart failure')
ancestors('Heart failure')
descendants('Heart failure')

anoopshah/Rdiagnosislist documentation built on April 21, 2023, 11:49 p.m.