is_code_present: Determine if a code is present in the supplied clinical...

View source: R/dict.R

is_code_presentR Documentation

Determine if a code is present in the supplied clinical dictionary

Description

Determine if a code is present in the supplied clinical dictionary

Usage

is_code_present(dict, code)

Arguments

dict

Clinical dictionary object

code

Clinical code to check

Value

TRUE if present, FALSE if not

Examples

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

## End(Not run)

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