-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add activity after death #953
Commits on Jan 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7d05ce9 - Browse repository at this point
Copy the full SHA 7d05ce9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1718f0 - Browse repository at this point
Copy the full SHA d1718f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6aec7b1 - Browse repository at this point
Copy the full SHA 6aec7b1View commit details
Commits on Jan 22, 2024
-
Reorder when we match on client variables
This was causing NSUs to show a social care id. This now resolves this.
Configuration menu - View commit details
-
Copy full SHA for 65e8caa - Browse repository at this point
Copy the full SHA 65e8caaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35bcddc - Browse repository at this point
Copy the full SHA 35bcddcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 800083a - Browse repository at this point
Copy the full SHA 800083aView commit details -
Revert "Update logic to use end of Quarter"
This reverts commit 004e831.
Configuration menu - View commit details
-
Copy full SHA for 996db4c - Browse repository at this point
Copy the full SHA 996db4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d10376d - Browse repository at this point
Copy the full SHA d10376dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8e1dd2 - Browse repository at this point
Copy the full SHA b8e1dd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3591aca - Browse repository at this point
Copy the full SHA 3591acaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47769e3 - Browse repository at this point
Copy the full SHA 47769e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85c22ad - Browse repository at this point
Copy the full SHA 85c22adView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4d9128 - Browse repository at this point
Copy the full SHA e4d9128View commit details -
Configuration menu - View commit details
-
Copy full SHA for daa9ee7 - Browse repository at this point
Copy the full SHA daa9ee7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 702225f - Browse repository at this point
Copy the full SHA 702225fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0fb3cd - Browse repository at this point
Copy the full SHA d0fb3cdView commit details
Commits on Jan 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bbf28dd - Browse repository at this point
Copy the full SHA bbf28ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3d826b - Browse repository at this point
Copy the full SHA b3d826bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ca03b7 - Browse repository at this point
Copy the full SHA 4ca03b7View commit details
Commits on Jan 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c589786 - Browse repository at this point
Copy the full SHA c589786View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e87385 - Browse repository at this point
Copy the full SHA 1e87385View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e69e50 - Browse repository at this point
Copy the full SHA 0e69e50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0586dd7 - Browse repository at this point
Copy the full SHA 0586dd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbf5ae4 - Browse repository at this point
Copy the full SHA cbf5ae4View commit details -
Bug - match on client variables before NSU (#896)
@SwiftySalmon spotted an issue where NSUs were showing a social care id attached. This was due to us matching on NSUs first and then SC Client variables at the end. Previously we matched SC client variables first and then NSUs onto the episode file. This difference occurred when we split up matching on client variables at the year specific extracts. This is a quick PR to reorder the functions to match our previous logic. I have tested the 1920 file to check this and the issue is no longer there.
Configuration menu - View commit details
-
Copy full SHA for cde4b3d - Browse repository at this point
Copy the full SHA cde4b3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63f6333 - Browse repository at this point
Copy the full SHA 63f6333View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6c83f0 - Browse repository at this point
Copy the full SHA e6c83f0View commit details -
Review
create_demog_test_flags
function (#898)Improved the function `create_demog_test_flags` function to include a parameter for specifying `chi` or `anon_chi`. This is due to this function being used for testing the extracts (which calls chi) and also being used for testing the episode and individual file (which calls anon_chi). This now allows flexibility for interchanging between the two forms and simplifies the code by removing duplicated code. Closes #850
Configuration menu - View commit details
-
Copy full SHA for 3233bfb - Browse repository at this point
Copy the full SHA 3233bfbView commit details
Commits on Jan 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3055d54 - Browse repository at this point
Copy the full SHA 3055d54View commit details -
Configuration menu - View commit details
-
Copy full SHA for acb2639 - Browse repository at this point
Copy the full SHA acb2639View commit details -
Amend test workbooks to be in the format snake case (#903)
Checked for snake case and made some changes to the workbook names. I have also updated the date stamp to be lower case as well. Closes #508
Configuration menu - View commit details
-
Copy full SHA for 287e782 - Browse repository at this point
Copy the full SHA 287e782View commit details
Commits on Feb 5, 2024
-
This was not taking the correct variables, leading to NSUs being assigned psychiatry
Configuration menu - View commit details
-
Copy full SHA for 30cb567 - Browse repository at this point
Copy the full SHA 30cb567View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00ae978 - Browse repository at this point
Copy the full SHA 00ae978View commit details
Commits on Feb 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3b38160 - Browse repository at this point
Copy the full SHA 3b38160View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0712d1 - Browse repository at this point
Copy the full SHA d0712d1View commit details
Commits on Feb 7, 2024
-
SC Demographics and SDS (#900)
* Style code * # read in sc demographics different variables - removed extract date as not accurate, using chi over upi after discussion with social care data management. Added in date of death just for fun. * social care demographics first draft removed a lot of the submitted variables and instead using chi variables from chi seeding. Other changes: - Fill in missing values, - create flag for latest social care id (one from database is not accurate), this makes sure that each chi only has ONE sc id as the latest to stop it creating duplicates - change postcode to choose chi over submitted * Style code * had a github error? Not sure what happened but commiting first draft of sc demographics * Style code * first draft sds. No major changes - only how demographics is matched on and how latest social care id is selected * Update documentation * demographics - add sending location to group by * Style code * Update documentation * Added ungroup() * Remove comments * Remove comments * Style code --------- Co-authored-by: SwiftySalmon <[email protected]> Co-authored-by: marjom02 <[email protected]> Co-authored-by: Jennit07 <[email protected]> Co-authored-by: Jennit07 <[email protected]> Co-authored-by: Zihao Li <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 744bbc0 - Browse repository at this point
Copy the full SHA 744bbc0View commit details -
* speed up process_sc_all_alarms_telecare function with data.table package * Update documentation --------- Co-authored-by: lizihao-anu <[email protected]> Co-authored-by: Megan McNicol <[email protected]> Co-authored-by: Jennit07 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd8b359 - Browse repository at this point
Copy the full SHA cd8b359View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1a9523 - Browse repository at this point
Copy the full SHA b1a9523View commit details
Commits on Feb 12, 2024
-
Bug -
high_cc
in demographic cohort showingNAs
instead of `TRUE/……FALSE` (#911) Add case_when statement for `high_cc` cohort
Configuration menu - View commit details
-
Copy full SHA for 6829c1a - Browse repository at this point
Copy the full SHA 6829c1aView commit details
Commits on Feb 13, 2024
-
added a casewhen to update property type description for homelessness
marjom02 committedFeb 13, 2024 Configuration menu - View commit details
-
Copy full SHA for c7a1400 - Browse repository at this point
Copy the full SHA c7a1400View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea19220 - Browse repository at this point
Copy the full SHA ea19220View commit details -
Configuration menu - View commit details
-
Copy full SHA for a634ea7 - Browse repository at this point
Copy the full SHA a634ea7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1f2a36 - Browse repository at this point
Copy the full SHA c1f2a36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 842e616 - Browse repository at this point
Copy the full SHA 842e616View commit details
Commits on Feb 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 760e2e5 - Browse repository at this point
Copy the full SHA 760e2e5View commit details -
Bug - NSUs being assigned psychiatry in the service use cohort (#908)
Due to a coding error, the `dplyr::pick` was not working correctly when trying to take the average for assigning the label `unassigned`. This was causing NSUs to have the label `psychiatry` attached as this was the next name available. The fix is to specify all of the columns needed to take an average for assigning the label `unassigned`. This has a big impact on the figures. The current 'live' files: ``` service_use_cohort n <chr> <int> 1 Elective Inpatient 488510 2 Geriatric 293863 3 Limited Daycases 725538 4 Maternity 206488 5 Multiple Emergency 1140659 6 Outpatients 1102837 7 Prescribing 3982957 **8 Psychiatry 1601193** 9 Routine Daycase 178739 10 Single Emergency 1116014 **11 Unassigned 250917** 12 Unscheduled Care 1718283 13 NA 55697 ``` after the fix: ``` service_use_cohort n <chr> <int> 1 Elective Inpatient 488521 2 Geriatric 293869 3 Limited Daycases 725583 4 Maternity 206488 5 Multiple Emergency 1140688 6 Outpatients 1102878 7 Prescribing 3982958 **8 Psychiatry 111859** 9 Routine Daycase 178742 10 Single Emergency 1116042 **11 Unassigned 1740237** 12 Unscheduled Care 1718269 13 NA 55180 ``` Ive asked the source team if they can run through a test to see the impact on their figures so i am opening this as a draft for now incase further changes are needed. closes #907
Configuration menu - View commit details
-
Copy full SHA for 1defb2b - Browse repository at this point
Copy the full SHA 1defb2bView commit details
Commits on Feb 16, 2024
-
Bug - deal with missing variables (#914)
* Add missing sc variables for no sc data * Fix code for including `_inc_dna` variables * Remove commented line
Configuration menu - View commit details
-
Copy full SHA for 14cde16 - Browse repository at this point
Copy the full SHA 14cde16View commit details -
Bug - Fix get pop path failing and preventing the indiv file from run…
…ning. (#913) Fix bug - pop file paths breaking indiv file
Configuration menu - View commit details
-
Copy full SHA for 625402b - Browse repository at this point
Copy the full SHA 625402bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 36c5e74 - Browse repository at this point
Copy the full SHA 36c5e74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63e2caf - Browse repository at this point
Copy the full SHA 63e2cafView commit details -
Review
check_qtr_format
function (#897)Opening a draft PR for now. I think we need to review the care home methodology before deciding if we need the quarter calculation functions. I will highlight areas in the code which i am not sure about as i want to make sure we pick up the correct logic. For now i have concluded that we can remove the `check_qtr_format` function so have removed this from the code. Closes Issue #886
Configuration menu - View commit details
-
Copy full SHA for c684b81 - Browse repository at this point
Copy the full SHA c684b81View commit details
Commits on Feb 26, 2024
-
Update process_sc_all_home_care.R
A small issue was identified when running targets. Linked with changes to the function `fix_sc_end_dates()`
Configuration menu - View commit details
-
Copy full SHA for ad629b2 - Browse repository at this point
Copy the full SHA ad629b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 640548b - Browse repository at this point
Copy the full SHA 640548bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0da70c - Browse repository at this point
Copy the full SHA e0da70cView commit details
Commits on Feb 27, 2024
-
* fix sc_client_lookup sc_send_lca * fix an issue of get_pop_path * Style code * fix the rest of get_pop_path from get_datazone_pop_path * Update documentation * fix sc_send_lca * add missing year column * explicitly specify the argument year to avoid corruption of targets * Update documentation * new data pipeline with targets remove create_individual_files from targets and append it to run_targets script * minor changes * Style code * undo sc_send_lca bit * Update targets scripts * Remove top level targets scripts --------- Co-authored-by: lizihao-anu <[email protected]> Co-authored-by: Megan McNicol <[email protected]> Co-authored-by: Jennit07 <[email protected]> Co-authored-by: Jennifer Thom <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9699394 - Browse repository at this point
Copy the full SHA 9699394View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa83adb - Browse repository at this point
Copy the full SHA aa83adbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5c7448 - Browse repository at this point
Copy the full SHA f5c7448View commit details -
Update process_sc_all_home_care.R (#916)
A small issue was identified when running targets. Linked with changes to the function `fix_sc_end_dates()`
Configuration menu - View commit details
-
Copy full SHA for 612a409 - Browse repository at this point
Copy the full SHA 612a409View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7e7138 - Browse repository at this point
Copy the full SHA b7e7138View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9e103e - Browse repository at this point
Copy the full SHA c9e103eView commit details
Commits on Mar 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3c2a360 - Browse repository at this point
Copy the full SHA 3c2a360View commit details
Commits on May 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ad79baa - Browse repository at this point
Copy the full SHA ad79baaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c2b6d5 - Browse repository at this point
Copy the full SHA 6c2b6d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d47c0a1 - Browse repository at this point
Copy the full SHA d47c0a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec0c5ef - Browse repository at this point
Copy the full SHA ec0c5efView commit details
Commits on May 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8a704e0 - Browse repository at this point
Copy the full SHA 8a704e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 746d65d - Browse repository at this point
Copy the full SHA 746d65dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 861bb2b - Browse repository at this point
Copy the full SHA 861bb2bView commit details -
Merge branch 'add_activity_after_death' of https://github.com/Public-Health-Scotland/source-linkage-files into add_activity_after_death # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
Configuration menu - View commit details
-
Copy full SHA for f8d1d9a - Browse repository at this point
Copy the full SHA f8d1d9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ea7941 - Browse repository at this point
Copy the full SHA 8ea7941View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8589ad - Browse repository at this point
Copy the full SHA b8589adView commit details
Commits on May 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3b22b92 - Browse repository at this point
Copy the full SHA 3b22b92View commit details
Commits on May 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2b43e3f - Browse repository at this point
Copy the full SHA 2b43e3fView commit details
Commits on May 27, 2024
-
changes to activity after death flag
marjom02 committedMay 27, 2024 Configuration menu - View commit details
-
Copy full SHA for e3a646f - Browse repository at this point
Copy the full SHA e3a646fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e5c71a - Browse repository at this point
Copy the full SHA 5e5c71aView commit details -
Update R/add_activity_after_death_flag.R
Co-authored-by: Jennit07 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5ed7cf3 - Browse repository at this point
Copy the full SHA 5ed7cf3View commit details -
Update R/add_activity_after_death_flag.R
Co-authored-by: Jennit07 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8faac6e - Browse repository at this point
Copy the full SHA 8faac6eView commit details -
marjom02 committed
May 27, 2024 Configuration menu - View commit details
-
Copy full SHA for 1406ff0 - Browse repository at this point
Copy the full SHA 1406ff0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c535165 - Browse repository at this point
Copy the full SHA c535165View commit details -
Configuration menu - View commit details
-
Copy full SHA for edb4782 - Browse repository at this point
Copy the full SHA edb4782View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aea212 - Browse repository at this point
Copy the full SHA 9aea212View commit details