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
240 stars 60 forks source link

Possible collaborate based on notast blog #178

Open notast opened 5 years ago

notast commented 5 years ago

Hi Jack

I'm Benjamin and I'm the user behind notast. Instead of manually mapping the 3_digit identifier range for each chapter as I have done so on the blog, I have used I used icd9_chapters and a few tidyverse scripts. (lines 141- 158).

It is possible to extract the major, sub_chapter and chapter from the dataset using icd::chapters_to_map. However, there are two disadvantages. [1] This technique may be longer than what I have done. In the blog, I simply merge the ICD-9 data with my dataset to extract all of the above. [2] It does not provide me with the 3_digit identifier range for each chapter. I'm keen to use the 3_digit identifier range instead of the full chapter name because it looks neater as a legend for the visualizations.

jackwasey commented 5 years ago

Thanks so much for this. Much appreciated. I have a lot on my plate right now - not forgotten.