Learn R Programming

icd9 (version 0.2.1)

icd9ValidMajor: validate a major part

Description

validation for just the 'major' part of an ICD-9 code. This can in fact be provided as a numeric, since there is no ambiguity. Numeric-only codes should be one to three digitis, V codes are followed by one or two digits, and E codes always by three digits between 800 and 999.

Usage

icd9ValidMajor(major)

Arguments

major
character vector of 'major' part of ICD-9 codes, i.e. that part which falls before the decimal point, in decimal notation. (In 5 digit notation, the 'major' part is be the first three characters (with leading zeroes), and includes V or E prefix. xyz

See Also

Other ICD9 validation: icd9GetInvalidMappingDecimal, icd9GetInvalidMappingShort, icd9ValidMapping, icd9ValidMappingDecimal, icd9ValidMappingShort; icd9ValidDecimal, icd9ValidDecimalE, icd9ValidDecimalE, icd9ValidDecimalN, icd9ValidDecimalN, icd9ValidDecimalV, icd9ValidDecimalV; icd9ValidNaWarnStop, icd9ValidNaWarnStopDecimal, icd9ValidNaWarnStopShort; icd9ValidShort, icd9ValidShortE, icd9ValidShortE, icd9ValidShortN, icd9ValidShortN, icd9ValidShortV, icd9ValidShortV; icd9Valid; stopIfInvalidIcd9, warnIfInvalidIcd9