R/metadata.R
import_icd.Rd
The World Health Organisation's (WHO) International Statistical Classification of Diseases and Related Health Problems Tenth Revision is available under restrictive licence terms.
The UK edition of ICD-10 is available from the NHS TRUD website https://isd.digital.nhs.uk/trud3/user/guest/group/0/pack/28 at no cost to UK users subject to a licence agreement.
The US edition of ICD-10-CM is available from https://www.cdc.gov/nchs/icd/icd10cm.htm
import_icd(archive, version)
path to the ZIP archive containing an ICD-10 release (5th Edition is recommended)
a character string labelling the edition (e.g. "GB 5th Edition")
A data frame ready for importing into the database with the following variables:
character vector of ICD-10 codes without punctuation.
May include "X"
placeholder characters depending on the edition.
character vector of ICD-10 codes with a dot after the first character, for display in user interfaces.
charactor vector of ICD-10 code descriptions
character vector of three-character ICD-10 codes
charactor vector three-character ICD-10 code descriptions
edition label provided in parameter version
...
any other variables present in the archive
source
if (FALSE) {
import_icd("icd_df_10.5.0_20151102000001.zip", "GB 5th Edition")
}