Learn R Programming

icd (version 3.3)

icd10cm_extract_sub_chapters: Get sub-chapters from the 2016 XML for ICD-10-CM

Description

This is not quite a super-set of ICD-10 sub-chapters: many more codes than ICD-10, but some are abbreviated, notably HIV.

Usage

icd10cm_extract_sub_chapters(save_data = FALSE, offline = TRUE)

Arguments

save_data

single logical value, if TRUE will save the generated data

Details

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.