Skip to contents

For a given code, returns all ancestor codes by following the parent_code pointers until the root.

Usage

get_ancestors(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 ancestor codes, ordered from immediate parent up to the highest-level ancestor.

Examples

if (FALSE) { # \dontrun{
get_ancestors("401.9", "ICD9CM")
} # }