Skip to content

Clinics: refinement of session page and addition of cancellation#259

Merged
malross merged 13 commits intomainfrom
clinic-management
Apr 14, 2026
Merged

Clinics: refinement of session page and addition of cancellation#259
malross merged 13 commits intomainfrom
clinic-management

Conversation

@malross
Copy link
Copy Markdown
Collaborator

@malross malross commented Apr 14, 2026

Removed most of the 'tally'-style panels on the clinic's Appointments tab, added more clinic-relevant details to the "Session details" card, and added a card showing the distribution of appointment availability across the hours over which the clinic runs. Or at least, it will show that once it's gathering the values from actual bookings.

malross added 13 commits April 14, 2026 11:25
Previously, when editing an existing clinic, the addition of a new vaccination period left its vaccinator count uninitialised, which caused an inability to calculate the total number of appointments, littering the UI with NaN in places.
This is only the start, but I'm pausing this to tackle a bigger architectural issue that's been slowing me down.
The way that vaccination periods are stored has been changed in PR #255, and the code to ensure periods get a default vaccinator count is now in Session.addVaccinationPeriod()
Moved the vaccination period summary info to Session.formatted to allow this, and updated previous uses of getVaccinationPeriodsSummary (in utils) to use formatted()
This work is incomplete, as I've not yet learnt everything I need to know about dependent records (such as patient sessions). There'll be other records I need to tidy up / delete
Note that this is labelled as the *available* appointment times, but the code's not yet there to check availability, so for now it's just listing all appointments as available.
Make the session page for clinics look as it would immediately after clinic creation. This is for the sake of ongoing UR sessions; it'll be made dynamic later once bookings are made real.
@paulrobertlloyd paulrobertlloyd temporarily deployed to mavis-protot-clinic-man-3xedjv April 14, 2026 13:21 Inactive
@malross malross merged commit 327880d into main Apr 14, 2026
1 check passed
@malross malross deleted the clinic-management branch April 14, 2026 13:29
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