R6 class providing access to hierarchy operations (ancestors and descendants).
Ancestors with hierarchy summary.
Descendants with hierarchy summary.
new()Create a new HierarchyResource.
HierarchyResource$new(base_req)base_reqBase httr2 request object.
ancestors()Get concept ancestors.
HierarchyResource$ancestors(
concept_id,
vocabulary_id = NULL,
max_levels = NULL,
relationship_types = NULL,
include_paths = FALSE,
include_distance = TRUE,
standard_only = FALSE,
include_deprecated = FALSE,
page = 1,
page_size = 100
)concept_idThe concept ID.
vocabulary_idFilter to specific vocabulary.
max_levelsMaximum hierarchy levels to traverse.
relationship_typesRelationship types to follow (default: "Is a").
include_pathsInclude path information. Default FALSE.
include_distanceInclude distance from source. Default TRUE.
standard_onlyOnly return standard concepts. Default FALSE.
include_deprecatedInclude deprecated concepts. Default FALSE.
pagePage number. Default 1.
page_sizeResults per page. Default 100.
descendants()Get concept descendants.
HierarchyResource$descendants(
concept_id,
vocabulary_id = NULL,
max_levels = 10,
relationship_types = NULL,
include_distance = TRUE,
standard_only = FALSE,
include_deprecated = FALSE,
domain_ids = NULL,
concept_class_ids = NULL,
include_synonyms = FALSE,
page = 1,
page_size = 100
)concept_idThe concept ID.
vocabulary_idFilter to specific vocabulary.
max_levelsMaximum hierarchy levels (default 10, max 10).
relationship_typesRelationship types to follow.
include_distanceInclude distance from source. Default TRUE.
standard_onlyOnly return standard concepts. Default FALSE.
include_deprecatedInclude deprecated concepts. Default FALSE.
domain_idsFilter by domains.
concept_class_idsFilter by concept classes.
include_synonymsInclude synonyms. Default FALSE.
pagePage number. Default 1.
page_sizeResults per page. Default 100.
clone()The objects of this class are cloneable with this method.
HierarchyResource$clone(deep = FALSE)deepWhether to make a deep clone.