getInvalidDecimalIcd9: invalid subset of decimal or short ICD-9 codes
Description
given vector of short or decimal ICD-9 codes in
icd9Decimal or icd9Short, return (in the same format) those
codes which are invalid. Useful for generating error messages with the
faulty codes if validation fails.
Usage
getInvalidDecimalIcd9(icd9Decimal)
getInvalidShortIcd9(icd9Short)
Arguments
icd9Decimal
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"
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"