For a given code, returns all ancestor codes by following the
parent_code pointers until the root.
Arguments
- code
A single
characterstring specifying the starting code.- system
A single
characterstring naming the code system, one ofsupported_inner(). Defaults to"ICD9CM".
Value
A character vector of ancestor codes, ordered from immediate parent up to the highest-level ancestor.