Varifies that a code conforms to the ICNARC Diagnostic code specification. This is a 5 level hierarchial code that follows a pattern such as ##.##.##.##.##.

verify_icnarc(icnarc_code = NULL)

Arguments

icnarc_code

as a character vector

Value

a logical vector

Details

Leading zeros in each level are not necessary. Acceptable separators are: .,|/-

Examples

verify_icnarc("01.06.04.20.16") # correctly formatted
#> [1] TRUE
verify_icnarc("1.6.4.20.16") # not strictly correct, but parsable
#> [1] TRUE
verify_icnarc("01-6-04.20.16") # annoying, but parsable
#> [1] TRUE