Learn R Programming

icd (version 3.3)

is_billable: Determine whether codes are billable leaf-nodes

Description

Codes provided are compared to the most recent edition of the CMS list of billable codes, or another edition if specified.

Usage

is_billable(x, short_code = guess_short(x), ...)

# S3 method for icd9 is_billable(x, short_code = guess_short(x), icd9cm_edition = icd9cm_latest_edition(), ...)

# S3 method for icd10cm is_billable(x, short_code = guess_short(x), icd10cm_edition = "2016", ...)

# S3 method for icd10 is_billable(x, short_code = guess_short(x), icd10cm_edition = "2016", ...)

# S3 method for icd9cm is_billable(x, short_code = guess_short(x), icd9cm_edition = icd9cm_latest_edition(), nomatch = 0L, ...)

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

icd_is_billable.default(...)

icd_is_billable.icd10(...)

icd_is_billable.icd10cm(...)

icd_is_billable.icd9(...)

icd_is_billable.icd9cm(...)

icd_is_billable(...)

Arguments

x

input vector to test

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.

...

arguments passed on to other functions

icd9cm_edition

single character string, default is "32" which is the latest release from CMS. Currently anything from "23" to "32" is accepted. Not numeric because there are possible cases with non-numeric names, e.g. revisions within one year, although none currently implemented.

icd10cm_edition

single character string. ICD-10-CM editions are currently just the year of release.

nomatch

integer value, passed to match default is 0.

icd10cm_edition

single character string. ICD-10-CM editions are currently just the year of release.

Value

logical vector of same length as input

Methods (by class)

  • icd9: Which of the given ICD-9 codes are leaf nodes in ICD-9-CM. Currently assumes ICD-9 codes are ICD-9-CM

  • icd10cm: Which of the given ICD-10 codes are leaf nodes in ICD-10-CM. Currently assumes ICD-10 codes are ICD-10-CM

  • icd10: Which of the given ICD-10 codes are leaf nodes in ICD-10-CM. Currently assumes ICD-10 codes are ICD-10-CM

  • icd9cm: Which of the given ICD-9 codes are leaf nodes in ICD-9-CM

  • default: Which of the given ICD codes are leaf nodes in ICD version (9 vs 10) guessed from the codes themselves.

Deprecated function names

Future versions of icd will drop the icd_ prefix. For example, charlson should be used in favor of icd_charlson. To distinguish icd function calls, consider using the prefix icd:: instead, e.g., icd::charlson. Functions which specifically operate on either ICD-9 or ICD-10 codes or their sub-types will retain the prefix. E.g. icd9_comorbid_ahrq. icd specific classes also retain the prefix, e.g., icd_wide_data.