Reads the ICD-10 Edition 5 codes and descriptions from a local copy of the TRUD release files.
Arguments
- path
Path to the ICD-10 release. Can be:
A zip file (e.g., from
get_icd10_trud())An unzipped directory containing the
Contentsubdirectory
- version
Character string for the version label. If
NULL(default), derived from the zip file or directory name.- source
Character string for the data source URL or description.
Value
A named list with elements:
icd10_lkp: lookup table withtable(data.table) andmetadataicd10_relationship: parent-child hierarchy derived from code structure
The lookup table has columns including CODE, ALT_CODE (dot-stripped,
used as the primary code column), DESCRIPTION, and others from the source
file. DESCRIPTION is augmented with MODIFIER_4 or MODIFIER_5 where
present.
Examples
if (FALSE) { # \dontrun{
path <- get_icd10_trud()
result <- read_icd10_trud(path)
result$icd10_lkp$lookup$table
} # }