Non-decimal ICD-9 codes with length<5 are often ambiguous. E.g. 100 could be 1.00 10.0 or 100 if coded incorrectly. We must assume 100 is really 100
icd9_add_leading_zeroes_cpp(x, short_code)
Character vector of ICD-9 codes
single logical value which determines whether the ICD-9
code provided is in short (TRUE
) or decimal (FALSE
) form.
Where reasonable, this is guessed from the input data.
character vector of ICD-9 codes with leading zeroes