Learn R Programming

icd9 (version 0.2.1)

icd9ChildrenShort: expand 5 character form 'short' ICD9 to all possible sub codes

Description

this is so the raw info from SAS code provided by AHRQ can be interpreted without manually reformatting.

Usage

icd9ChildrenShort(icd9Short, invalidAction = c("ignore", "silent", "warn",
  "stop"))

icd9Children(icd9, short)

Arguments

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

short
single logical value which determines whether the ICD-9 code provided is in short (TRUE) or decimal (FALSE) form.
icd9
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"
short
single logical value which determines whether the ICD-9 code provided is in short (TRUE) or decimal (FALSE) form.

See Also

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

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