Learn R Programming

icd9 (version 0.2.1)

icd9ChildrenDecimal: generate all child codes for given decimal ICD9 codes

Description

take ICD9 codes in decimal form and lists of all possible sub-classification codes: e.g. 1.1 returns 1.11, 1.12, 1.13 etc. There are no codes like 1.10 which are distinct from 1.1, so this can be purely numeric Also, note that expanding "100.0" (100.00 to 100.09) is different from expanding "100.00" (no expansion) 0.1 == .3/3 is a problem... http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f

Usage

icd9ChildrenDecimal(icd9Decimal, invalidAction = c("ignore", "silent", "warn",
  "stop"))

Arguments

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"
invalidAction
character string (unit length) containing one of: "ignore", "silent", "warn", "stop"

- ignore no check for validity of ICD-9 code is made implicitly. This is the fastest option. If the function call is explicitly to check validity, e

Value

  • unsorted vector of ICD9 codes for all subsections of the provided code.

See Also

Other ICD-9 ranges: %i9d%, icd9ExpandRangeDecimal; %i9mj%; %i9s%, icd9ExpandRangeShort; icd9Children, icd9ChildrenShort; icd9CondenseShort; icd9CondenseToExplainShort; icd9ExpandMinor, icd9ExpandMinorE, icd9ExpandMinorNV; icd9PrecedingMinors, icd9SubsequentMinors

Examples

Run this code
#icd9ChildrenDecimal("100.1")
#icd9ChildrenDecimal("2.34")

Run the code above in your browser using DataLab