Skip to contents

Navigates upward through polyhierarchies in concept_ancestor to find broader concept classes.

Usage

get_concept_ancestors(
  con,
  descendant_concept_ids,
  include_self = TRUE,
  min_levels_of_separation = 0,
  max_levels_of_separation = NULL
)

Arguments

con

Active DuckDB DBI connection.

descendant_concept_ids

Integer vector of descendant concept IDs.

include_self

Logical. If TRUE (default), includes 0-level self mappings.

min_levels_of_separation

Integer. Minimum hierarchy separation level (default 0).

max_levels_of_separation

Integer or NULL. Maximum hierarchy separation level.

Value

A data.frame containing ancestor concept details.