Skip to content

Conversation

thomasleese
Copy link
Contributor

This replaces the foreign key association between pre-screenings and patient sessions to instead link directly to the patient and the session (via the date). This is needed as we eventually want to replace the PatientSession model and to do that we need to make sure all foreign keys to it have been replaced.

The functionality should be the same before and after, actually slightly improved as pre-screening is only supposed to exist on the day it happened, so now we link directly to the session date rather than the overall session.

Jira Issue - MAV-1819

@thomasleese thomasleese added this to the v3.4.0 milestone Aug 21, 2025
@thomasleese thomasleese requested a review from a team as a code owner August 21, 2025 13:57
@thomasleese thomasleese added the refactor Improving maintainability label Aug 21, 2025
@thomasleese thomasleese changed the base branch from next to gillick-assessment-patient-session-foreign-key August 21, 2025 16:53
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from 539b482 to 6d90838 Compare August 21, 2025 17:07
@thomasleese thomasleese force-pushed the gillick-assessment-patient-session-foreign-key branch from 6d0aa79 to 0c9e319 Compare August 22, 2025 11:20
Base automatically changed from gillick-assessment-patient-session-foreign-key to next August 22, 2025 11:39
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch 9 times, most recently from 88d2b1a to ae58634 Compare August 27, 2025 13:22
This replaces the foreign key association between pre-screenings and
patient sessions to instead link directly to the patient and the
session (via the date). This is needed as we eventually want to replace
the PatientSession model and to do that we need to make sure all
foreign keys to it have been replaced.

The functionality should be the same before and after, actually slightly
improved as pre-screening is only supposed to exist on the day it
happened, so now we link directly to the session date rather than the
overall session.

Jira-Issue: MAV-1819
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from ae58634 to a4e1ce9 Compare August 29, 2025 14:48
@thomasleese thomasleese enabled auto-merge August 29, 2025 14:48
Copy link

@thomasleese thomasleese merged commit 9cc1fd9 into next Aug 29, 2025
13 checks passed
@thomasleese thomasleese deleted the pre-screening-patient-session-foreign-key branch August 29, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improving maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants