Skip to content

Architecture / Decision records / ADR-HIS-117

ADR-HIS-117 The audit and governance screens: how they are entered, the stated purpose of every audit read, names beside the audit record, and what they leave to contracts not yet written

Status Accepted
Decided 2026-12-01 by session RC-3-S23
Record Drafted 2026-12-01; approved 2026-12-02 by the Enterprise Architecture Board
Where the rule lives web/domains/ess/UI-ESS-008/ (handoff.ts, AuditWorkspace.tsx, model.ts, people.tsx, dialogs.tsx) and web/domains/ess/UI-ESS-012/ (GovernanceRegisters.tsx, RecordDetail.tsx, dialogs.tsx)

Context

RC-3-S23 builds the audit search and review workspace UI-ESS-008 and the governance registers UI-ESS-012. Other screens will enter them, and they link out to screens not yet built:

  • OV-14: UI-HIM-012 opens the one patient access report with the patient already selected.
  • OV-116: UI-ESS-005 opens the audit query filtered to one emergency access session.
  • OV-19: UI-ISE-011 opens a decision record from a dependency or a risk acceptance.
  • UI-ESS-008 opens a decision trace in UI-ESS-003 and an emergency access session in UI-ESS-005.

A patient identifier must not be put in a URL (ADR-HIS-078 point 2, ADR-HIS-109 point 2).

The contracts also leave four things open:

  • The audit API refuses every read without a stated purpose (queryPurpose, PR-AUD-002-2). The purpose is a code of the "audit access purpose value set" (D10-ESS 7.3), which is governed terminology that no contract publishes yet.
  • An audit event names the patient by enterprise person identifier and the actor by account identifier. The brief asks for the patient's name and second identifier (PH-01) and for the actor's identity.
  • The release of an evidence hold needs a second person in place, who is not the releaser (FR-ESS-AUD-003 part 6.7, PR-AUD-003-4).
  • The ownership register of data domains (FR-ESS-DGV-001 part 6.1) has no contract. MOD-ESS-011 is in no slice's contracts. The governance decision log of the same requirement (part 6.3) is in the decision register of api-catalogue.v1.

Options considered

  1. Every entry by URL, the patient included. Simple, but it puts a patient identifier in the address bar, the history and the logs, against ADR-HIS-078.
  2. Every entry by window memory, as the ADM screens do. A task, a notification or a link from another domain cannot carry it, and session and record identifiers carry no patient data.
  3. Window memory for a patient, URL for operational identifiers, as ADR-HIS-113 (pull request #285 of RC-3-S20, not yet merged) does for the integration consoles. Names are read beside the record, and the screens show nothing a missing contract would have to supply.

Decision

Option 3.

  1. Entry. These are the public entries of the two screens:
  2. UI-ESS-008, with a patient: the screen that leaves calls handOff("UI-ESS-008", { patientRef }) under Symbol.for("his.ess.screen-handoff"), then navigates to /ess/ui-ess-008 through the shell's router. The workspace opens on the patient access report for that patient.
    • The value is taken once, and removed after the task so a StrictMode double render reads it too.
    • The patient stays in the view's memory. It is never written to the URL, even when the report is opened from a search result.
  3. UI-ESS-008, with a session: /ess/ui-ess-008/session/<sessionId> opens the search with the emergency access session filled in (OV-116).
  4. UI-ESS-012: /ess/ui-ess-012/record/<recordId> opens a decision record, in the tab of its record type.
  5. What these screens expect of others:
    • UI-ESS-003 serves /ess/ui-ess-003/decision/<decisionId>.
    • UI-ESS-005 serves /ess/ui-ess-005/session/<sessionId>.
    • UI-ISE-003 serves ?view=governance (ADR-HIS-113 point 1).
  6. The stated purpose.
  7. UI-ESS-008 asks for the purpose once, at the top of the workspace: a code and optional text. It sends both with every read of audit data: search, patient access report, review views and export. Nothing is sent before a purpose is chosen.
  8. Beside the field the screen says that every search, report, review view and export is recorded with its criteria and this purpose (BR-ESS-021).
  9. Until the value set is published, the screen offers six codes:
    • privacy-investigation (the code of the contracts' examples);
    • security-investigation;
    • access-review;
    • patient-access-request;
    • external-audit;
    • legal-request.
  10. The audit service accepts any code, so publishing the value set changes only PURPOSES in model.ts, and later screens that read audit use the same codes.
  11. Names beside the audit record.
  12. The patient's name and second identifier come from contracts/adm patient-identity.v1 readPerson. The second identifier is the facility MRN, else the person identifier.
  13. The actor's name comes from identity.v1 readAccount.
  14. Each reference is read once per view and held in memory only. The providers audit each read.
  15. When a name cannot be read, the identifier is shown. This differs from ADR-HIS-078 point 3: here the identifier is itself part of the audit evidence that an authorized reviewer is entitled to see.
  16. A service acting for a person shows both.
  17. Evidence holds.
  18. "Release evidence hold" follows FR-ESS-AUD-003 part 6.7, not the brief's assumption. It is offered only to:
    • the privacy officer or the legal and compliance officer who placed the hold, in the same role;
    • a privacy officer, for a hold a security officer placed.
  19. The user's hold role is read from the name of the active role, so the screen can say why the action is unavailable. The provider decides.
  20. The second person authorizes in place through the secondPerson hook of ADR-HIS-071. Their signatureId goes in secondApproval, and the screen refuses a second person who is the releaser before anything is sent.
  21. The release carries the version read as If-Match. The confirmation names both people.
  22. Integrity marks. The workspace reads the verification runs once. It flags every search result whose chain and sequence fall in the range of a failed run (PR-AUD-002-1), and names those ranges above the views.
  23. The governance registers.
  24. The ADR register and the governance decision log are one register with a record type (api-catalogue.v1). Each type keeps its approving body:
    • the Enterprise Architecture Board for architecture decisions;
    • the Data Governance Council for governance decisions.
  25. Accept, reject and supersede ask for the PH-03 sign step every time, with ADR-HIS-071's jti fallback for the signatureId. The author of a record is never offered the decision.
  26. Links are added only while a record is Proposed, because the contract changes no other record.
  27. A record is superseded by naming another Accepted record of the same type. The register shows the link both ways.
  28. What the screens do not invent.
  29. The data domain entries of the ownership register are not shown, and neither are their lifecycle actions:

    • "Propose entry", "Propose change to entry", "Approve entry", "Return entry", "Retire entry" and "Record review";
    • the "Owner inactive" and "No steward" flags.

    The tab says the register is not available in this release, and shows the governance decision log. - The auditor's remaining grant time is not shown: no contract carries it. - The patient access report is printed by the browser, with the patient's name, second identifier and "Emergency access" repeated at the top of every page. The machine-readable export is the audit export.

Rationale

  • Keeping patient identifiers out of URLs is already the rule for the ADM screens. A HIM screen handing a patient to this workspace is the same case.
  • Session and record identifiers are already in tasks and notifications, so putting them in a URL adds nothing.
  • One purpose for the whole workspace is how reviewers work: one investigation or request at a time. Sending it with every read is what PR-AUD-002-2 and BR-ESS-021 need.
  • Reading names beside the record keeps the audit API free of demographic data (FR-ESS-AUD-001 part 13) and serves the brief's PH-01 display.
  • A screen that showed entries without a contract would have to invent them. Saying so in the tab is honest and safe.

Consequences

  • When UI-HIM-012, UI-ESS-005, UI-ESS-003 and UI-ISE-011 are built, they use these entries and serve the ones point 1 expects.
  • The audit access purpose value set, once published, replaces the six codes (handover question 1 of RC-3-S23).
  • The ownership register needs a contract for MOD-ESS-011 (FR-ESS-DGV-001 parts 6.1, 6.5 and 6.6). The screen then adds the entry list, detail, history and lifecycle actions in the tab that holds the decision log now.
  • handoff.ts, api/http.ts and the layout pieces of ui.tsx move to the shell SDK and the design system with the other copies.