Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor sc changes #992

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion R/process_sc_all_care_home.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
by = c("sending_location", "social_care_id")
) %>%
replace_sc_id_with_latest() %>%
dplyr::select(-latest_flag, -latest_sc_id)

Check notice on line 50 in R/process_sc_all_care_home.R

View workflow job for this annotation

GitHub Actions / Check Spelling

`Line` matches candidate pattern `(?:^|[\t ,"'`=(])-[DPWXYLlf](?=[A-Z]{2,}|[A-Z][a-z]|[a-z]{2,})` (candidate-pattern)


# cleaning and matching care home names
Expand Down Expand Up @@ -401,7 +401,6 @@
"ch_provider_description",
"ch_nursing",
"ch_adm_reason",
"type_of_admission",
"sc_latest_submission"
) %>%
slfhelper::get_anon_chi()
Expand Down
2 changes: 1 addition & 1 deletion R/process_sc_all_home_care.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ process_sc_all_home_care <- function(
# Match on demographic data ---------------------------------------

matched_hc_data <- replaced_dates %>%
dplyr::left_join(
dplyr::right_join(
sc_demog_lookup,
by = c("sending_location", "social_care_id")
) %>%
Expand Down
5 changes: 4 additions & 1 deletion R/replace_sc_id_with_latest.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ replace_sc_id_with_latest <- function(data) {
.data$latest_sc_id,
.data$social_care_id
)
)
) %>%
dplyr::filter(!(is.na(period)))


return(return_data)
}
Loading