get_relationships: Get child/parent pairs in a data.frame for a specific code

View source: R/hierarchy.R

get_relationshipsR Documentation

Get child/parent pairs in a data.frame for a specific code

Description

Get child/parent pairs in a data.frame for a specific code

Usage

get_relationships(dict, code, children)

Arguments

dict

Clinical dictionary object

code

Clinical code to check

children

T/F flag to search child codes (T) or parent codes (F)

Value

data.frame of child/parent codes

Examples

## Not run: 
config_file<-paste0(system.file("clinconcept"),"/extdata/dictconfig.json")
dict<-cc_from_file("NHSReadV3",config_file)
h3_rels<-get_relationships(dict,"H31..",children=F)

## End(Not run)

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