Learn R Programming

icd (version 4.0.9)

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), ...)

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