Reads a dummy Phecode definitions 1.2 csv file into R (full version may be downloaded from phewascatalog.org)
Examples
read_phecode_lkp_dummy()
#> # A tibble: 33 × 8
#> phecode phenotype phecode_exclude_range sex rollup leaf category_number
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 10 Tuberculosis 010-041.99 NA 1 1 1
#> 2 249 Secondary d… 249-250.99 NA 1 1 3
#> 3 250 Diabetes me… 249-250.99 Both 1 0 3
#> 4 250.1 Type 1 diab… 249-250.99 Both 1 0 3
#> 5 250.11 Type 1 diab… 249-250.99 Both 1 1 3
#> 6 250.12 Type 1 diab… 249-250.99 Both 1 1 3
#> 7 250.13 Type 1 diab… 249-250.99 Both 1 1 3
#> 8 250.14 Type 1 diab… 249-250.99 Both 1 1 3
#> 9 250.15 Diabetes ty… 249-250.99 Both 1 1 3
#> 10 250.2 Type 2 diab… 249-250.99 Both 1 0 3
#> # ℹ 23 more rows
#> # ℹ 1 more variable: category <chr>