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.
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 usedicd9_chapters
and a fewtidyverse
scripts. (lines 141- 158).It is possible to extract the
major
,sub_chapter
andchapter
from the dataset usingicd::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 the3_digit
identifier range for each chapter. I'm keen to use the3_digit
identifier range instead of the full chapter name because it looks neater as a legend for the visualizations.