Learn R Programming

icd9 (version 0.2.1)

icd9ExpandMinor: expand decimal part of ICD-9 code to cover all possible sub-codes

Description

Accepts a single number or character input starting point for generation of all possible decimal parts of ICD9 code. e.g. giving an empty input will fill out 111 combinations, e..g .1 .11 .12 .... .2 .... #examples #icd9ExpandMinor() # return all possible decimal parts of ICD9 codes icd9ExpandMinor(1) # "1" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" icd9ExpandMinor("1") # same

Usage

icd9ExpandMinor(minor = "", invalidAction = c("ignore", "silent", "warn",
  "stop"))

icd9ExpandMinorNV(minor = "")

icd9ExpandMinorE(minor = "")

Arguments

minor
character vector of 'minor' part of ICD-9 codes, i.e. that part which falls after the decimal point, in decimal notation. (In 5 digit notation, the 'major' part is be xyz, even when x and y are zero, thus the last two characters represent the 'minor' part

Value

  • NA for invalid minor, otherwise a vector of all possible (perhaps non-existent) sub-divisions.

See Also

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