Validate CARC Group Codes
Arguments
- x
<chr>
vector of CARC adjustment codes; should be of the formGROUP-CARC
, whereGROUP
is two letters, followed by a dash (-
) andCARC
is a two-to-three character alphanumeric string.
Value
a tibble
Examples
is_carc_group(c("- 253", "OA-23", "PI-", "-45 ", "OA23"))
#> [1] FALSE FALSE FALSE FALSE FALSE