Learn R Programming

icd9 (version 0.5)

icd9SubsequentMinors: determine preceding or subsequent post-decimal parts of ICD9 codes

Description

this is not simply numeric, since "4" is after "39" and "0" != "00". Frustrating to have to do so much string manipulation, but, as I have learned, it is not possible to treat ICD-9 codes as numbers without risking ambiguity and subtle mistakes.

Usage

icd9SubsequentMinors(minor, isE)

icd9PrecedingMinors(minor, isE)

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

See Also

Other ICD-9 ranges: %i9d%, icd9ExpandRangeDecimal; %i9mj%, icd9ExpandRangeMajor; %i9s%, icd9ExpandRangeShort; icd9ChildrenDecimal; icd9Children, icd9ChildrenShort; icd9CondenseToExplain; icd9CondenseToMajor; icd9ExpandMinor, icd9ExpandMinorE, icd9ExpandMinorNV