Skip to content

Commit

Permalink
Update process_sc_all_home_care.R (#916)
Browse files Browse the repository at this point in the history
A small issue was identified when running targets. Linked with changes
to the function `fix_sc_end_dates()`
  • Loading branch information
SwiftySalmon authored Feb 27, 2024
2 parents 9699394 + f5c7448 commit 612a409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions R/process_sc_all_alarms_telecare.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ process_sc_all_alarms_telecare <- function(
service_end_date := fix_sc_end_dates(
service_start_date,
service_end_date,
period
period_end_date
)
]

Expand Down Expand Up @@ -113,7 +113,6 @@ process_sc_all_alarms_telecare <- function(
sending_location = data.table::last(sending_location),
social_care_id = data.table::last(social_care_id),
sc_latest_submission = data.table::last(period),
record_keydate1 = data.table::last(record_keydate1),
record_keydate2 = data.table::last(record_keydate2),
smrtype = data.table::last(smrtype),
pkg_count = data.table::last(pkg_count),
Expand Down
3 changes: 2 additions & 1 deletion R/process_sc_all_home_care.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ process_sc_all_home_care <- function(
sc_demog_lookup,
write_to_disk = TRUE) {
replaced_dates <- data %>%
dplyr::filter(.data$hc_start_date_after_period_end_date != 1) %>%
dplyr::mutate(
hc_service_end_date = fix_sc_missing_end_dates(
.data$hc_service_end_date,
Expand All @@ -28,7 +29,7 @@ process_sc_all_home_care <- function(
hc_service_end_date = fix_sc_end_dates(
.data$hc_service_start_date,
.data$hc_service_end_date,
.data$period
.data$hc_period_end_date
)
)

Expand Down

0 comments on commit 612a409

Please sign in to comment.