Learn R Programming

icd (version 4.0.9)

get_leaf: Get billable ICD codes

Description

Get billable ICD codes, implicitly, this refers to an ICD implementation which is specialized for a country, typically for billing, e.g. ICD-9-CM in the USA.

Usage

get_leaf(...)

# S3 method for default get_leaf(x, short_code = guess_short(x), ...)

# S3 method for icd9cm get_leaf(x, short_code = guess_short(x), invert = FALSE, ...)

# S3 method for icd9 get_leaf(...)

Arguments

...

arguments passed on to other functions

x

input vector of ICD codes

short_code

single logical value which determines whether the ICD-9 code provided is in short (TRUE) or decimal (FALSE) form. Where reasonable, this is guessed from the input data.

invert

Single logical value. Returns the inverse of the result. E.g. if seeking valid ICD-9 codes, the invalid ones are returned.

Methods (by class)

  • default: Get billable ICD codes, guessing whether ICD-9 or ICD-10, and code short vs decimal type.

  • icd9cm: Get billable ICD-9-CM codes

  • icd9: Get billable ICD-9 codes, which is currently implemented assuming ICD-9-CM