get_parent_codes: Get parent codes from the supplied clinical dictionary

View source: R/hierarchy.R

get_parent_codesR Documentation

Get parent codes from the supplied clinical dictionary

Description

Get parent codes from the supplied clinical dictionary

Usage

get_parent_codes(dict, code, immediate_parents = F, active_only = T)

Arguments

dict

Clinical dictionary object

code

Clinical code to get parent codes for

immediate_parents

T/F flag to return only parents from only the level above (default FALSE)

active_only

T/F flag to return only active codes (default TRUE)

Examples

## Not run: 
config_file<-paste0(system.file("clinconcept"),"/extdata/dictconfig.json")
dict<-cc_from_file("NHSReadV3",config_file)
h3_parent_codes<-get_parent_codes(dict,"H3...",immediate_parents=F)


## End(Not run)

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