-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96001fe
commit 950034f
Showing
17 changed files
with
146 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
source(here::here("data-raw", "pins_internal.R")) | ||
|
||
raw_display <- arktax::taxonomy_raw() |> | ||
dplyr::select(code, year, version, display_name) | ||
|
||
no_display <- raw_display |> | ||
dplyr::filter(is.na(display_name)) |> | ||
dplyr::pull(code) |> | ||
fuimus::uniq_rmna() | ||
|
||
raw_display |> | ||
dplyr::filter(!is.na(display_name)) |> | ||
# dplyr::filter(code %in% no_display) |> | ||
dplyr::filter(.by = code, | ||
year == max(year), | ||
version == max(version)) |> | ||
dplyr::count(code, sort = TRUE) | ||
|
||
tax_display <- get_pin("tax_display") |> | ||
dplyr::select( | ||
taxonomy_code = code, | ||
taxonomy_display = display_name) | ||
|
||
pin_update( | ||
tax_display, | ||
"tax_display", | ||
"NUCC Taxonomy Display Names 2009-2024", | ||
"Health Care Provider Taxonomy Code Set Display Names 2009-2024" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
source(here::here("data-raw", "pins_internal.R")) | ||
|
||
raw_definition <- arktax::taxonomy_raw() |> | ||
dplyr::select(code, year, version, definition) |> | ||
dplyr::mutate(definition = stringr::str_replace_all(definition, notes_regs) |> | ||
stringr::str_squish()) | ||
|
||
no_definition <- raw_definition |> | ||
dplyr::filter(is.na(definition)) |> | ||
dplyr::pull(code) |> | ||
fuimus::uniq_rmna() | ||
|
||
has_definition <- raw_definition |> | ||
dplyr::filter(code %in% no_definition) |> | ||
dplyr::filter(!is.na(definition)) |> | ||
dplyr::pull(code) |> | ||
fuimus::uniq_rmna() | ||
|
||
vctrs::vec_slice(no_definition, vctrs::vec_in(no_definition, has_definition)) | ||
vctrs::vec_slice(has_definition, vctrs::vec_in(has_definition, no_definition)) | ||
|
||
raw_definition |> | ||
dplyr::filter(.by = code, | ||
!is.na(definition), | ||
year == max(year), | ||
version == max(version)) |> | ||
dplyr::arrange(code, year, version) |> | ||
dplyr::filter(year < 2024) | ||
print(n = 200) | ||
dplyr::filter(is.na(definition)) | ||
dplyr::select(code, definition) | ||
|
||
|
||
|
||
definitions <- get_pin("tax_definitions") |> | ||
dplyr::reframe( | ||
taxonomy_code = code, | ||
taxonomy_definition = dplyr::if_else(definition == "None", NA_character_, definition) | ||
) | ||
|
||
|
||
pin_update( | ||
definitions, | ||
"tax_definition", | ||
"NUCC Taxonomy Definitions 2009-2024", | ||
"Health Care Provider Taxonomy Code Set Definitions 2009-2024" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
source(here::here("data-raw", "pins_internal.R")) | ||
|
||
hierarchy <- get_pin("tax_hierarchy") |> | ||
dplyr::select( | ||
taxonomy_code = code, | ||
taxonomy_level = level, | ||
taxonomy_level_title = description | ||
) | ||
|
||
pin_update( | ||
hierarchy, | ||
name = "tax_hierarchy", | ||
title = "NUCC Taxonomy Hierarchy", | ||
description = "Health Care Provider Taxonomy Code Set Hierarchy 2009-2024" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...finitions/20241202T101218Z-79f37/data.txt → ...efinition/20241202T165819Z-5bf90/data.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
file: tax_definitions.qs | ||
file_size: 75021 | ||
pin_hash: 79f378e9d0fd77bd | ||
file: tax_definition.qs | ||
file_size: 75008 | ||
pin_hash: 5bf90ad3e935769f | ||
type: qs | ||
title: NUCC Taxonomy Definitions 2009-2024 | ||
description: Health Care Provider Taxonomy Code Set Definitions 2009-2024 | ||
tags: ~ | ||
urls: ~ | ||
created: 20241202T101218Z | ||
created: 20241202T165819Z | ||
api_version: 1 |
Binary file added
BIN
+73.3 KB
inst/extdata/pins/tax_definition/20241202T165819Z-5bf90/tax_definition.qs
Binary file not shown.
Binary file removed
BIN
-73.3 KB
inst/extdata/pins/tax_definitions/20241202T101218Z-79f37/tax_definitions.qs
Binary file not shown.
Binary file removed
BIN
-11.1 KB
inst/extdata/pins/tax_display/20241202T101342Z-6657b/tax_display.qs
Binary file not shown.
6 changes: 3 additions & 3 deletions
6
...x_display/20241202T101342Z-6657b/data.txt → ...x_display/20241202T170112Z-8d652/data.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
file: tax_display.qs | ||
file_size: 11358 | ||
pin_hash: 6657beed09bdcfc0 | ||
file_size: 11365 | ||
pin_hash: 8d652affb5c85d60 | ||
type: qs | ||
title: NUCC Taxonomy Display Names 2009-2024 | ||
description: Health Care Provider Taxonomy Code Set Display Names 2009-2024 | ||
tags: ~ | ||
urls: ~ | ||
created: 20241202T101342Z | ||
created: 20241202T170112Z | ||
api_version: 1 |
Binary file not shown.
Binary file removed
BIN
-13.1 KB
inst/extdata/pins/tax_hierarchy/20241202T101433Z-582c1/tax_hierarchy.qs
Binary file not shown.
8 changes: 4 additions & 4 deletions
8
...hierarchy/20241202T101433Z-582c1/data.txt → ...hierarchy/20241202T170833Z-7cc99/data.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
file: tax_hierarchy.qs | ||
file_size: 13373 | ||
pin_hash: 582c1ecdec65c40d | ||
file_size: 13384 | ||
pin_hash: 7cc99691802694b7 | ||
type: qs | ||
title: NUCC Taxonomy Hierarchy 2009-2024 | ||
title: NUCC Taxonomy Hierarchy | ||
description: Health Care Provider Taxonomy Code Set Hierarchy 2009-2024 | ||
tags: ~ | ||
urls: ~ | ||
created: 20241202T101433Z | ||
created: 20241202T170833Z | ||
api_version: 1 |
Binary file added
BIN
+13.1 KB
inst/extdata/pins/tax_hierarchy/20241202T170833Z-7cc99/tax_hierarchy.qs
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.