Skip to contents

Enumerate ICD 10 codes given a code range

Usage

expand_icd10_code_range(code_range)

Arguments

code_range

A character value or a vector of character values indicating a range of ICD 10 codes. See Details for syntax of code range/s.

Value

A vector of ICD 10 codes that are within the range of codes specified by code_range.

Examples

expand_icd10_code_range("A71.0-A71.9")
#>  [1] "A71.0" "A71.1" "A71.2" "A71.3" "A71.4" "A71.5" "A71.6" "A71.7" "A71.8"
#> [10] "A71.9"
expand_icd10_code_range("F50.1,F50.3-F50.9")
#> [1] "F50.1" "F50.3" "F50.4" "F50.5" "F50.6" "F50.7" "F50.8" "F50.9"