Skip to content

Clinic invites: new patient filter and invite-to-clinic pages#271

Merged
malross merged 16 commits intomainfrom
clinic-invites
Apr 28, 2026
Merged

Clinic invites: new patient filter and invite-to-clinic pages#271
malross merged 16 commits intomainfrom
clinic-invites

Conversation

@malross
Copy link
Copy Markdown
Collaborator

@malross malross commented Apr 27, 2026

This PR adds:

  • a new clinic-readiness status per patient and programme
  • a filter on children listings to filter to a given clinic status
  • a way to invite a given child to all clinics they're 'ready' for, from the child record
  • a way to bulk-invite children matching a given filter on child listings (only available when filtering to clinic-ready children)

The clinic status filter, seen in the main Children page, with the link to invite to clinic present because the filter is showing children who can be invited to clinic:
image

The page allowing you to specify which programmes you want to invite the selected children to at clinic:
image

In the child record, a new link from the Child record tab allowing you to invite to all relevant programmes in one go:
image

And the page allowing you to select the programmes to invite to clinic for, for that child:
image

Arguably, the invite page in the Children list also needs that warning callout for programmes that have no scheduled clinics.

malross added 16 commits April 25, 2026 00:05
Moved addition to patientSession_uuids from requestConsent to more logical home in addToSession.

Fixed creation and use of PatientSessions vs. Patients in create-data

Added tracking of clinicProgramme_ids where it was missing
This still isn't backed up by any booking of children into a clinic, so the "Booked in" status probably won't work as expected yet.
This adds an Invite To Clinic link to the child's Vaccination Programmes card if they're ready for clinic for any programmes. A following page then asks the user to select which programmes to invite for.

May still need to record the invitation in audit events.
This is just the actionLink for now; will need to add the destination page next.
This is intended to clarify that you can already search for children by postcode
Was previously listing children with conflicting consent and whose parents had no contact details.
Also:
 - stop using a warning callout if that's the only content on the page
 - offer a back-out link if none of the clinic-ready programmes currently has a scheduled clinic
@paulrobertlloyd paulrobertlloyd temporarily deployed to mavis-protot-clinic-inv-epjl58 April 27, 2026 22:37 Inactive
@malross malross merged commit b0b2415 into main Apr 28, 2026
1 check passed
@malross malross deleted the clinic-invites branch April 28, 2026 14:27
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