This does the hard work of finding whether a given icd9 code
falls under a group of reference ICD9 codes. icd9Reference is expanded to cover
all possible subgroups, then we look for matches where the given ICD9 codes
appear in the icd9Reference.
http://www.acep.org/Clinical---Practice-Management/V-and-E-Codes-FAQ/
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.
validate
logical whether to validate the input ICD-9 codes for
correctness. There may be additional simple checks, e.g. whether the code
is of the right type, regardless of this argument.
shortReference
logical, see argument short
Value
logical vector of which icd9 match or are subcategory of
icd9Referenec