Skip to content

Conversation

thomasleese
Copy link
Contributor

This includes Gillick assessments in the activity log for a patient for better visibility. To support this, I've changed the behaviour of editing Gillick assessments to create new records based on the previous one which allows us to keep track of all Gillick assessments and show them all in the activity log.

Screenshot

Screenshot 2024-11-20 at 14 30 11

@thomasleese thomasleese force-pushed the gillick-assessments-activity-log branch from cf9af90 to 5c0f836 Compare November 20, 2024 15:02
@thomasleese thomasleese force-pushed the gillick-assessments-activity-log branch from 5c0f836 to 41a9bc5 Compare November 20, 2024 15:03
@thomasleese thomasleese marked this pull request as ready for review November 20, 2024 15:24
This allows us to have multiple Gillick assessments per patient session,
which means we can track when nurses change Gillick assessments by
recording a new record each time.
This better represents their real database structure where the foreign
key exists on the Gillick assessment model. It'll also allow us to
modify the editing process to be amend-only, meaning that old Gillick
assessments are kept around but only the latest one is shown to nurses.
This makes it possible to show all Gillick assessments in the activity
log for a patient.
When viewing the activity log for a patient we want to see all Gillick
assessments that have been carried out, including any updates and
changes.
This changes how Gillick assessments are editing by always creating a
new record based on the previous one rather than updating the record.
This allows us to keep a history of Gillick assessments per patient, and
show them all in the activity log.
Because we now don't really have the concept of editing a Gillick
assessment (they're always created new) then we can reduce duplication
and go down to one set of controller actions.
@thomasleese thomasleese force-pushed the gillick-assessments-activity-log branch from 41a9bc5 to 3c80b47 Compare November 20, 2024 17:29
@tvararu tvararu temporarily deployed to mavis-pr-2519 November 20, 2024 17:30 Inactive
Copy link

@thomasleese thomasleese changed the base branch from main to release-1c November 21, 2024 08:46
@thomasleese thomasleese merged commit 05ff65d into release-1c Nov 21, 2024
12 checks passed
@thomasleese thomasleese deleted the gillick-assessments-activity-log branch November 21, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants