icd (version 4.0.6)

is.icd9: Test presence of ICD classes

Description

This merely checks whether the given object is a certain type of ICD code, it does no validation of any kind. For validation, see is_valid.

Usage

is.icd9(x)

is.icd9cm(x)

is.icd9cm_pc(x)

is.icd9who(x)

is.icd10(x)

is.icd10cm(x)

is.icd10cm_pc(x)

is.icd10who(x)

is.icd10fr(x)

is.icd10be(x)

is.comorbidity_map(x)

Arguments

x

Any object which may have ICD-related classes set

Examples

Run this code
# NOT RUN {
# A character string is not itself an ICD code
is.icd9("100.1")
is_valid("100.1")
is.icd9(as.icd9cm("100.1"))
# }

Run the code above in your browser using DataCamp Workspace