Skip to content

Conversation

thomasleese
Copy link
Contributor

This replaces the foreign key association between Gillick assessments 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 Gillick assessment 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-1818

@thomasleese thomasleese added this to the v3.3.0 milestone Aug 21, 2025
@thomasleese thomasleese requested a review from a team as a code owner August 21, 2025 12:33
@thomasleese thomasleese added the refactor Improving maintainability label Aug 21, 2025
@thomasleese thomasleese force-pushed the gillick-assessment-patient-session-foreign-key branch from 474a28c to 6d0aa79 Compare August 21, 2025 16:50
It's not being used anywhere so it can be safely removed.

Jira-Issue: MAV-1818
This replaces the foreign key association between Gillick assessments
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 Gillick assessment 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-1818
@thomasleese thomasleese force-pushed the gillick-assessment-patient-session-foreign-key branch from 6d0aa79 to 0c9e319 Compare August 22, 2025 11:20
Copy link

@thomasleese thomasleese enabled auto-merge August 22, 2025 11:25
@thomasleese thomasleese merged commit 9a6fbc5 into next Aug 22, 2025
13 checks passed
@thomasleese thomasleese deleted the gillick-assessment-patient-session-foreign-key branch August 22, 2025 11:39
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