Learn R Programming

icd (version 3.3)

get_invalid: Get invalid ICD codes

Description

Returns subset of codes which are not in valid short_code or decimal format.

Usage

get_invalid(...)

# S3 method for default get_invalid(x, short_code = guess_short(x), ...)

# S3 method for icd9 get_invalid(x, short_code = guess_short(x), ...)

# S3 method for icd10 get_invalid(x, short_code = guess_short(x), ...)

# S3 method for comorbidity_map get_invalid(x, short_code = guess_short(x), ...)

icd_get_invalid.comorbidity_map(...)

icd_get_invalid.icd9(...)

icd_get_invalid.icd_comorbidity_map(...)

icd_get_valid.icd9(...)

Arguments

x

vector of ICD codes, or list of vectors of ICD codes forming a comorbidity map

Methods (by class)

  • default: Default method when ICD version or short versus decimal not known.

  • icd9: Get invalid ICD-9 codes from vector of codes

  • icd10: Get invalid ICD-10 codes from vector of codes

  • comorbidity_map: Get invalid elements of a comorbidity map

Deprecated function names

Future versions of icd will drop the icd_ prefix. For example, charlson should be used in favor of icd_charlson. To distinguish icd function calls, consider using the prefix icd:: instead, e.g., icd::charlson. Functions which specifically operate on either ICD-9 or ICD-10 codes or their sub-types will retain the prefix. E.g. icd9_comorbid_ahrq. icd specific classes also retain the prefix, e.g., icd_wide_data.