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
.
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)
x | Any object which may have ICD-related classes set |
---|
# A character string is not itself an ICD code is.icd9("100.1")#> [1] FALSEis_valid("100.1")#> [1] TRUE#> [1] TRUE