verify_icnarc: Varify ICNARC Diagnostic Code

Description Usage Arguments Details Value Examples

View source: R/verify_codes.R

Description

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

Usage

1
verify_icnarc(icnarc_code = NULL)

Arguments

icnarc_code

as a character vector

Details

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

Value

a logical vector

Examples

1
2
3
verify_icnarc("01.06.04.20.16") # correctly formatted
verify_icnarc("1.6.4.20.16") # not strictly correct, but parsable
verify_icnarc("01-6-04.20.16") # annoying, but parsable

CC-HIC/inspectEHR documentation built on Jan. 16, 2020, 11:24 p.m.