Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build new patient session page design #3169

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

thomasleese
Copy link
Contributor

@thomasleese thomasleese commented Mar 10, 2025

This builds the new designs for the patient session page to match the latest designs in the prototype.

Four new sections are added which shows on the patient session page:

  • Consent: including consent responses and Gillick assessment.
  • Triage: including the form to record triage and view previous notes.
  • Record vaccination: including the form to record a vaccination.
  • Programme outcome: including a table of vaccination records for this patient in the programme.

This is a big PR and probably easier to review commit by commit. In theory we could extract the different parts in to separate PRs if that's helpful, although in general the page doesn't work as well in a half-redesigned state.

Screenshots

Screenshot 2025-03-08 at 13 34 59 Screenshot 2025-03-14 at 08 45 19 Screenshot 2025-03-14 at 13 14 35 Screenshot 2025-03-14 at 14 02 29 Screenshot 2025-03-14 at 14 31 46

@thomasleese thomasleese added the ✨ feature New functionality label Mar 10, 2025
@thomasleese thomasleese added this to the v2.2.0 milestone Mar 10, 2025
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 4b79fc8 to 979564d Compare March 10, 2025 10:25
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 979564d to 62fe355 Compare March 10, 2025 19:00
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 62fe355 to a1ff7be Compare March 11, 2025 07:25
@thomasleese thomasleese force-pushed the redesign-patient-session branch from a1ff7be to 4da1abf Compare March 11, 2025 19:11
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 4da1abf to e79b665 Compare March 11, 2025 19:34
Base automatically changed from v2.1.0-wip to main March 12, 2025 08:17
@thomasleese thomasleese force-pushed the redesign-patient-session branch from e79b665 to 3e6d2eb Compare March 12, 2025 08:18
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 3e6d2eb to 3699968 Compare March 13, 2025 07:30
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 3699968 to 9cfc142 Compare March 14, 2025 07:09
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 9cfc142 to 809f150 Compare March 14, 2025 07:45
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 809f150 to 618e3cf Compare March 14, 2025 07:46
@thomasleese thomasleese force-pushed the redesign-patient-session branch from a4b86af to 592ac27 Compare March 14, 2025 08:27
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 592ac27 to 8f1b43d Compare March 14, 2025 08:46
This adds a new component that renders the patient summary information
shown on the side of the patient session page containing the name, date
of birth, address and a link to the full record.
This refactors the helper used to generate a status tag for a consent
response to match the latest designs in the prototype.
This adds a component that renders the table of consent responses, which
comes from the existing `AppPatientPageComponent`.
This adds a component that renders the consent section of the patient
session page, containing the consent card, gillick assessments and
health answers.
This refactors the component to simplify its use and make it work
in a similar way to the `AppVaccinateFormComponent`.
This component renders a list of triage notes and replaces the existing
`AppTriageNotesComponent` to match the latest designs in the prototype.
@thomasleese thomasleese force-pushed the redesign-patient-session branch from 06cfc8a to ff34e0a Compare March 14, 2025 14:43
@thomasleese thomasleese marked this pull request as ready for review March 14, 2025 14:44
This adds a component that renders the triage section of the patient
session page, containing the consent card, gillick assessments and
health answers.
From `AppSimpleStatusBannerComponent` as the link will show instead in
the triage section.
This refactors the component to handle the creation of the default
`VaccinateForm` object to simplify the `AppPatientPageComponent` in
preparation for its removal.
This adds a component that renders the record section of the patient
session page, containing the pre-screening questions and vaccinate form.
And move these methods in to the `VaccinesHelper`.
This adds the functionality to render the location of a vaccination
record to be used in multiple places in the service.
This updates the component to match the latest designs in the prototype
where the date, location, programme and outcome is shown.
This adds a component which renders the programme outcome section of the
patient session page, which lists the vaccination records for the
patient.
This is no longer being used as it's been replaced with separate patient
session components. This component doesn't follow the latest designs in
the prototype.
This is no longer being used so it can be safely removed.
It's no longer being used so it can be safely removed.
We no longer have a single status for patient sessions and this is no
longer be used so it can be safely removed.
<% end %>

<% if (notes = gillick_assessment.notes).present? %>
<p class="nhsuk-body"><%= notes %></p>
Copy link
Member

Choose a reason for hiding this comment

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

class="nhsuk-body" is a no-op in our app

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.

2 participants