Role-based UI: hide, lock, deny
Every screen has an access level per role: none, view, edit (and approve in the permission matrix).
- None inside a screen: hide. Do not render the menu item, button or section. Do not show it disabled.
- View: lock. Show the
PermissionState kind="lock"banner at the top, render fields asLockedFieldorreadOnly, hide save and edit buttons. Values stay readable and copyable. - None for a whole screen reached by link: deny. Show
PermissionState kind="denied"with "Go to my home screen" and "Compare roles". - Staff looking at patient screens: preview.
kind="preview"; patient actions (book, pay, send, sign) are blocked. - Restricted charts: break the glass.
BreakTheGlassDialogasks for a reason; access is written to the audit log (AuditLogRowaction btg). - The "Viewing as"
RoleSwitcherpreviews another role for the session only and never grants rights.