icd9GuessIsShort: guess whether short or long
Description
partly implemented. Goal is to guess whether codes are short or
decimal form, then to call icd9Explain with the condense argument.
Currently condense works, but not with the icd9 lookup table currently in
use. Not exporting this function until it works as intended. Of note,
validation is a bit different here, since we don't know the type until
after we guess. We could look for where both short and long are invalid,
and otherwise assume valid, even if the bulk are short. However, it may be
more useful to check validity after the guess.
Usage
icd9GuessIsShort(icd9)
Value
single logical value, TRUE
if input data are predominantly
short type. If there is some uncertainty, then return NA.