
AFP ICD-10 reference list shipped with the package
Source:R/clean_afp_diagnosis.R
polis_afp_icd10.RdReturns the packaged ICD-10 reference that maps an ICD-10 code prefix to a
canonical diagnosis label. The first matching pattern wins, so the rows are
ordered specific-before-broad. Consumed by clean_afp_diagnosis().
Value
A tibble with columns pattern (an anchored regular expression
matched against the upper-cased ICD-10 code) and diagnosis (the canonical
label, itself a key of polis_afp_diagnosis_class()).
Examples
head(polis_afp_icd10())
#> # A tibble: 6 × 2
#> pattern diagnosis
#> <chr> <chr>
#> 1 ^G61 Guillain-Barre syndrome
#> 2 ^G70 Other neurological
#> 3 ^G71|^G72 Myositis or myalgia
#> 4 ^G12 Other neurological
#> 5 ^T80|^T88 Traumatic neuritis
#> 6 ^P14 Traumatic neuritis