-
Notifications
You must be signed in to change notification settings - Fork 2
demographics file #1202
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
demographics file #1202
Conversation
slice demog graphics file by financial year and remove care home postcode, enforce 1chi to multi scid
use linking_id to link ep with sc_client information
|
Good to review again. I wonder if it is worth to run the whole updating process now to check bugs. |
|
sc_demog_data_extract = read_lookup_sc_demographics() this function takes a long time to run - potentially need to look at this to see if we can speed up |
|
read for review again |
Jennit07
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lizihao-anu Ive ran through the demographics file and happy to approve the PR. Can we please leave this open and discuss at the team meeting tomorrow then we can merge into the dec25 branch? I only have one further question about joining the client file by linking id as i dont see process_lookup_sc_client modified here
Hi @OluwatobiOni Could you please check again and add your review when you have a moment? Thanks
OluwatobiOni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lizihao-anu, I've reviewed the changes and it looks good and ready to merge.
Thanks @OluwatobiOni I'll merge this into the Dec25 branch |
* Extract tests - adding cost uplift for PLICS inflation * Style code * Update documentation * pull request review * Update documentation * Update document.yaml Although the checks passed, I noticed the document.yaml workflow was failing on the smr-cost-uplift branch. It looks like this issue is also present in the master and dec25-update branches when I checked the document workflow in the actions tab for those branches too. I inspected the error and it was a git push rejection. This happened because the workflow's automated git-auto-commit-action tried to push documentation updates, but the remote branch on GitHub already had newer commits. To fix this, I've committed a change to the document.yaml workflow. The solution was to add a step to git pull the latest changes from the remote branch before the auto-commit action runs. This ensures the workflow is always working on the most up-to-date version of the branch and can push its changes without conflict. The workflow should now run and pass correctly. Let me know if you have any questions. * Update document.yaml Reverting changes as it failed because of an overall changed workflow * adding functions to _pkgdown.yml references * sc extract tests count fix * updating count of missing_dob and n_missing_postcode * Style code * remove quality 19, 20 as they do not make sense (#1205) * export console output to txt file * Style code * demographics file (#1202) * Change order - aligns with sc methods * Move postcode code to own section * Add latest record flag notes from sc team * Style code * Move arrange to make it more clear this is done * Use SC methodology to select latest record flag * remove redundant code * sc: demog lookup by fy and align with sc slice demog graphics file by financial year and remove care home postcode, enforce 1chi to multi scid * sc: replace scid with latest grouped by anon_chi * sc: to adapt at with demog lookup * sc: to adapt ch with demog lookup * sc: to adapt hc with demog lookup * sc: to adapt sds with demog lookup * sc: to adapt join_sc_client with demog lookup use linking_id to link ep with sc_client information * Style code * Update documentation * bug fix for process_lookup_sc_demographics * update targets and join_sc_client() * update process_lookup_sc_demographics.R * Update documentation * remove latest_record_flag --------- Co-authored-by: jennit07 <Jennifer.Thom@phs.scot> Co-authored-by: Jennit07 <67372904+Jennit07@users.noreply.github.com> Co-authored-by: Oluwatobi Oni <Oluwatobi.Oni@phs.scot> * Update homelessness completeness flag (#1208) * Update new HL1 file path * Update HL1 workbook to include new cols * Style code * pull request review * create write_console_output.R function * Update documentation * Update Refs for Dec25 update * Style code * Update Refs - no sc data for Q1/2 * Style code * update check_year_valid * remove latest_flag from process_lookup_sc_client * Update documentation * fix target error - remove extract date * fix all_sds target * update sc_client_lookup in _targets.R * update process_tests_sc_demographics * fixing bugs in target * Style code * update cost_uplift.R to allow for missing months * Style code * update mpat in add_smr for recid == "02b" * Update documentation * adding check_year_valid to process_tests * adding check_year_valid as guard * fix * fix ch postcodes directory connection * Linking id dropped from sc - add this back in * failed checks - issue with _pkgdown.yml * bug fix * bug fix * fix tests for add_smrtype * remove examples of write_console_output * fix no visible binding issue * remove any non standard character * Update documentation * Update copy to hscdiip --------- Co-authored-by: Oluwatobi <oluwatobi.eoni@gmail.com> Co-authored-by: OluwatobiOni <108776112+OluwatobiOni@users.noreply.github.com> Co-authored-by: Oluwatobi Oni <oluwatobilobaebenezer@gmail.com> Co-authored-by: Oluwatobi Oni <Oluwatobi.Oni@phs.scot> Co-authored-by: Zihao Li <lizihao_anu@outlook.com> Co-authored-by: Zihao Li <zihao.li@phs.scot> Co-authored-by: lizihao-anu <97514488+lizihao-anu@users.noreply.github.com>
A few changes to social care datasets: