Learn R Programming

icd9 (version 0.2.1)

icd9Valid: check whether any ICD-9 code is syntactically valid

Description

check whether any ICD-9 code is syntactically valid

Usage

icd9Valid(icd9, short)

Arguments

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

icd9ValidDecimal and icd9ValidShort

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