Learn R Programming

icd9 (version 0.2.1)

icd9ValidShort: validate ICD-9 short form code

Description

As in icd9ValidDecimal, character type of the input is enforced. An integer 100 could correspond to decimal ICD-9 codes 1.00 10.0 or 100.

Usage

icd9ValidShort(icd9Short)

icd9ValidShortV(icd9Short)

icd9ValidShortE(icd9Short)

icd9ValidShortN(icd9Short)

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"

Value

  • logical vector with T or F for each icd9 code provided according to validity

See Also

http://www.stata.com/users/wgould/icd9/icd9.hlp http://www.sascommunity.org/wiki/Validate_the_format_of_ICD-9_codes

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