Skip to content

Conversation

@MatMoore
Copy link
Contributor

@MatMoore MatMoore commented Dec 4, 2025

Description

Some time ago we implemented a participant record page. This no longer exists in the prototype, so we can delete it from the app too.

I came across this while looking at adding in the mammograms section to the record medical information page. The previous mammograms were previously shown on the participant record, and they also show up when you click "View appointment" and go to the participant details.

There are still other views within the participants url namespace (such as the ethnicity form), and in certain edge cases these link back to the participant show view.

As a quick fix, I've kept the URLs as they are and made this view redirect to mammograms:participant_details, which is the new equivalent. It always goes to the latest appointment for the participant, and if there are none (which shouldn't normally happen) it redirects back to the clinics page.

Later, we might decide to update all the back links to go directly to the participant details tab, and move the remaining URLs in the participants namespace to the mammograms one, but I don't want to deal with this right now, as my immediate goal is to flesh out the record medical information page, and make sure it has all the right buttons on it.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-11583

Review notes

Review checklist

  • Check database queries are correctly scoped to current_provider

We've removed the separate section for participants, so the only way to
view a participant now is in the context of an appointment.

However, it still might be useful to preserve the /participants/<pk> URL
space, as we have some data that is scoped to participant instead
of an appointment, and that logically fits at /participant/<pk>.

Although we don't link to it directly, the /participants/<pk> URL is still visitable:
- when you click on back when visiting any of the URLs nested under it,
  and the `return_url` query param is missing for any reason
- when you go directly to the URL

This change is a quick fix that preserves all the existing links,
but takes users to the right place if this URL is visited.

In the future we might consider improving the back links and
potentially migrating all these URLs to live under /mammograms, but
I don't want to get bogged down in this now.
@MatMoore MatMoore requested a review from a team December 4, 2025 16:54
@MatMoore MatMoore changed the title remove hidden participant page remove hidden participant record page Dec 4, 2025
@MatMoore MatMoore changed the title remove hidden participant record page remove unwanted participant record page Dec 4, 2025
Copy link
Contributor

@swebberuk swebberuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. 👍

@MatMoore MatMoore merged commit 959cf53 into main Dec 8, 2025
12 checks passed
@MatMoore MatMoore deleted the DTOSS-11583-remove-hidden-page branch December 8, 2025 11:10
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