icd9IsBillable: Determine whether codes are billable leaf-nodes

Description Usage Arguments Value Functions

View source: R/real.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20

Arguments

icd9

is a character vector or factor of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010".

isShort

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.

version

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.

icd9Short

is a character vector of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010"

icd9Decimal

character vector of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010"

invert

single logical value, if TRUE, then the non-billable codes are returned. For functions with logical result, just negate with !. Default is FALSE.

Value

logical vector of same length as input

Functions


icd9 documentation built on May 30, 2017, 2:25 a.m.