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)
icnarc_code | as a character vector |
---|
a logical vector
Leading zeros in each level are not necessary. Acceptable separators are: .,|/-
verify_icnarc("01.06.04.20.16") # correctly formatted#> [1] TRUEverify_icnarc("1.6.4.20.16") # not strictly correct, but parsable#> [1] TRUEverify_icnarc("01-6-04.20.16") # annoying, but parsable#> [1] TRUE