# is_leaf: Determine whether codes are billable leaf-nodes In icd: Comorbidity Calculations and Tools for ICD-9 and ICD-10 Codes

## Description

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

## Usage

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16``` ```is_leaf(x, short_code = guess_short(x), ...) ## S3 method for class 'icd9' is_leaf(x, short_code = guess_short(x), ...) ## S3 method for class 'icd10cm' is_leaf(x, short_code = guess_short(x), ...) ## S3 method for class 'icd10' is_leaf(x, short_code = guess_short(x), ...) ## S3 method for class 'icd9cm' is_leaf(x, short_code = guess_short(x), ...) ## Default S3 method: is_leaf(x, short_code = guess_short(x), ...) ```

## 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

## 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.

icd documentation built on July 2, 2020, 4:07 a.m.