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¶
- 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.
- 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.
- 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.
- Entry. These are the public entries of the two screens:
- UI-ESS-008, with a patient: the screen that leaves calls
handOff("UI-ESS-008", { patientRef })underSymbol.for("his.ess.screen-handoff"), then navigates to/ess/ui-ess-008through 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.
- UI-ESS-008, with a session:
/ess/ui-ess-008/session/<sessionId>opens the search with the emergency access session filled in (OV-116). - UI-ESS-012:
/ess/ui-ess-012/record/<recordId>opens a decision record, in the tab of its record type. - 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).
- UI-ESS-003 serves
- The stated purpose.
- 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.
- 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).
- 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.
- The audit service accepts any code, so publishing the value set changes only
PURPOSESinmodel.ts, and later screens that read audit use the same codes. - Names beside the audit record.
- The patient's name and second identifier come from
contracts/admpatient-identity.v1readPerson. The second identifier is the facility MRN, else the person identifier. - The actor's name comes from identity.v1
readAccount. - Each reference is read once per view and held in memory only. The providers audit each read.
- 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.
- A service acting for a person shows both.
- Evidence holds.
- "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.
- 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.
- The second person authorizes in place through the
secondPersonhook of ADR-HIS-071. TheirsignatureIdgoes insecondApproval, and the screen refuses a second person who is the releaser before anything is sent. - The release carries the version read as
If-Match. The confirmation names both people. - 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.
- The governance registers.
- 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.
- Accept, reject and supersede ask for the PH-03 sign step every time, with ADR-HIS-071's
jtifallback for thesignatureId. The author of a record is never offered the decision. - Links are added only while a record is Proposed, because the contract changes no other record.
- A record is superseded by naming another Accepted record of the same type. The register shows the link both ways.
- What the screens do not invent.
-
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.tsand the layout pieces ofui.tsxmove to the shell SDK and the design system with the other copies.