Skip to content

Clinics unmatched appointments#282

Merged
malross merged 14 commits into
mainfrom
clinics-unmatched-appointments
May 11, 2026
Merged

Clinics unmatched appointments#282
malross merged 14 commits into
mainfrom
clinics-unmatched-appointments

Conversation

@malross
Copy link
Copy Markdown
Collaborator

@malross malross commented May 11, 2026

Main changes herein:

  • Addition of a page to see the unmatched clinic appointments, on a tab in the Review section alongside the unmatched consent tab
  • Overhaul of how clinics are setup and children are invited to, and booked into, the clinic sessions
  • Change how the parents' booking journey defines the programmes invited to (route param replace by querystring)

While the work here is incomplete, I don't want the branch hanging around unmerged for too long, as it contains lots of changes to create-data that are important for other areas of work that I'm moving onto. I'll come back to the matching of unmatched appointments after we've done some more parent research.

malross added 13 commits May 11, 2026 10:08
For sessions:
 - left largely as is

For consent:
 - no longer requesting consent for clinics
 - no longer creating consent replies for clinics

For screening and recording:
 - no longer screening or recording for clinic sessions (may revisit this)

For clinic invites
 - now inviting all clinic-ready children to clinic for all programmes for which they're ready (WILL revisit this)

For clinic bookings and appointments:
 - reworked to be based on children's needs rather than a random selection of children and a random selection of clinics
 - actually finding a free slot and allocating it (in theory, not yet fully tested and looks a bit broken)
 - made unmatched details a near-miss
 - simplified to a single child per booking for now (WILL revisit this)
 - ensured that clinics aren't filled up
New:
 - added unmatched appointment count to total for Review tab
 - fix display of the name and relationship of parent for unmatched appointments
New:
 - now only inviting half of the schools to clinic (plus home-ed and unknown)
 - removed unnecessary filters for consent replies and recording (only school sessions will have patient-session records at that point)
We decided not to use registration for clinic sessions, so there's no need for attending or attended statuses. At least, none yet stated in user research, so let's simplify till we hear the need.

This commit also checks for clinic booked status by looking for evidence of appointments in yet-to-happen clinics instead of the old way of looking at the last patient-session and hoping it was a clinic.
This commit also removes the session preset from clinic bookings and the primary programme from bookings and appointments; it's not needed there.
These came in after rebasing on main.
@paulrobertlloyd paulrobertlloyd temporarily deployed to mavis-protot-clinics-un-ueygyi May 11, 2026 10:53 Inactive
@paulrobertlloyd paulrobertlloyd temporarily deployed to mavis-protot-clinics-un-ueygyi May 11, 2026 11:23 Inactive
@malross malross merged commit 1bad41d into main May 11, 2026
1 check passed
@malross malross deleted the clinics-unmatched-appointments branch May 11, 2026 12:04
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