Skip to content

Commit

Permalink
Person id sds (#981)
Browse files Browse the repository at this point in the history
* added back in missing person_id for SDS.
also added latest_flag back in to client lookup in targets

* Update documentation

* added back in missing person_id for SDS.
also added latest_flag back in to client lookup in targets

* Update documentation

* change as suggested by Jen

* Update documentation

---------

Co-authored-by: marjom02 <[email protected]>
Co-authored-by: SwiftySalmon <[email protected]>
Co-authored-by: Jennifer Thom <[email protected]>
Co-authored-by: Jennit07 <[email protected]>
  • Loading branch information
5 people authored Jul 19, 2024
1 parent 8d8872d commit 9dac223
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/process_extract_alarms_telecare.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ process_extract_alarms_telecare <- function(
"smrtype",
"chi",
"dob",
"person_id",
"gender",
"postcode",
"sc_send_lca",
"record_keydate1",
"record_keydate2",
"person_id",
"sc_latest_submission"
) %>%
slfhelper::get_anon_chi()
Expand Down
4 changes: 3 additions & 1 deletion R/process_extract_sds.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ process_extract_sds <- function(
"smrtype",
"chi",
"dob",
"person_id",
"gender",
"postcode",
"sc_send_lca",
"record_keydate1",
"record_keydate2",
"sc_send_lca"
"sc_latest_submission"
) %>%
slfhelper::get_anon_chi()

Expand Down
2 changes: 1 addition & 1 deletion R/process_lookup_sc_client.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ process_lookup_sc_client <-
year,
sc_demographics = read_file(get_sc_demog_lookup_path()) %>%
slfhelper::get_chi() %>%
dplyr::select(c("sending_location", "social_care_id", "chi")),
dplyr::select(c("sending_location", "social_care_id", "chi", "latest_flag")),
write_to_disk = TRUE) {
client_clean <- data %>%
# Replace 'unknown' responses with NA
Expand Down
2 changes: 1 addition & 1 deletion _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ list(
year = year,
sc_demographics = sc_demog_lookup %>%
slfhelper::get_chi() %>%
dplyr::select(c("sending_location", "social_care_id", "chi")),
dplyr::select(c("sending_location", "social_care_id", "chi", "latest_flag")),
write_to_disk = write_to_disk
)
),
Expand Down
2 changes: 1 addition & 1 deletion man/process_lookup_sc_client.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9dac223

Please sign in to comment.