Skip to contents

For a given code, returns all descendant codes (children, grandchildren, etc.) by traversing the hierarchy downward.

Usage

get_descendants(code, system = "ICD9CM")

Arguments

code

A single character string specifying the starting code.

system

A single character string naming the code system, one of supported_inner(). Defaults to "ICD9CM".

Value

A character vector of all descendant codes, in no particular order.

Examples

if (FALSE) { # \dontrun{
get_descendants("A00", "ICD10CM")
} # }