From e7a90f5a571a3c47d1ab2faa734c604dfec376b9 Mon Sep 17 00:00:00 2001 From: Megan McNicol <43570769+SwiftySalmon@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:48:10 +0100 Subject: [PATCH] Update R/process_sc_all_care_home.R Co-authored-by: Jennit07 <67372904+Jennit07@users.noreply.github.com> --- R/process_sc_all_care_home.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/process_sc_all_care_home.R b/R/process_sc_all_care_home.R index fcd13fc36..e506e335e 100644 --- a/R/process_sc_all_care_home.R +++ b/R/process_sc_all_care_home.R @@ -272,6 +272,7 @@ process_sc_all_care_home <- function( # This is the same but uses the social care id and sending location so can be used for # episodes that are not attached to a CHI number # This will restrict continuous stays to each Local Authority + sc_ch_id_markers <- chi_chi_markers %>% dplyr::group_by(.data[["social_care_id"]], .data[["sending_location"]]) %>% # create variable for previous discharge date + 1 day dplyr::mutate(previous_discharge_date_sc = dplyr::lag(.data[["ch_discharge_date"]]) + lubridate::days(1L)) %>%