This is not quite a super-set of ICD-10 sub-chapters: many more codes than ICD-10, but some are abbreviated, notably HIV.
icd10cm_extract_sub_chapters(save_data = FALSE, offline = TRUE)
single logical value, if TRUE
will save the generated
data
This is complicated by the XML document specifying more hierarchical
levels,e.g. C00-C96
, C00-75
are both specified within the
chapter Neoplasms (C00-D49
). A way of determining whether there are
extra levels would be to check the XML tree depth for a member of each
putative sub-chapter.