Open lai1737 opened 5 years ago
The icd
package does not detect which kind of ICD code (ICD-9 vs ICD-10) nor the format (decimal vs short.) Instead it allows you to get and set attributes on the icd object to mark the kind of ICD and the format. The as.* functions return the value of the "icd_short_diag"
attribute.
So, as.decimal_diag
sets the "icd_short_diag"
attribute to FALSE, and as.short_diag
sets the attribute to TRUE. In fact, the output does not depend on the ICD code that is passed in.
test_data.txt
When I used the
Which is the opposite of what things should be...