Skip to contents

A helper function to add child concept ID(s) to a vector of parent concept ID(s).

Usage

add_children(parent_concepts, concept_ancestor_table)

Arguments

parent_concepts

The parent concept IDs(s) of interest which can be a single concept_id, or a vector of concept_id's.

concept_ancestor_table

The concept ancestor table.

Value

A list of supplied parent concepts, and their child concepts.

See also

Examples

if (FALSE) { # \dontrun{
add_children('f4fadfb7-f4d2-530f-b950-ca8cc854f70e', ds$concept_ancestor)

add_children('f4fadfb7-f4d2-530f-b950-ca8cc854f70e', ds$concept_ancestor) %>%
  get_concept_names(concept_ids = ., concept_table = ds$concept)
} # }