Skip to content

New patient session designs#6430

Closed
murugapl wants to merge 7 commits intonextfrom
new-patient-session-designs
Closed

New patient session designs#6430
murugapl wants to merge 7 commits intonextfrom
new-patient-session-designs

Conversation

@murugapl
Copy link
Copy Markdown
Contributor

@murugapl murugapl commented Mar 25, 2026

  • Aligns the patient session page with the updated design for sessions, sharing the same blue banner design making both views part of a cohesive, related whole.
  • The overall patient status is now reflected at the top of the page, playing back any previous vaccination outcomes for the child in this session. Only this card has a prominent card heading with coloured background, that matches the programme status tag seen elsewhere across the service.
  • Gillick, PSD and registration statuses are pulled out into their own cards, and it is now possible to register a child without going to a separate page.

Jira Issue - MAV-4846

Screenshots

...

@murugapl murugapl force-pushed the new-patient-session-designs branch from 9fd2d26 to 14b8775 Compare March 31, 2026 14:08
@murugapl murugapl force-pushed the new-patient-session-designs branch from 14b8775 to 81448fe Compare April 13, 2026 11:41
@murugapl murugapl changed the base branch from main to next April 13, 2026 11:41
@murugapl murugapl marked this pull request as ready for review April 13, 2026 11:42
@murugapl murugapl requested a review from a team as a code owner April 13, 2026 11:42
@murugapl murugapl added this to the v7.10.0 milestone Apr 13, 2026
Copy link
Copy Markdown
Contributor

@paulrobertlloyd paulrobertlloyd left a comment

Choose a reason for hiding this comment

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

First pass; can I review it again once we have the sticky header?

end

def action_link_text
"View child's #{programme.name} record"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"View child's #{programme.name} record"
"View childs #{programme.name} record"

"#{patient.given_name} was vaccinated on #{record&.performed_at&.to_fs(:long)}."
end
when "needs_triage"
"You need to decide if it's safe to vaccinate."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"You need to decide if it's safe to vaccinate."
"You need to decide if its safe to vaccinate."

<% end %>
<% elsif latest_triage.nil? || latest_triage.keep_in_triage? %>
<% if helpers.policy(Triage).new? %>
<p>You need to decide if <%= patient.full_name %> is safe to vaccinate.</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<p>You need to decide if <%= patient.full_name %> is safe to vaccinate.</p>
<p>You need to decide if <%= patient.given_name %> is safe to vaccinate.</p>

The national reporting teams uses the same vaccination table but requires more details on vaccination records like
location and source, whereas full-fat Mavis doesn't need so much information. The new `show_details` arg controls
whether to show or hide this info.
Shows the programme status (heading with colour, contextual detail text, vaccination outcomes table, and action link) for a patient on the session patient show page. This card  links to the respective programme tab in the child’s record. Eventually this will be the only card on the page with a coloured heading so various statuses (consent, triage, etc) do not compete for attention and the programme status for the child is reflected right at the top.

MAV-4846
We no longer show the coloured heading with consent/triage status, and we now use the new
AppActionLinkComponent instaed of buttons for actions like recording a new response
This component is now broken out from the consent card and is shown as a standalone card on the patient session page.
Slight updates to wording, and uses new AppActionLinkComponent for actions.
Shows a PSD status card ("PSD added" / "PSD not added") on the patient session page, only rendered when the session has PSD enabled.
Shows a registration card on the patient session page for sessions that require registration. Displays a form to mark the child as attending or absent when not yet registered, a status summary with an update link when already registered, and a completion message when the session is done
Make the patient session banner sticky as the user scrolls and use the same design as for session pages. The banner should collapse showing minimal information as the user scrolls
@murugapl murugapl force-pushed the new-patient-session-designs branch from 81448fe to 92d108c Compare April 13, 2026 16:47
@murugapl
Copy link
Copy Markdown
Contributor Author

First pass; can I review it again once we have the sticky header?

It should be sticky I think! You may need to restart server as it was a new stylesheet

@murugapl murugapl closed this Apr 14, 2026
@murugapl
Copy link
Copy Markdown
Contributor Author

murugapl commented Apr 14, 2026

Split into separate PRs: #6588 #6587 #6586 #6585 #6584 #6583

@thomasleese thomasleese deleted the new-patient-session-designs branch April 23, 2026 15:15
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