Learn R Programming

icd (version 2.2)

icd_is_major: Check whether a code is major

Description

Check whether a code is major

Usage

icd_is_major(x)

# S3 method for default icd_is_major(x)

# S3 method for icd10 icd_is_major(x)

# S3 method for icd10cm icd_is_major(x)

# S3 method for icd9 icd_is_major(x)

Arguments

icd

character vector of ICD codes.

Methods (by class)

  • default: Default method which guesses version

  • icd10: check whether a code is an ICD-10 major

  • icd10cm: check whether a code is an ICD-10-CM major. Currently uses stringr which uses stringi which should be quite fast, but does suffer from handling Unicode, locales, etc.

  • icd9: check whether a code is an ICD-9 major