spec_charlson <- spec_charlson %>%
ICD10gm::icd_history(years = 2004:2020)
filter(spec_charlson, Disease_Category == "Cerebrovascular disease") %>%
head()
## # A tibble: 6 x 8
## icd_spec Disease_Category year icd3 icd_code icd_normcode icd_sub label
## <chr> <chr> <int> <chr> <chr> <chr> <chr> <chr>
## 1 G45 Cerebrovascular … 2018 G45 G45.09 G45.09 G4509 Arteria-…
## 2 G45 Cerebrovascular … 2017 G45 G45.19 G45.19 G4519 Arteria-…
## 3 G45 Cerebrovascular … 2018 G45 G45.19 G45.19 G4519 Arteria-…
## 4 G45 Cerebrovascular … 2019 G45 G45.39 G45.39 G4539 Amaurosi…
## 5 G45 Cerebrovascular … 2017 G45 G45.22 G45.22 G4522 Multiple…
## 6 G45 Cerebrovascular … 2018 G45 G45.13 G45.13 G4513 Arteria-…