Reads ICD-10 Edition 5 files and adds the lookup and relationship tables to
the active CodeMiner database. This is a convenience wrapper around
read_icd10_trud() that automatically calls add_lookup_table() and
add_relationship_table().
Usage
add_icd10_trud(
path = get_icd10_trud(),
version = NULL,
source = "https://isd.digital.nhs.uk/trud/"
)Arguments
- path
Path to the ICD-10 release (zip file or unzipped directory). Default uses
get_icd10_trud()to download the latest release.- 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
Invisibly returns the result from read_icd10_trud() (a named
list of tables with metadata).
Examples
if (FALSE) { # \dontrun{
build_database(db_path = "my_codes.db")
add_icd10_trud()
} # }