Skip to content

Commit

Permalink
fix anon-chi issues in create_episode_file
Browse files Browse the repository at this point in the history
  • Loading branch information
lizihao-anu committed May 29, 2024
1 parent d5697c6 commit 3433f0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/create_episode_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ create_episode_file <- function(
col_select = c("gpprac", "cluster", "hbpraccode")
),
slf_deaths_lookup = read_file(get_slf_deaths_lookup_path(year)) %>% slfhelper::get_chi(),
sc_client = read_file(get_sc_client_lookup_path(year)),
sc_client = read_file(get_sc_client_lookup_path(year)) %>% slfhelper::get_anon_chi(),
write_to_disk = TRUE,
anon_chi_out = TRUE) {
processed_data_list <- purrr::discard(processed_data_list, ~ is.null(.x) | identical(.x, tibble::tibble()))
Expand Down
8 changes: 4 additions & 4 deletions R/join_sparra_hhg.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ join_sparra_hhg <- function(data, year) {
read_file(get_sparra_path(year)) %>%
dplyr::rename(sparra_start_fy = "sparra_risk_score") %>%
slfhelper::get_chi(),
by = c("chi" = "upi_number"),
by = c("chi"),
na_matches = "never",
relationship = "many-to-one"
)
Expand All @@ -25,7 +25,7 @@ join_sparra_hhg <- function(data, year) {
read_file(get_sparra_path(next_fy(year))) %>%
dplyr::rename(sparra_end_fy = "sparra_risk_score") %>%
slfhelper::get_chi(),
by = c("chi" = "upi_number"),
by = c("chi"),
na_matches = "never",
relationship = "many-to-one"
)
Expand All @@ -39,7 +39,7 @@ join_sparra_hhg <- function(data, year) {
read_file(get_hhg_path(year)) %>%
dplyr::rename(hhg_start_fy = "hhg_score") %>%
slfhelper::get_chi(),
by = c("chi" = "upi_number"),
by = c("chi"),
na_matches = "never",
relationship = "many-to-one"
)
Expand All @@ -53,7 +53,7 @@ join_sparra_hhg <- function(data, year) {
read_file(get_hhg_path(next_fy(year))) %>%
dplyr::rename(hhg_end_fy = "hhg_score") %>%
slfhelper::get_chi(),
by = c("chi" = "upi_number"),
by = c("chi"),
na_matches = "never",
relationship = "many-to-one"
)
Expand Down

0 comments on commit 3433f0d

Please sign in to comment.