MOD ANL 009 AIG
Domain specifications / D08-ANL / 5. Detailed Functional Requirements / 5.9 Module Specification: Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows
5.9 Module Specification: Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows¶
5.9.1 Module Overview¶
Module ID: MOD-ANL-009
Purpose:
Provide the governance, registry, access gateway and human-review controls under which optional AI features may operate. AI is assistive only; it must not autonomously diagnose, prescribe, change orders, sign notes, administer medication or modify the legal clinical record.
Business Capabilities: - CAP-ANL-009 Governed AI
Primary Actors: - ACT-ANL-011 AI Governance Reviewer - ACT-ANL-012 AI-Assisted Workflow User - ACT-ANL-013 Data Scientist / Model Developer - ACT-ANL-015 AI Service Identity
Dependencies: - MOD-ANL-005, MOD-ANL-007, MOD-ANL-008 - Domain 10 (authorization policy decision, consent, audit); Domain 2 (isolated compute, secrets, network egress control); owning domains' APIs (Domains 3, 6 and others) for any human-approved write
5.9.2 Functional Area: AI Use-Case Governance and Model Registry; AI Access Gateway; Human-Reviewed AI-Assisted Workflows¶
Functional Area ID: FA-ANL-017
Description:
Approval of AI use cases and versioning, evaluation and monitoring of models, prompts, retrieval corpora, evaluation datasets and releases.
Scope: - Included: use-case register, prohibited-action list, assessment records, model registry, monitoring. - Excluded: clinical decision support rules (Domain 3) and pathway logic (Domain 9), which are governed clinical content and not AI under this module.
Functional Area ID: FA-ANL-018
Description:
The policy gateway through which every AI service obtains scoped, logged, purpose-limited access to data.
Scope: - Included: authentication of user and workload, policy evaluation, short-lived scoped credentials, interaction logging, allowlists. - Excluded: the policy decision service (Domain 10) and network egress enforcement (Domain 2).
Functional Area ID: FA-ANL-019
Description:
Presentation of labelled AI output for human review and the controls that keep AI out of the record until a human signs off.
Scope: - Included: labelling, disposition capture, provenance hand-off, safe degradation. - Excluded: the host workflow screens and the record commit, which belong to the owning domain.
5.9.3 Detailed Requirements¶
Requirement FR-ANL-AIG-001: AI Use-Case Register, Prohibited Actions and Pre-Deployment Assessment¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ANL-AIG-001 |
| Requirement Name | AI Use-Case Register, Prohibited Actions and Pre-Deployment Assessment |
| Requirement Type | Functional |
| Module | Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows |
| Functional Area | FA-ANL-017 AI use-case governance and model registry |
| Priority | Could (AI is an optional capability under PRS section 13.2); this control is mandatory whenever any AI feature is enabled |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS section 13.2 (AI and automation boundary; assessment bullet); PRS section 2.2 (out of scope: autonomous diagnosis, prescribing or clinical action); PRS section 19.3 "AI roadmap"; REF-002 section 6 "Clinical safety and human authority"; REF-003 ADR-007 |
| Related Business Rule | BR-ANL-017, BR-ANL-018 |
| Related Workflow | WF-ANL-005 |
1. Requirement Statement
The system shall maintain a register of AI use cases in which each use case must be approved before any model serves it, shall reject any use case or runtime request that would autonomously diagnose, prescribe, change orders, sign notes, administer medication or modify the legal clinical record, and shall require recorded privacy review and security threat modelling for every use case and, for clinical AI, a clinical safety assessment and an applicable medical-device / software regulation assessment.
2. Business Rationale
AI output that is wrong but plausible can harm patients and expose data. A closed list of approved use cases, with assessments recorded before deployment, keeps AI inside boundaries the hospital has consciously accepted.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-ANL-013 or ACT-ANL-017 AI Use-Case Owner (by default the product owner of the host workflow) | Create use-case proposal and material changes; ask for suspension | Any AI feature; the owner cannot assess or approve their own use case |
| ACT-ANL-011 AI Governance Reviewer | Approve / Reject / Suspend / Resume / Retire | Reviewer for each required assessment; not the proposer. The security reviewer records the external-hosting assessment |
| Clinical Governance Committee, through a clinical governance approver (ACT-CLI-009) | Approve clinical AI use cases | Required for the Clinical support class |
4. Preconditions - The hospital has decided its AI roadmap: permitted use cases, governance, model hosting and prohibited actions (PRS section 19.3).
5. Trigger - New use-case proposal; material change to a use case; periodic review; incident.
6. Functional Behaviour
- The system records for each use case: purpose, users, host workflow, data scope, outputs, human reviewer role, failure behaviour, risk class (Non-clinical or Clinical support) and owner.
- The system holds a prohibited-action list that cannot be configured away and checks every proposal against it.
- The system requires the applicable assessment records to be attached and approved before the use case can become Approved.
- The system limits initial use cases to categories the hospital has approved; the PRS names document classification, coding assistance, draft summarization, search assistance, operational forecasting and data quality support as candidate initial safe use cases.
- The system sets a review date for each approved use case and flags overdue reviews.
- The system lets a reviewer suspend a use case immediately, which disables it at the gateway.
- The system holds each use case with the attributes of DE-ANL-021. The risk class is one of two: Non-clinical or Clinical support; a machine decision that affects care without a person is not a class but is prohibited (BR-ANL-017). While DEC-ANL-001 permits non-clinical use only, a Clinical support use case can be proposed and assessed but not approved: "This risk class is not yet permitted for use." The categories of part 6.4 are the approved list of CFG-ANL-023, shown read-only.
- A material change to an Approved use case (purpose, category, outputs, data read, risk class, hosting, host workflow or facilities) makes a new use-case version, which goes through assessment and approval again; the current version stays Approved and keeps serving until the new one is approved, and is then Retired.
- A Suspended use case is resumed only by an AI governance reviewer, with the cause recorded as resolved, current assessments and a review date in the future, and with the sign step; it returns to Approved and is served again by its Deployed version.
- Suspension of one use case is done only on the AI governance console (UI-ANL-012) by the AI governance reviewer; the use-case owner can ask for it, which creates a review task. The switch that stops all AI use belongs to the analytics platform administrator (FR-ANL-AIG-005) on the same console. The Domain 10 configuration screen lists CFG-ANL-014 read-only.
- External hosting (DEC-ANL-008) needs an external-hosting assessment recorded on the use case by the security reviewer of AI governance, for the security officer: provider, the no-training and no-retention terms, decision, date and evidence. It is refused for a host workflow on a critical path, which is a host workflow of a Tier 1 or Tier 2 critical flow (PRS section 12.1): "External hosting is not allowed for a critical workflow." A use case that reads identifiable data for development or evaluation cannot be externally hosted (DEC-ANL-007).
- Problems with a use case are captured as reported issues: a "Report a problem" made on an output in the draft review component (FR-ANL-AIG-003) and AI incidents escalated through clinical safety (section 11.2). Each is listed with the use case and creates a review task for the AI governance reviewer, who decides whether to suspend.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Use-case description and classification | Structured record (DE-ANL-021) | Yes | Risk class Non-clinical or Clinical support; category from CFG-ANL-023 | What and for whom |
| Owner | Person and role | Yes | Active person; default the product owner of the host workflow | Accountable owner (ACT-ANL-017) |
| Hosting and external-hosting assessment | Choice; assessment record | Yes; the assessment when External service | Not for a host workflow of a Tier 1 or Tier 2 critical flow | Where the model runs |
| Human reviewer role | Role reference | Yes | Valid role | Who signs off output |
| Failure behaviour | Text | Yes | States non-AI fallback | Safe degradation |
| Assessment records | Document references | Yes | All required types present and approved | Privacy, security, clinical safety, regulatory |
| Review date | Date | Yes | Future | Next review |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-AIG-001-1 | Prohibited-action check precedes any approval step | Prohibited use cases cannot be approved |
| PR-AIG-001-2 | Clinical classification adds clinical safety and regulatory assessment as mandatory | BR-ANL-018 |
| PR-AIG-001-3 | Suspension propagates to the gateway allowlist immediately | Use case stops being served |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| AI use-case register | Table / API | Governance, audit, gateway | Approved, rejected, suspended use cases |
| Assessment evidence index | Records | Clinical safety, privacy, security | Links to evidence |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Proposal includes a prohibited action | Prohibited list | Rejected | "Use case includes a prohibited autonomous action." |
| Assessment missing | Completeness | Approval blocked | "Assessment X required." |
| Review overdue | Date check | Flag; escalation to governance | Notification |
| Clinical support class while only non-clinical use is permitted | DEC-ANL-001 | Approval blocked | "This risk class is not yet permitted for use." |
| External hosting for a critical workflow | Part 6.11 | Approval blocked | "External hosting is not allowed for a critical workflow." |
11. State and Lifecycle Behaviour
A use case moves Proposed, Under Assessment, Approved, Suspended, Retired or Rejected, by the AI Use Case transitions and diagram of section 4.3, including resume from Suspended to Approved by the reviewer with the sign step, and a new version on a material change while the current version serves.
12. Audit Requirements
Proposal, assessment, approval, rejection, suspension and retirement are audited with actor, time, reason and evidence references.
13. Security and Privacy Requirements
The register is Internal. Assessment evidence may be Confidential. The hazard log entry for each clinical AI use case is linked (SAFE-001, primary Domain 3 / clinical safety governance).
14. Acceptance Criteria
- AC-01: Given a proposal that would let AI place or change an order without human sign-off, when submitted, then it is rejected.
- AC-02: Given a clinical use case without a clinical safety assessment, when approval is attempted, then it is blocked.
- AC-03: Given an approved use case, when a reviewer suspends it, then subsequent gateway requests for it are refused.
- AC-04: Given the register, when inspected, then every approved use case has all required assessment records and a review date.
15. Dependencies and Integration
- Upstream dependencies: clinical safety governance, Security and Privacy Office.
- Downstream dependencies: FR-ANL-AIG-002, 003, 004, 005.
- Required events or APIs: IF-ANL-005; EVT-ANL-006.
16. Open Questions / Assumptions
- DEC-ANL-001 is resolved: release 1 permits non-clinical use cases only; the Clinical support class opens when clinical governance decides.
Requirement FR-ANL-AIG-002: AI Policy Gateway with Scoped, Logged, Purpose-Limited Access¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ANL-AIG-002 |
| Requirement Name | AI Policy Gateway with Scoped, Logged, Purpose-Limited Access |
| Requirement Type | Functional |
| Module | Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows |
| Functional Area | FA-ANL-018 AI access gateway |
| Priority | Could (optional capability); mandatory whenever any AI feature is enabled |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS section 13.2 ("AI services shall access data through scoped, logged APIs and purpose-limited authorization"); contributes to SEC-003, SEC-013, CDS-014 pattern (primary Domains 10 and 3); REF-003 section 13.3 |
| Related Business Rule | BR-ANL-001, BR-ANL-017, BR-ANL-022 |
| Related Workflow | WF-ANL-006 |
1. Requirement Statement
The system shall route every AI service's access to data through a dedicated policy gateway that authenticates the user and the workload, evaluates purpose and patient scope, issues short-lived, least-privilege credentials for scoped APIs, restricts calls to approved use cases, model versions and tools, minimizes the data sent to a model, and logs every interaction.
2. Business Rationale
An AI service with broad data access is a privacy and security exposure. Mediating all access through one enforcement point makes AI access no wider than the requesting human's and makes it auditable.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-ANL-015 AI Service Identity | Read via scoped APIs only | Approved use case; credentials from gateway; no database access |
| ACT-ANL-012 AI-Assisted Workflow User | Invoke approved AI function | Authorized for function, patient and purpose |
| ACT-ANL-014 Platform Administrator | Maintain allowlists | Changes approved by ACT-ANL-011 |
4. Preconditions - Use case Approved and model version Deployed. Domain 10 policy decision service available.
5. Trigger - An AI-assisted function is invoked.
6. Functional Behaviour
- The gateway authenticates the invoking user and the calling workload; an AI protocol or session token alone is not treated as authorization to read or write records.
- The gateway obtains a policy decision for the user, purpose, patient scope and requested data classes, including consent and sensitivity labels.
- The gateway issues short-lived credentials limited to the APIs, patient and data classes the task requires; the AI service has no unrestricted database access.
- The gateway permits retrieval only from approved, versioned sources and returns source references for provenance.
- The gateway enforces allowlists of use cases, model versions and tools, and blocks everything else.
- The gateway applies data minimization before data is sent to a model and prevents uncontrolled training on or retention of the data by the model service.
- The gateway exposes no write operation to any clinical, administrative or financial record; AI services have read-scoped access only.
- The gateway logs task identity, user, purpose, patient scope, data references, model and prompt versions, tool or API calls, output reference and outcome.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| User identity and session | Token | Yes | Valid, unexpired | Who is asking |
| Workload identity | Service credential | Yes | Registered AI service | What is calling |
| Use-case identifier | Identifier | Yes | Approved | Why |
| Patient scope | Identifier(s) | Where patient data used | User authorized for patient | Whose data |
| Purpose of use | Coded value | Yes | Permitted for use case | Purpose |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-AIG-002-1 | Effective AI access = intersection of user's authorization and use-case data scope | AI never sees more than the user may |
| PR-AIG-002-2 | Credentials expire after the configured short lifetime and are revocable | Limited exposure |
| PR-AIG-002-3 | Denied or failed policy evaluation returns no data | Fail closed |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Scoped credential | Short-lived token | AI service | Task-limited access |
| AI interaction log entry | Audit / log record | Domain 10 audit service; AI governance | Full interaction record |
| Denial response | Error | Host workflow | Reason category, for the log only; the host shows the one unavailable message |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Use case not approved or suspended | Allowlist | Refused | "AI assistance unavailable. Continue manually." |
| User not authorized for patient | Policy decision | Refused; no data retrieved; reason category logged | "AI assistance unavailable. Continue manually." The reason is kept in the log only, so the message reveals nothing about the patient |
| Policy service timeout | Dependency | Refused (fail closed) | "AI assistance unavailable. Continue manually." |
| Tool not on allowlist | Allowlist | Call blocked and logged | Security event |
11. State and Lifecycle Behaviour
No record state is changed. Credentials have a bounded lifetime and are revoked on session end or suspension.
12. Audit Requirements
Every request, decision, credential issue, data reference, tool call and denial is logged with user, workload, time and correlation identifier. Logs are forwarded to the Domain 10 audit service and are tamper-evident.
13. Security and Privacy Requirements
Least privilege; purpose limitation; consent-aware. Where an externally hosted model is approved, by the external-hosting assessment recorded on the use case (FR-ANL-AIG-001 part 6.11), controlled egress and contractual and technical prohibition of training or retention apply, and no critical clinical workflow may depend on it (DEP-006): an external service is never used by a host workflow of a Tier 1 or Tier 2 critical flow. Prompt injection is treated as a threat in the security threat model.
14. Acceptance Criteria
- AC-01: Given a user not authorized for patient P, when an AI function is invoked for P, then no data about P is retrieved and the denial is logged.
- AC-02: Given an AI service credential, when it is used after expiry or outside its scope, then the call is refused.
- AC-03: Given any AI interaction, when the log is inspected, then user, purpose, model version, data references and outcome are recorded.
- AC-04: Given an AI service, when it attempts a write to a clinical record API or a direct database connection, then the attempt is refused.
15. Dependencies and Integration
- Upstream dependencies: Domain 10 identity, policy decision, consent and audit; Domain 2 secrets and network controls.
- Downstream dependencies: FR-ANL-AIG-003, FR-ANL-AIG-005.
- Required events or APIs: IF-ANL-005; owning-domain read APIs (for example scoped FHIR access).
16. Open Questions / Assumptions
- DEC-ANL-008 is resolved: hospital-controlled by default; an external service only with the external-hosting assessment and never on a critical path.
- Credential lifetime is proposed (CFG-ANL-013).
Requirement FR-ANL-AIG-003: AI-Drafted Labelling and Human Review Before Commitment¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ANL-AIG-003 |
| Requirement Name | AI-Drafted Labelling and Human Review Before Commitment |
| Requirement Type | Functional |
| Module | Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows |
| Functional Area | FA-ANL-019 Human-reviewed AI-assisted workflows |
| Priority | Could (optional capability); mandatory whenever any AI feature is enabled |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS section 13.2 ("AI-generated content shall be labeled as machine-generated and require review/sign-off by an authorized human before becoming part of the clinical record or triggering care"); contributes to EHR-003, EHR-004 (primary Domain 3) and RCM-007 (primary Domain 6); REF-003 section 13.3 |
| Related Business Rule | BR-ANL-002, BR-ANL-019, BR-ANL-020 |
| Related Workflow | WF-ANL-006 |
1. Requirement Statement
The system shall label all AI-generated content "AI-drafted" with its use case, model version and source references until a person accepts it, shall present it to an authorized human for review, shall record the human's disposition (accepted, edited and accepted, accepted · not committed, rejected or expired), and shall not itself save, sign, release, schedule or otherwise commit any content to a domain record; a commit occurs only through the owning domain's API under the reviewing human's identity and authorization.
2. Business Rationale
The human remains accountable for the record and for care. Labelling and recorded disposition make that accountability explicit and let the hospital measure how AI output is actually used.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-ANL-012 AI-Assisted Workflow User | Review; accept / edit / reject | Holds the reviewer role named in the use case and the owning domain's permission for the record type |
| ACT-ANL-015 AI Service Identity | Create draft output only | Cannot commit |
4. Preconditions - Request passed the gateway (FR-ANL-AIG-002).
5. Trigger - AI output generated in an approved workflow.
6. Functional Behaviour
- The system attaches to each output: the "AI-drafted" label, the time it was drafted and the time up to which its source records were read, use case, model version, prompt or template version, source references and any stated uncertainty or missing data.
- The system supplies the output to the host workflow as a draft that is visually distinct from human-authored content, shown in the AI slot of the host screen. The AI control is offered only to holders of the use case's human reviewer role. If a cited source changes while the draft is open, the slot shows "Sources changed since drafting" and offers "Draft again", which expires the earlier draft.
- The system requires an explicit disposition by the reviewer; there is no default acceptance. Where one request gives several items, such as code candidates or classifications, each item has its own disposition, and there is no select-all or accept-all control.
- On acceptance, the content is inserted into the host's own draft, where it keeps the "AI-drafted" label. The host's own save or sign step submits it to the owning domain's API as the reviewer; the owning domain applies its own validation, authorization and signature rules, stores AI-assisted provenance and shows the committed content as "AI-assisted · accepted by [name] · [date time]", with the use case and model version in its details.
- The system records the disposition Accepted, or Edited and accepted, only when the owning domain returns the record reference, with the extent of human edits where available. If the host draft is discarded or the owning domain refuses the commit, the disposition is "Accepted · not committed".
- An output without disposition expires, with no prompt, when its host item is closed, the window's patient changes, the session ends, the user drafts again or its maximum life is reached (CFG-ANL-024); it survives a screen lock and stays with the user's suspended session at a user switch. It is then retained only in the interaction log. Its disposition is Expired; a rejected output is Rejected, and rejecting needs no reason. The word "Discarded" is not used for either.
- For non-clinical outputs shown on dashboards or queues (forecasts, data quality suggestions), the system labels them "AI-drafted" and never presents them as measured values. They offer the "Report a problem" of part 6.8 instead of "Report a problem with this figure".
- The draft review component offers "Report a problem" on every output. The user gives a category from the fixed list (Wrong content, Missing or wrong source, Unsafe suggestion, Data problem, Other), a short description and, where it applies, ticks "Possible safety issue", which is ticked by default for Unsafe suggestion. The report is logged with the interaction (DE-ANL-023), added to the use case's reported issues and sent to AI governance as a review task; it does not change the disposition, and the user sees "Problem reported. Your decision on the draft is unchanged." A report marked as a possible safety issue also creates a clinical safety incident (section 11.2). A report with the category Data problem on a forecast or data quality suggestion also creates a stewardship item. The list is fixed here and has no configuration item.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| AI output | Text / structured suggestion | Yes | From approved model version | Draft content |
| Reviewer identity | Token | Yes | Holds reviewer role | Who decides |
| Disposition | Enumeration | Yes | Accept, Edit and accept, Reject | Decision of the reviewer; Accepted, Edited and accepted, Accepted · not committed and Expired are set by the system |
| Problem report | Category, text, possible safety issue | No | Category from the fixed list of part 6.8 | "Report a problem" |
| Record reference | Identifier | On acceptance | Returned by owning domain | Link to committed record |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-AIG-003-1 | No commit path exists from the AI service to any domain record | BR-ANL-019 enforced by design |
| PR-AIG-003-2 | Label and provenance are passed to the owning domain with the accepted content | Label persists |
| PR-AIG-003-3 | Suggested codes (coding assistance) are candidates only; the coder decides | RCM-007 human review preserved |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Labelled draft | Structured payload | Host workflow / reviewer | Output with label, version, sources |
| Disposition record | Record | AI governance, audit | Decision and resulting record reference |
| Provenance payload | Structured metadata | Owning domain | AI-assisted provenance for the record |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Reviewer lacks role | Role check | No AI control is offered; a disposition sent anyway is refused and logged | None: the user sees no AI control |
| Owning domain rejects the commit, or the host draft is discarded | Domain validation | Content not committed; disposition recorded as "Accepted · not committed" | Domain's error shown in the host |
| Output lacks source references where the use case requires them | Completeness | Output withheld; reason category logged | "AI assistance unavailable. Continue manually." |
| Accept pressed twice, or the response is lost | Idempotency key | One insertion only | Accept disabled while in progress; after a lost response "Checking whether this was saved" |
11. State and Lifecycle Behaviour
Implements the AI Output states of section 4.3 (Generated, Presented, Inserted, Accepted, Edited and accepted, Accepted · not committed, Rejected, Expired). The committed record's lifecycle belongs to the owning domain.
12. Audit Requirements
Generation, presentation, disposition, edits and the resulting record reference are logged with user, time, model and prompt version and correlation identifier, consistent with clinical record and privacy retention rules (REF-004 section 14.4).
13. Security and Privacy Requirements
Draft outputs containing patient data are Sensitive and visible only to the invoking user, in the window and host item where they were drafted, until they expire (part 6.6). Outputs are not reused for other patients or users.
14. Acceptance Criteria
- AC-01: Given AI-generated draft content, when displayed, printed or exported, then it is labelled "AI-drafted" with use case and model version.
- AC-02: Given a draft with no reviewer disposition, when the session ends, then nothing is committed to any record.
- AC-03: Given an accepted draft, when the committed record is inspected in the owning domain, then the author of record is the reviewing human and AI-assisted provenance is present.
- AC-04: Given the interaction log, when queried, then every output has a disposition of accepted, edited and accepted, accepted · not committed, rejected or expired.
- AC-06: Given accepted content in a host draft, when the host draft is discarded, then nothing is committed and the disposition is "Accepted · not committed".
- AC-05: Given a presented draft, when the user reports a problem, then the report appears in the use case's reported issues and a review task reaches the AI governance reviewer, and the draft's disposition is unchanged.
15. Dependencies and Integration
- Upstream dependencies: FR-ANL-AIG-002.
- Downstream dependencies: owning domains (Domain 3 clinical documentation, Domain 6 coding and document classification, others per use case).
- Required events or APIs: owning-domain write APIs invoked by the host workflow under the user's identity; IF-ANL-005.
16. Open Questions / Assumptions
- ASM-ANL-007: owning domains can store AI-assisted provenance with accepted content and expose it in their record views.
Requirement FR-ANL-AIG-004: Model Registry, Versioning and Monitoring¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ANL-AIG-004 |
| Requirement Name | Model Registry, Versioning and Monitoring |
| Requirement Type | Functional |
| Module | Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows |
| Functional Area | FA-ANL-017 AI use-case governance and model registry |
| Priority | Could (optional capability); mandatory whenever any AI feature is enabled |
| Criticality | High |
| Requirement Status | Draft |
| Source | PRS section 13.2 ("Every model, prompt, retrieval corpus, evaluation dataset and release shall be versioned and monitored for drift, bias, hallucination and failure"); REF-003 section 13.3; REF-002 Domain 8 module "model registry" |
| Related Business Rule | BR-ANL-021 |
| Related Workflow | WF-ANL-005 |
1. Requirement Statement
The system shall maintain a registry in which every model, prompt or template, retrieval corpus, evaluation dataset and release is versioned and linked to its approved use case and evaluation evidence, shall allow only Approved and Deployed versions to be served, and shall monitor each deployed version for drift, bias, hallucination and failure against configured thresholds, alerting reviewers and suspending the version where the rule requires.
2. Business Rationale
Model behaviour changes with data, prompts and versions. Without version control and monitoring, the hospital cannot say which model produced an output or notice when it degrades.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-ANL-013 Data Scientist / Model Developer | Create versions; run evaluations | In the governed workspace |
| ACT-ANL-011 AI Governance Reviewer | Approve / Suspend / Retire | Not the developer of the version |
| ACT-ANL-014 Platform Administrator | Deploy approved versions | After approval only |
4. Preconditions - Use case Approved (FR-ANL-AIG-001). Evaluation datasets prepared under approved governance.
5. Trigger - New or changed model, prompt, corpus or evaluation dataset; scheduled monitoring; monitoring breach.
6. Functional Behaviour
- The system assigns a unique version to each artefact and records its origin, owner, dependencies, intended use case and change description.
- The system records evaluation runs with dataset version, results by task measure and by approved subgroup, and tests for hallucination, missing-data behaviour, prompt injection and data leakage.
- The system requires approval of the evaluation evidence before a version can be deployed.
- The system monitors deployed versions using interaction logs and human dispositions (for example rejection and edit rates), output checks and input distribution measures.
- The system raises an alert when a monitored measure crosses its threshold and suspends the version where the suspension rule is met.
- The system keeps retired versions and their evidence so that any past output can be attributed to the exact versions that produced it.
- The governed workspace uses de-identified data for model development and validation, with pseudonymisation as a treatment of the profile; identifiable data is not used (DEC-ANL-007 class 3; corrected 17 Nov 2026: the earlier text allowed identifiable data with an explicit approval, which the decision does not). Development and evaluation data is requested only on the extract request workspace (UI-ANL-011) in the class AI development and validation; the registry refers to the approved extract and never requests data itself.
- Each deployed version is monitored against the thresholds of CFG-ANL-015. A threshold that is not set blocks deployment; there is no unmonitored deployment.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Artefact and version metadata | Structured record | Yes | Owner, use case, dependencies present | Registry entry |
| Evaluation dataset version | Reference | Yes | Registered; its data source is an approved extract of the class AI development and validation on the extract request workspace (UI-ANL-011; FR-ANL-RDX-002), de-identified and kept in a hospital-controlled environment | Test basis. Otherwise: "Evaluation data needs an approved extract for AI development." |
| Evaluation results | Structured results | Yes | All required tests present | Evidence |
| Monitoring thresholds | Numeric rules | Yes | Approved by reviewer; start from the defaults of CFG-ANL-015 | Drift, bias, hallucination, failure limits; a threshold not set blocks deployment |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-AIG-004-1 | Any change to model, prompt, corpus or evaluation dataset creates a new version | No untracked change |
| PR-AIG-004-2 | Only Deployed versions appear on the gateway allowlist | Unapproved versions cannot serve |
| PR-AIG-004-3 | Monitoring breach meeting the suspension rule sets status Suspended and updates the allowlist | Automatic safe stop |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Model registry | Table / API | AI governance, audit | Versions, status, evidence |
| Monitoring report | Dashboard / report | AI governance, clinical governance | Measures against thresholds |
| Status change event | Event | Gateway, host workflows, reviewers | EVT-ANL-006 |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Deployment requested for an unapproved version | Status check | Refused | "Version not approved." |
| Deployment requested while a monitoring threshold is not set | Completeness (CFG-ANL-015) | Refused | "Monitoring threshold not set." |
| Evaluation missing a required test | Completeness | Approval blocked | "Test X missing." |
| Monitoring data unavailable | Data check | Alert; version treated as unmonitored and escalated to reviewer | Reviewer decides whether to suspend |
11. State and Lifecycle Behaviour
Implements the Model Version states and diagram of section 4.3.
12. Audit Requirements
Registration, evaluation, approval, deployment, suspension, re-approval and retirement are audited with actor, time, reason and evidence references.
13. Security and Privacy Requirements
Production PHI is not used for model training unless explicitly approved under legal, privacy, security and governance policy (REF-004 section 14.3). Evaluation datasets with patient data are Sensitive. The AI interaction log (DE-ANL-023) is Sensitive; its governance view on the AI governance console shows aggregates first (counts and disposition rates by use case, version, facility and period), then an interaction list of references, versions, dispositions and problem reports, never the draft text. Opening an interaction with a patient scope is a drill-down that needs the permission and a purpose of use and is audited; forensic audit searches stay with the Domain 10 audit service. The workspace is a Tier 4 environment isolated from live clinical transactions (PRS section 12.1).
14. Acceptance Criteria
- AC-01: Given a change to a prompt template, when saved for use, then a new version exists and the previous version is unchanged.
- AC-02: Given a version that is not Approved, when deployment is attempted, then it is refused.
- AC-03: Given a deployed version whose monitored measure crosses the suspension threshold, when monitoring runs, then the version becomes Suspended and the gateway stops serving it.
- AC-04: Given a past AI output, when traced, then the exact model, prompt, corpus and release versions are identified.
15. Dependencies and Integration
- Upstream dependencies: FR-ANL-AIG-001; FR-ANL-RDX-002 (development data); Domain 2 isolated compute.
- Downstream dependencies: FR-ANL-AIG-002, FR-ANL-AIG-005.
- Required events or APIs: EVT-ANL-006.
16. Open Questions / Assumptions
- GAP-ANL-006 is closed: common-practice default thresholds and methods are set in CFG-ANL-015 and confirmed or tightened per use case by AI governance during assessment.
Requirement FR-ANL-AIG-005: AI Fail-Closed Behaviour and Independence of Core Workflows¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ANL-AIG-005 |
| Requirement Name | AI Fail-Closed Behaviour and Independence of Core Workflows |
| Requirement Type | Functional |
| Module | Governed AI Workspace, Model Registry and Approved AI-Assisted Workflows |
| Functional Area | FA-ANL-019 Human-reviewed AI-assisted workflows |
| Priority | Could (optional capability); mandatory whenever any AI feature is enabled |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS section 13.2 ("AI functionality shall fail closed or degrade safely; core HIS workflows shall not depend on an AI service"); contributes to BCP-007, DEP-006 (primary Domain 2); PRS section 2.3 "Resilient degradation" |
| Related Business Rule | BR-ANL-022 |
| Related Workflow | WF-ANL-006 |
1. Requirement Statement
The system shall ensure that when an AI service, the AI gateway, a required policy decision or a model version is unavailable, slow, suspended or returns an invalid response, the AI function is disabled or returns no output with a clear indication, no partial or unverified output is presented as valid, and the host workflow can be completed without AI.
2. Business Rationale
AI is an optional aid. A failure in it must never stop registration, documentation, ordering, medication administration, coding or reporting.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-ANL-012 AI-Assisted Workflow User | Continue host workflow without AI | Always available |
| ACT-ANL-014 Platform Administrator | Turn AI off or on for the hospital (global switch) | Audited; effective immediately; turning on needs the sign step |
| ACT-ANL-011 AI Governance Reviewer | Suspend and resume one use case (the per-use-case switch) | On the AI governance console only (FR-ANL-AIG-001 part 6.10) |
4. Preconditions - Each use case has a documented non-AI path (FR-ANL-AIG-001).
5. Trigger - Timeout, error, suspension, denial or invalid output during an AI request.
6. Functional Behaviour
- The system applies a timeout to every AI request (CFG-ANL-013, default 30 seconds) and returns a defined unavailable response when it is exceeded. While waiting, the slot shows "Drafting…" with "Stop" and the host stays usable.
- The system validates output structure and required provenance before presentation and withholds output that fails validation.
- The system exposes AI availability to host workflows so that AI controls are not left to fail on use. If the user has not invoked AI in the host item, the AI control is hidden. If a draft was open, or the user tries to invoke AI, the AI slot shows the one message "AI assistance unavailable. Continue manually." That message is used wherever AI is unavailable, timed out, suspended, switched off, denied by policy or withheld by validation; the reason category is kept in the log only. A draft withdrawn by a suspension shows the message in its place.
- The system provides a global and per-use-case switch that disables AI without redeployment (CFG-ANL-014). The global switch is used by the platform administrator; the per-use-case switch is the suspension of a use case by the AI governance reviewer. Both are on the AI governance console; the Domain 10 configuration screen lists them read-only.
- The system does not queue failed AI requests for later automatic execution against records.
- Host workflows treat the AI call as optional and non-blocking; this is verified by failure-injection tests with the owning domains.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Timeout per use case | Duration | Yes | Positive; approved | Maximum wait |
| Output validation schema | Schema reference | Yes | Registered with use case | What a valid output looks like |
| Kill-switch state | Boolean per scope | Yes | Authorized change only | Enable / disable |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-AIG-005-1 | Any failure condition results in "no output", never in a degraded-quality output shown as normal | Fail closed |
| PR-AIG-005-2 | Circuit breaker opens after repeated failures and closes only after health checks pass | No cascading latency |
| PR-AIG-005-3 | Disabling AI does not alter any existing record or pending human task | Safe switch-off |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Unavailable response | Structured error | Host workflow | Reason category, no content |
| AI availability status | Status API / event | Host workflows, monitoring | Per use case |
| Failure log entry | Log record | AI governance, operations | Failure type, time, version |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Model timeout | Timeout | Unavailable response | "AI assistance unavailable. Continue manually." |
| Malformed output | Schema validation | Output withheld | "AI assistance unavailable. Continue manually." |
| Model version or use case suspended, or AI turned off, mid-session | Status check | In-flight drafts not yet accepted are withdrawn and become Expired | "AI assistance unavailable. Continue manually." |
11. State and Lifecycle Behaviour
No domain record state is affected by AI failure. Drafts in Presented state at the time of suspension move to Expired.
12. Audit Requirements
Failures, circuit-breaker events and kill-switch changes are logged with actor or system identity, time, scope and reason.
13. Security and Privacy Requirements
Error responses contain no patient data and no model internals.
14. Acceptance Criteria
- AC-01: Given the AI service is stopped, when a user performs the host workflow, then the workflow completes without AI and no error blocks it.
- AC-02: Given a model response that fails schema validation, when processed, then no output is presented.
- AC-03: Given the global AI switch is turned off, when any AI function is invoked, then it is unavailable and all core workflows operate normally.
- AC-04: Given a simulated policy service outage, when an AI function is invoked, then no data is retrieved and the function reports unavailable.
15. Dependencies and Integration
- Upstream dependencies: FR-ANL-AIG-002, FR-ANL-AIG-004.
- Downstream dependencies: host workflows in owning domains.
- Required events or APIs: IF-ANL-005; EVT-ANL-006.
16. Open Questions / Assumptions
- ASM-ANL-008: owning domains implement AI calls as optional and non-blocking in their workflows.
← 5.8 Module Specification: Research and Quality-Improvement Extracts and De-identification | Contents | Identifier index | 5.10 Module Specification: Management Reporting and Trend Analysis →