jackwasey / icd

Fast ICD-10 and ICD-9 comorbidities, decoding and validation in R. NB use main instead of master for default branch.
https://jackwasey.github.io/icd/
GNU General Public License v3.0
242 stars 60 forks source link

Why are some ICD 10 codes not defined? #169

Closed ablack3 closed 5 years ago

ablack3 commented 5 years ago

I am working with ICD 10 codes on death certificate data. Some of the cause of death codes on the death certificates are not defined according to the icd package. I'm just wondering if I am missing something.

For example is_defined(as.icd10("I21.9")) returns FALSE. It seems to me like "I21.9" should be a CMS defined code.

Thanks for this incredibly helpful package.

jackwasey commented 5 years ago

Thanks for the report. That code was added in 2018 https://www.icd10data.com/ICD10CM/Codes/Changes/New_Codes/2?year=2018 whereas the current data comes from 2016. I will work on adding the 2019 codes soon. For comorbidity calculations, this should have no effect.