Skip to content

Show patient record changes activity log#6627

Draft
murugapl wants to merge 4 commits intocreate-patient-activity-logfrom
show-patient-record-changes-activity-log
Draft

Show patient record changes activity log#6627
murugapl wants to merge 4 commits intocreate-patient-activity-logfrom
show-patient-record-changes-activity-log

Conversation

@murugapl
Copy link
Copy Markdown
Contributor

@murugapl murugapl commented Apr 17, 2026

Show changes to child records (manual or uploaded) in the activity log.

This displays the collected info on changes to patient records in the child activity log. CHnages can happen through three different ways:

  • Cohort or class upload, details amended automatically (unknown -> known for example)
  • User reviews import issues and chooses to use uploaded information
  • manual edit (of NHS number only at the moment)

Jira Issue - MAV-2621

Screenshots

Screenshot 2026-04-17 at 15 24 43 Screenshot 2026-04-17 at 15 24 52

@murugapl murugapl added this to the v8.4.0 milestone Apr 17, 2026
@murugapl murugapl added the feature New functionality label Apr 17, 2026
@murugapl murugapl force-pushed the show-patient-record-changes-activity-log branch 2 times, most recently from 4f0fdc4 to 384be90 Compare April 17, 2026 14:37
@murugapl murugapl force-pushed the create-patient-activity-log branch from 2d67a9b to 8a97e7c Compare April 20, 2026 11:06
@murugapl murugapl force-pushed the show-patient-record-changes-activity-log branch from 384be90 to 1eefeef Compare April 20, 2026 11:38
@murugapl murugapl force-pushed the create-patient-activity-log branch from 8a97e7c to a5cdd80 Compare April 20, 2026 15:04
Records when patient demographic attributes (name, DOB, NHS number, address, gender) are changed, capturing old and new values along with the source (manual edit, cohort import, or class list import) and the user who made the change. This allows us to display the information on the child’s activity log.
1. After saving a manual NHS number edit
2. Before the bulk Patient.import in PatientImportConcern to capture dirty-tracked attribute changes for auto-accepted import rows
3. In ImportDuplicateForm, capture pending_changes before they are applied
This ensures that when merging two patients together, if the one to be
destroyed has a change log entry, this is moved across to the other patient rather
than preventing the merge from happening due to a foreign key
constraint.
This displays the collected info on changes to patient records in the child activity log
@murugapl murugapl force-pushed the show-patient-record-changes-activity-log branch from 1eefeef to fc9398f Compare April 20, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant