get_relation_codes: Internal recursive function used to get all relation codes...

View source: R/hierarchy.R

get_relation_codesR Documentation

Internal recursive function used to get all relation codes from the database (called explicitly by get_child_codes)

Description

Internal recursive function used to get all relation codes from the database (called explicitly by get_child_codes)

Usage

get_relation_codes(src, rel_code, immediate_relations = F, children = T,
  tbl_name, code_field, parent_code_field, code_data_obj)

Arguments

src

dplyr src object

rel_code

Code to obtain relations for

immediate_relations

indicates if only one level (e.g. just immediate children) should be returned

children

indicates if children should be returned

tbl_name

name of parent/child table to use

code_field

name of child code field in table

parent_code_field

name of parent code field in table

code_data_obj

a 'code_data' object instance which contains previously stored relations

Value

Character vector containing relation codes (this excludes the code provided to the function)


rcfgroup/clinconcept documentation built on Nov. 12, 2022, 2:40 a.m.