is_valid_icd10cm: Check if an ICD-10-CM code is in a valid format

Description Usage Arguments Value Examples

View source: R/is_valid_icd10cm.R

Description

is_valid_icd10cm checks to see if the ICD-10-CM code is valid and has between 3 and 8 characters, and starts with a letter and number.

Usage

1

Arguments

x

A string

Value

Boolean

Examples

1
2
3
is_valid_icd10cm("F320") # valid
is_valid_icd10cm("F32")  # valid
is_valid_icd10cm("296")  # invalid

vcastro/icd10us documentation built on Dec. 23, 2021, 3:02 p.m.