Skip to content

Commit

Permalink
Merge branch 'mar-23-update' into archive_sc_extracts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennit07 authored Mar 20, 2024
2 parents 7842647 + 54b61a7 commit 7f3463e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Deploy to Netlify
if: contains(env.isPR, 'true')
id: netlify-deploy
uses: nwtgck/actions-netlify@v2
uses: nwtgck/actions-netlify@v3
with:
publish-dir: './docs'
production-branch: main-R
Expand Down
13 changes: 7 additions & 6 deletions R/process_sc_all_alarms_telecare.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,19 @@ process_sc_all_alarms_telecare <- function(
convert_sc_sending_location_to_lca(sending_location)
)
]

# RIGHT_JOIN with sc_demog_lookup
data <- data[sc_demog_lookup, on = .(sending_location, social_care_id)]

# Replace social_care_id with latest if needed (assuming replace_sc_id_with_latest is a custom function)
data <- replace_sc_id_with_latest(data)

data$person_id <- paste0(
data$sending_location,
"-",
data$social_care_id
)

# Join with sc_demog_lookup
data <- sc_demog_lookup[data, on = .(sending_location, social_care_id)]

# Replace social_care_id with latest if needed (assuming replace_sc_id_with_latest is a custom function)
data <- replace_sc_id_with_latest(data)

# Deal with episodes that have a package across quarters
data[, pkg_count := seq_len(.N), by = .(
sending_location,
Expand Down

0 comments on commit 7f3463e

Please sign in to comment.