Skip to content

IR(ME)R authorisation: permissions, change authorised mammographer, show authorised mammographer in the right places - #401

Open
rivalee wants to merge 66 commits into
mainfrom
irmer-authorise
Open

rivalee wants to merge 66 commits into
mainfrom
irmer-authorise

Conversation

@rivalee

@rivalee rivalee commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

This PR updates the review medical information page and related pages to support IR(ME)R authorisation when a participant has breast implants or an implanted medical device.

What this work introduces

  • Permission to image implants. This is a distinction between mammographers who are trained to image participants with implants (breast or medical device) and those who are not. Only active (meaning non-removed) implants or devices trigger the requirement, so if an implant or medical device was removed, there's no special permission required for imaging.
  • Authorised mammographer. Consistent language for the mammographer who holds the required training or permission to take these images.
  • "Change mammographer" form. Lets the user choose an authorised mammographer (or record another person by name) when the logged-in user isn't permitted to image the implants. Changing the mammographer shows a success banner confirming the update.
  • Blocking notice / inset text. Where the logged-in user can't image the implants and nobody suitable is chosen to take the images, the page shows an inset notice explaining why and offers "Change mammographer" or "exit the appointment", preventing the section from being completed until resolved.

Where authorised mammographer is shown:

  • In the screening workflow primary action button
  • Take images page
  • Check information page
  • Appointment tab and images tab of a completed appointment
  • Names use the same reversed format (SURNAME, First) as participant names elsewhere in the service (the only place the F. Berry name formatting is used is in the imaging flow, for reasons of space).

Screenshots

Screenshot 2026-09-16 at 15 38 28

Mammographer with permission

Screenshot 2026-09-16 at 15 23 42

Mammographer without permission

Screenshot 2026-09-16 at 15 29 39

Change mammographer form

Screenshot 2026-09-16 at 15 33 49

Success banner

Screenshot 2026-09-16 at 15 34 02

Take images step with authorised mammographer row

Screenshot 2026-09-16 at 15 30 19

Check information page with authorised mammographer row

Screenshot 2026-09-16 at 15 30 30

Appointment tab showing appointment runner and authorised mammographer

Screenshot 2026-09-16 at 15 31 14

Take images tab showing authorised mammographer

Screenshot 2026-09-16 at 15 31 26

@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-qtduvv August 10, 2026 12:53 Inactive
@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-qtduvv August 10, 2026 13:56 Inactive
@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-qtduvv August 12, 2026 09:55 Inactive
@rivalee
rivalee marked this pull request as ready for review August 18, 2026 13:55
Comment thread app/assets/javascript/expandable-sections.js Outdated
Comment thread app/assets/javascript/expandable-sections.js Outdated
Comment thread app/assets/javascript/expandable-sections.js Outdated
Comment thread tests/e2e/appointment.spec.js Outdated
Comment thread tests/e2e/appointment.spec.js Outdated
Comment thread app/views/appointments/review-medical-information.html Outdated
Comment thread app/views/appointments/review-medical-information.html Outdated
Comment thread app/views/appointments/review-medical-information.html Outdated
Comment thread app/views/appointments/review-medical-information.html Outdated
Comment thread app/views/appointments/review-medical-information.html Outdated
Comment thread app/views/appointments/review-medical-information.html Outdated
rivalee and others added 19 commits September 8, 2026 13:35
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
Co-authored-by: Danny Chadburn <contentuk@gmail.com>
@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-tfh7cz September 15, 2026 08:53 Inactive
@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-tfh7cz September 15, 2026 13:32 Inactive
@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-tfh7cz September 15, 2026 14:43 Inactive
@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-tfh7cz September 16, 2026 08:49 Inactive
@edwardhorsford
edwardhorsford changed the base branch from main to 15-sept-misc-fixes September 16, 2026 09:30
@edwardhorsford
edwardhorsford changed the base branch from 15-sept-misc-fixes to main September 16, 2026 09:30
… ids

Gate on canUserScreenAppointment rather than assuming the viewer lacks
permission. Nominees come from users with implantImaging and are stored as
operatorId (or operatorOtherName for free text), rendered via getUsername.
Modal fields live on appointment.operatorTemp, validation added, bespoke
returnPath/context params replaced with the referrer chain, and the
duplicated block on review-medical-information extracted to an include.
@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-tfh7cz September 16, 2026 11:08 Inactive
@edwardhorsford
edwardhorsford temporarily deployed to manage-breas-irmer-auth-tfh7cz September 16, 2026 11:32 Inactive
@rivalee rivalee changed the title IRMER authorisation – change content on medical info button IRMER authorisation: permissions, change authorised mammographer, show authorised mammographer in the right places Sep 16, 2026
@rivalee rivalee changed the title IRMER authorisation: permissions, change authorised mammographer, show authorised mammographer in the right places IR(ME)R authorisation: permissions, change authorised mammographer, show authorised mammographer in the right places Sep 16, 2026
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.

3 participants