Skip to content

Domain specifications / D10-ESS / 4. Business Process and Workflow Requirements

4. Business Process and Workflow Requirements

4.1 Business Process Catalogue

Process ID Business Process Description Trigger Outcome
BP-ESS-001 Workforce identity lifecycle Create, change, suspend and deactivate workforce accounts in step with employment and credential status Joiner, mover, leaver or credential event from an identity source, or an approved access request Account state and role assignments match current employment, credential and assignment facts
BP-ESS-002 Access recertification Periodic review of role assignments by accountable approvers Scheduled campaign or risk event Each assignment is confirmed or revoked with evidence; revoked permissions stop working
BP-ESS-003 Authorization policy change Author, test, approve and publish an authorization policy version Policy change request New policy version effective from a stated time; prior version retained
BP-ESS-004 Emergency access and review Break-the-Glass invocation followed by retrospective review A permitted clinician is denied access that is needed for emergency care Access granted for a limited scope and time, alert raised, review completed
BP-ESS-005 Consent directive management Record, amend, expire and withdraw consent, and propagate the change Patient or representative decision recorded by an authorized user or channel Current valid consent is applied to subsequent decisions
BP-ESS-006 Terminology release Load, validate, approve and publish a code system, value set or concept map version New source release, local extension request or mapping request Published, effective-dated terminology version; consumers notified
BP-ESS-007 Unmapped and invalid code stewardship Resolve codes that could not be validated or mapped Validation failure or mapping miss reported by a domain or interface Mapping created, code corrected or item explicitly rejected, with reason
BP-ESS-008 Master-data change Propose, validate, approve and publish a master-data or reference-data change Change request or source feed Effective-dated master-data version published to consumers
BP-ESS-009 Notification delivery and escalation Deliver a notification, track acknowledgement and escalate Notification request from a domain or workflow Notification acknowledged and closed, or escalated to the configured end of chain and surfaced
BP-ESS-010 Task coordination and recovery Create, assign, complete and recover tasks and workflow instances Workflow start or task creation request Task completed, cancelled or explicitly resolved; no task silently abandoned
BP-ESS-011 Configuration change, promotion and rollback Draft, validate, approve, promote and if necessary roll back configuration Configuration change request Configuration version active in the target environment with audit; rollback available
BP-ESS-012 Audit review and investigation Query and review audit records for monitoring, complaint or incident Scheduled review, alert, complaint or request Finding recorded; audit query itself audited
BP-ESS-013 Data subject request handling Coordinate a data subject request across owning domains, as applicable to the jurisdiction Request received through an approved channel Request fulfilled, partially fulfilled or refused with recorded basis

4.2 Workflow Specification

Workflow WF-ESS-001: Workforce Joiner, Mover and Leaver

Business Purpose: Keep each workforce account aligned with the person's current employment, credential status, organizational unit, roles and permitted locations, so that access exists only while it is justified (PRS 4.2, SEC-001, SEC-004).

Trigger: A joiner, mover, leaver or credential-status event from an external identity source, or a manually entered and approved access request.

Preconditions: - The organizational unit and locations referenced exist and are active in the registries (MOD-ESS-005). - The role requested exists in the role catalogue.

Primary Actors: - External identity source (ACT-ESS-014) - Identity and access administrator (ACT-ESS-001) - Access approver (ACT-ESS-002)

Main Workflow:

  1. The identity source supplies a joiner event with the person's workforce identifier, employment status, organizational unit and, for clinical staff, credential status.
  2. The system checks that no active account already exists for that workforce identity and creates one unique account in the Pending Activation state.
  3. The system proposes role assignments from the configured mapping of position and unit to roles; any role not covered by the mapping requires an explicit request.
  4. The access approver approves or rejects each role assignment that requires approval.
  5. The administrator or the user completes credential enrolment, including an MFA factor where the assigned roles require it.
  6. The account becomes Active and the system emits an identity-changed event.
  7. On a mover event, the system flags role assignments and permitted locations that no longer match the new unit, removes those configured for automatic removal and sends the remainder to the approver for confirmation.
  8. On a leaver event, or on loss or expiry of a required credential, the system suspends the account or the affected roles from the effective time and ends active sessions.
  9. After the configured period the suspended account is deactivated. The account record and its audit history are retained.

Alternative Workflows: - Temporary staff, students and contractors receive accounts with a mandatory end date. - An urgent access request may follow an expedited approval path defined by policy; it is flagged for retrospective review.

Exception Scenarios: - A joiner event matches an existing deactivated account: the system does not create a second account; the administrator reactivates the existing one after approval. - The identity source is unavailable: administrators may enter changes manually with approval; entries are reconciled against the source when it returns. - A requested role assignment conflicts with a segregation-of-duties rule: the assignment is blocked pending an approved exception.

Postconditions: - One account per workforce identity, with state, roles, permitted locations and validity matching the latest approved facts. - Every change is audited with actor, time, source event and before-and-after values.

Business Rules: - BR-ESS-001, BR-ESS-002, BR-ESS-003, BR-ESS-004

Related Modules: - MOD-ESS-001, MOD-ESS-005, MOD-ESS-006

Related Requirements: - FR-ESS-IAM-001, FR-ESS-IAM-002, FR-ESS-IAM-004, FR-ESS-MDM-003

Workflow WF-ESS-002: Break-the-Glass Emergency Access and Retrospective Review

Business Purpose: Allow a permitted clinician to reach a patient's record in an emergency when normal policy would deny it, without bypassing audit, and ensure that every such access is reviewed (SEC-007, SEC-014, SEC-015; Architecture 9.4).

Trigger: An authorization decision returns "deny, emergency override available" to a user whose role is permitted to invoke emergency access.

Preconditions: - The user is authenticated with a unique account. - The user's role is in the set permitted to invoke emergency access. - The patient is identified.

Primary Actors: - Workforce user, clinical (ACT-ESS-011) - Privacy officer (ACT-ESS-004) - Security officer (ACT-ESS-003)

Main Workflow:

  1. The calling application shows that access is restricted and that emergency access is available.
  2. The user selects a structured reason code and, where the reason code requires it, enters a free-text justification.
  3. The system creates an emergency access session limited to that patient and to the configured time window, without waiting for any remote approval.
  4. The system marks the session, so that the application displays a persistent emergency-access indicator and every audit event raised during the session carries the session identifier.
  5. The system emits a real-time security and privacy alert and creates a high-priority retrospective review task for the privacy and security officers.
  6. The user works in the record. Every read and action performed under the override is audited with elevated detail.
  7. The session expires automatically at the end of the time window, at sign-out or when the user ends it. Further access requires normal authorization or a new invocation.
  8. A reviewer opens the review task, examines the reason and the audited activity, and records an outcome: appropriate, appropriate with follow-up, or inappropriate with referral to the incident process.
  9. The review task is closed. The outcome is linked to the session.

Alternative Workflows: - The user's assignment is updated during the session so that normal policy now permits access: the session is ended and subsequent access is ordinary access. - Policy may require re-authentication before the session is created for defined roles or record categories. - The screen locks during the session: the session continues and its clock keeps running. Another user is switched in: the session is suspended; when the same user returns within the window it resumes with the time left, and after the window it has ended (FR-ESS-AUZ-002).

Exception Scenarios: - The user's role is not permitted to invoke emergency access: the option is not offered and the denial stands. - The review is not completed within the configured timeframe: the task escalates to the designated supervisor or privacy officer (SEC-015). - The notification or workflow service is unavailable at invocation: access is still granted and audited; the alert and review task are created from the audit record when the service recovers (BR-ESS-010). - The audit service cannot accept events: the enforcement point buffers the events durably and the session proceeds only if durable buffering is confirmed (BR-ESS-022).

Postconditions: - The emergency access session, its reason, scope, start, end and all activity are recorded and linked. - A review outcome exists, or the overdue review is visible and escalated.

Business Rules: - BR-ESS-008, BR-ESS-009, BR-ESS-010, BR-ESS-011, BR-ESS-022

Related Modules: - MOD-ESS-002, MOD-ESS-006, MOD-ESS-007, MOD-ESS-008

Related Requirements: - FR-ESS-AUZ-002, FR-ESS-AUD-001, FR-ESS-NTF-002, FR-ESS-WFL-002

Business Purpose: Record a patient's consent or privacy preference once and make the current valid directive effective in every subsequent access, export and exchange decision (HIM-003, SEC-008).

Trigger: A patient or legal representative gives, changes or withdraws consent, recorded by an authorized user in a consuming domain or submitted through the patient channel of Domain 7.

Preconditions: - The patient is identified by the enterprise person identifier from Domain 1. - The consent type and its permitted scopes exist in the configured consent model for the jurisdiction profile.

Primary Actors: - Consent recording user (ACT-ESS-012) - Calling domain service (ACT-ESS-013) - Privacy officer (ACT-ESS-004)

Main Workflow:

  1. The consuming domain submits a consent directive with subject, purpose, scope, recipient, validity period, legal basis, status and provenance (PRS 7.3).
  2. The system validates the directive against the consent model and stores it as a new version; prior versions are retained.
  3. Where the directive is supported by a signed form or other evidence, the system stores the document reference supplied by Domain 6; it does not store the evidence itself.
  4. The system emits a consent-changed event.
  5. From the effective time, the policy decision service evaluates the new directive in relevant decisions.
  6. On withdrawal, the system records the withdrawal as a new version with its own effective time, author and reason where given, and emits a consent-changed event.
  7. On reaching its expiry time, the directive becomes Expired without user action and a consent-changed event is emitted.

Alternative Workflows: - A consent reference captured at registration by Domain 1 creates a directive in Proposed status pending completion of the required attributes. - A directive may be recorded with a future effective date.

Exception Scenarios: - A new directive conflicts with an existing active directive for the same subject, purpose and recipient: the system applies the configured precedence rule and flags the conflict for privacy review where the rule requires it. - A directive was recorded against the wrong patient: it is marked Entered in Error with reason; it is not deleted. Decisions made while it was active remain reconstructable. - Patient records are merged or unmerged in Domain 1: directives follow the surviving or restored identity and conflicts are flagged for review.

Postconditions: - The current directive and its history are retrievable. - Access and disclosure decisions after the effective time reflect current valid consent according to approved policy.

Business Rules: - BR-ESS-012, BR-ESS-013, BR-ESS-014

Related Modules: - MOD-ESS-003, MOD-ESS-002, MOD-ESS-006, MOD-ESS-009

Related Requirements: - FR-ESS-CNS-001, FR-ESS-CNS-002, FR-ESS-AUZ-001

Workflow WF-ESS-004: Terminology Release and Unmapped-Code Stewardship

Business Purpose: Publish governed terminology versions and resolve codes that cannot be validated or mapped, so that no safety-relevant concept is silently coerced (PRS 22.3, DAT-005; REF-002 section 6).

Trigger: A new source release of a code system, a request for a local extension, value set or concept map change, or a validation or mapping failure reported by a domain or interface.

Preconditions: - The code system is registered with its owner, licence status and steward. - For licensed content, the licence permits the intended use.

Primary Actors: - Terminology steward (ACT-ESS-005) - Master data owner / approver (ACT-ESS-007) or the clinical governance approver for clinical content - Calling domain service (ACT-ESS-013)

Main Workflow:

  1. The steward loads the new content as a Draft version in the authoring environment.
  2. The system validates structure, uniqueness of codes, references to other code systems and impact on existing value sets and concept maps, and lists codes that would become inactive.
  3. The steward reviews the impact report and resolves broken value set members and map targets.
  4. The designated approver approves the version with an effective date.
  5. The system publishes the version, retains all prior versions and emits a terminology-published event.
  6. A domain or interface reports a code that failed validation or could not be mapped; the system creates a stewardship item with source, code, code system, context and safety relevance.
  7. The steward resolves the item by creating or correcting a mapping, registering a local code, or rejecting the code with reason.
  8. Where the resolution changes content, steps 2 to 5 apply to the change. The reporting domain is notified of the resolution.

Alternative Workflows: - An urgent safety-relevant correction follows an expedited approval path with retrospective review. - A value set bound to a pinned code system version is unaffected by the new release until its binding is changed.

Exception Scenarios: - The new release inactivates a code used in active value sets, order catalogues or rules: publication is blocked until each use is resolved or explicitly accepted. - A mapping is ambiguous (more than one plausible target): it is not published as equivalent; it is recorded with its relationship type and routed to human resolution. - A published version is found to be wrong: it is superseded by a corrected version; it is not edited in place.

Postconditions: - A published, effective-dated version exists; earlier versions remain retrievable. - Each stewardship item is resolved with reason, or remains visible with its age.

Business Rules: - BR-ESS-015, BR-ESS-016, BR-ESS-017

Related Modules: - MOD-ESS-004, MOD-ESS-011, MOD-ESS-012, MOD-ESS-008

Related Requirements: - FR-ESS-TRM-001, FR-ESS-TRM-002, FR-ESS-TRM-003, FR-ESS-DGV-002

Workflow WF-ESS-005: Master-Data Change Approval and Publication

Business Purpose: Ensure every master-data and reference-data change is owned, approved, effective-dated and distributed consistently (DAT-001).

Trigger: A change request from a steward or consuming domain, or a change received from an authoritative external source.

Preconditions: - The master-data domain is registered with an owner and an approval workflow.

Primary Actors: - Master data steward (ACT-ESS-006) - Master data owner / approver (ACT-ESS-007)

Main Workflow:

  1. The steward creates a change proposal for a new, changed or retired entity with a proposed effective date.
  2. The system validates mandatory attributes, identifier uniqueness within assigning authority, referential integrity and temporal consistency (DAT-002).
  3. The system checks for likely duplicates and for dependants affected by a retirement, and presents them to the steward.
  4. The owner approves or rejects the proposal.
  5. On approval the system creates a new entity version with the effective period and emits a master-data-changed event.
  6. Consuming domains receive the event or read the current version through the registry API.

Alternative Workflows: - Low-risk attribute classes may be configured for steward-only approval by the owner. - A bulk load follows the same validation and a single approval covering the batch, with per-row exceptions queued.

Exception Scenarios: - Validation fails: the proposal is rejected with actionable error detail and is not published. - A retirement would leave active dependants (for example a location with active child locations): the change is blocked until dependants are resolved. - A change from an external source conflicts with a locally approved value: the conflict is queued for stewardship; neither value is silently overwritten.

Postconditions: - The approved version is effective from its start date; history is retained.

Business Rules: - BR-ESS-018, BR-ESS-019

Related Modules: - MOD-ESS-005, MOD-ESS-010, MOD-ESS-011, MOD-ESS-012

Related Requirements: - FR-ESS-MDM-001, FR-ESS-MDM-002, FR-ESS-MDM-003, FR-ESS-REG-001

Workflow WF-ESS-006: Configuration Change, Promotion and Rollback

Business Purpose: Change system behaviour through governed configuration that is versioned, effective-dated, testable and reversible, and promote it across environments with audit (CFG-001, CFG-002).

Trigger: A configuration change request raised by a configuration administrator of any domain.

Preconditions: - The configuration item type is registered with its owning domain, validation rules and approval authority.

Primary Actors: - Configuration administrator (ACT-ESS-008) - Change approver (ACT-ESS-009)

Main Workflow:

  1. The administrator creates a draft version of the configuration item in the authoring environment.
  2. The system validates the draft against the item type's schema and reference checks.
  3. The administrator runs the item type's defined tests in a test environment and attaches the result.
  4. The administrator submits the version for approval with a proposed effective date and a statement of impact.
  5. The designated approver approves or rejects. Clinical content requires the designated clinical authority.
  6. The approved version is promoted to the next environment as an immutable package identified by version and content hash.
  7. At the effective time the version becomes Active and the previously active version becomes Superseded.
  8. The system records the promotion and activation in audit and emits a configuration-changed event.
  9. If the change must be withdrawn, an authorized user requests rollback; on approval the prior version is reactivated and the withdrawn version is marked Rolled Back.

Alternative Workflows: - An emergency clinical fix follows an expedited but documented approval path with retrospective review (PRS 15.1). - A change may be scoped to one facility or department where the item type allows it.

Exception Scenarios: - The package hash at the target does not match the approved version: promotion is refused. - Validation in the target environment fails because a referenced item is absent: promotion is refused with the missing dependency listed. - A rollback target is itself incompatible with data created since activation: the system reports the incompatibility and the approver decides between rollback and forward-fix.

Postconditions: - Exactly one version of the item is Active for a given scope at any time. - Audit history covers draft, approval, promotion, activation and rollback.

Business Rules: - BR-ESS-028, BR-ESS-029, BR-ESS-030

Related Modules: - MOD-ESS-012, MOD-ESS-006, MOD-ESS-008

Related Requirements: - FR-ESS-CFG-001, FR-ESS-CFG-002

Workflow WF-ESS-007: Notification Delivery, Acknowledgement and Escalation

Business Purpose: Deliver a notification to an accountable recipient, obtain acknowledgement where required and escalate when it is not obtained, so that critical information is not missed (Architecture 5.1; supports RES-003, ANC-018, NUR-004).

Trigger: A calling domain or a workflow instance submits a notification request.

Preconditions: - The request identifies a recipient, role or team that can be resolved, a priority and, for acknowledged notifications, an escalation policy.

Primary Actors: - Calling domain service (ACT-ESS-013) - Workforce user (ACT-ESS-011) - Workflow and notification administrator (ACT-ESS-010)

Main Workflow:

  1. The system accepts the request, checks its idempotency key and returns a notification identifier.
  2. The system resolves the recipient: a named user directly, or the current holder of a role, team or on-call assignment using the assignment data supplied by the owning domain.
  3. The system selects channels by priority and recipient settings and sends the notification.
  4. The system records the delivery status reported by each channel.
  5. Where acknowledgement is required, the system starts the acknowledgement timer.
  6. The recipient acknowledges; the system records who acknowledged, when and through which channel, stops the timer and reports the acknowledgement to the calling domain.
  7. If the timer expires without acknowledgement, the system escalates to the next step in the escalation policy and repeats steps 3 to 6.
  8. When the calling domain reports that the underlying matter is closed, the notification is closed.

Alternative Workflows: - An informational notification does not require acknowledgement and is closed on delivery. - A duplicate request within the deduplication window is merged into the existing notification. - The calling domain cancels a notification that is no longer relevant.

Exception Scenarios: - No recipient can be resolved: for a critical notification the system escalates immediately to the fallback recipient named in the policy and reports the resolution failure to the calling domain. - All channels fail: the notification is marked Delivery Failed, retried under the retry policy, escalated as if unacknowledged and shown on the operations worklist. - The escalation chain is exhausted without acknowledgement: the notification is marked Escalation Exhausted, stays open and visible, and the calling domain is informed.

Postconditions: - Every notification is Closed, Cancelled or visibly open with its current status. - Each delivery attempt, acknowledgement and escalation step is timestamped.

Business Rules: - BR-ESS-023, BR-ESS-024, BR-ESS-025

Related Modules: - MOD-ESS-007, MOD-ESS-008, MOD-ESS-001, MOD-ESS-006

Related Requirements: - FR-ESS-NTF-001, FR-ESS-NTF-002, FR-ESS-WFL-002

Workflow WF-ESS-008: Access Recertification

Business Purpose: Confirm periodically that each role assignment is still needed, and remove those that are not (SEC-004).

Trigger: A scheduled campaign, or a risk-based trigger such as a change of unit or a security event.

Preconditions: - Each role assignment in scope has an accountable approver.

Primary Actors: - Access approver (ACT-ESS-002) - Security officer (ACT-ESS-003)

Main Workflow:

  1. The system creates a campaign listing each in-scope assignment with user, role, scope, grant date, last use and approver.
  2. Each approver receives a review task.
  3. The approver confirms or revokes each assignment and may add a comment.
  4. Revoked assignments are removed and stop working from the revocation time.
  5. At the campaign due date (30 days after it opens), unreviewed assignments are handled according to CFG-ESS-005: privileged assignments are suspended; other assignments are escalated to the approver's manager and suspended 14 days later if still unreviewed.
  6. The system produces the campaign evidence report.

Alternative Workflows: - Privileged roles are reviewed every 6 months and other roles every 12 months (CFG-ESS-005; privileged flag in the starter role catalogue).

Exception Scenarios: - The approver is the subject of the assignment: the item is routed to the approver's manager. - The approver account is inactive: the item is routed to the fallback approver for the organizational unit.

Postconditions: - Every in-scope assignment has a recorded decision or a recorded default action.

Business Rules: - BR-ESS-005, BR-ESS-006

Related Modules: - MOD-ESS-001, MOD-ESS-008, MOD-ESS-006

Related Requirements: - FR-ESS-IAM-004

4.3 Workflow State Model

Entity Current State Event / Condition Next State Responsible Actor
Workforce account (none) Joiner event or approved request Pending Activation Identity source / identity administrator
Workforce account Pending Activation Credential enrolment complete Active User / identity administrator
Workforce account Active Leaver event, credential lapse, security hold or end date reached Suspended System / identity administrator / security officer
Workforce account Active Failed full sign-in threshold reached (CFG-ESS-002); failed PINs do not count Blocked System
Workforce account Blocked Block period elapsed, or verified unblock by the identity administrator or 24-hour service desk Active System / identity administrator
Workforce account Suspended Approved reinstatement Active Identity administrator
Workforce account Suspended Retention-of-suspension period elapsed or confirmed leaver Deactivated System / identity administrator
Workforce account Deactivated Approved rehire of the same workforce identity Pending Activation Identity administrator
Emergency access session (none) Permitted user submits reason Active Workforce user
Emergency access session Active Time window elapsed, user signs out or user ends session; a screen lock does not change the state Expired System / workforce user
Emergency access session Active Fast user switch to another user Suspended System
Emergency access session Suspended Same user returns within the time window Active (with the time left) Workforce user
Emergency access session Suspended Time window elapsed Expired System
Emergency access session Expired Review task opened. An Active or Suspended session can be read by a reviewer but cannot be given an outcome until it has Expired Under Review Privacy or security officer
Emergency access session Under Review Outcome recorded as "Appropriate" Reviewed – Appropriate Privacy or security officer
Emergency access session Under Review Outcome recorded as "Appropriate with follow-up"; a follow-up task is created for the reviewer's queue Reviewed – Appropriate Privacy or security officer
Emergency access session Under Review Outcome recorded as "Inappropriate", with a comment; a security incident is opened on the security monitoring console (UI-ISE-006) Reviewed – Referred Privacy or security officer
Consent directive (none) Reference captured without full attributes Proposed Consent recording user
Consent directive (none) or Proposed Valid directive recorded and effective time reached Active Consent recording user
Consent directive Active New version recorded Superseded (prior version) Consent recording user
Consent directive Active Expiry time reached Expired System
Consent directive Active Withdrawal recorded Withdrawn Consent recording user
Consent directive Proposed, Active Recorded in error Entered in Error Consent recording user with privacy officer authority
Terminology or configuration version (none) Draft created Draft Terminology steward / configuration administrator
Terminology or configuration version Draft Submitted for approval In Review Steward / administrator
Terminology or configuration version In Review Rejected Draft Approver
Terminology or configuration version In Review Approved Approved Approver
Terminology or configuration version Approved Effective time reached in target environment Active System
Terminology or configuration version Active Later version becomes active Superseded System
Terminology or configuration version Active Approved rollback Rolled Back Change approver
Terminology or configuration version Active, Superseded Retired with end date Retired Approver
Notification (none) Request accepted Queued Calling domain service
Notification Queued Sent to at least one channel Sent System
Notification Sent Channel confirms delivery Delivered System
Notification Sent All channels fail Delivery Failed System
Notification Delivered, Delivery Failed Acknowledgement timer expires Escalated System
Notification Delivered, Escalated Recipient acknowledges Acknowledged Workforce user
Notification Delivery Failed Manual retry, or reroute to another recipient or channel under procedure, with a reason Queued Workflow and notification administrator
Notification Escalated Escalation chain exhausted Escalation Exhausted System
Notification Delivered (no acknowledgement required), Acknowledged, Escalation Exhausted Calling domain closes Closed Calling domain service
Notification Any open state Calling domain cancels Cancelled Calling domain service
Task (none) Created by workflow or domain Created Calling domain service
Task Created Assigned to user, role or queue Assigned System / supervisor
Task Assigned Claimed or started In Progress Workforce user
Task Assigned, In Progress Due time passed Overdue System
Task Overdue Escalation rule fires Escalated System
Task Assigned, In Progress, Overdue, Escalated Completion recorded Completed Workforce user / calling domain service
Task Any open state Cancelled by owner domain Cancelled Calling domain service
Task In Progress Automated step fails after retries Failed System
Task Failed Manual recovery: retry, reassign or resolve Assigned or Completed Workflow administrator
Workflow instance (none) Start accepted Accepted Calling domain service
Workflow instance Accepted First step dispatched Pending System
Workflow instance Pending All steps reach terminal success Completed System
Workflow instance Pending Step fails and cannot be retried Failed System
Workflow instance Failed Manual retry of the failed step, with a reason; replay-sensitive steps follow the replay confirmation of OV-112 Pending Workflow administrator
Workflow instance Failed Skip of the failed step requested, with a reason; an approval task goes to the owning domain's queue supervisor Awaiting Approval Workflow administrator
Workflow instance Awaiting Approval Owning domain's queue supervisor approves; the step is marked skipped Pending Queue supervisor of the owning domain
Workflow instance Awaiting Approval Owning domain's queue supervisor refuses, with a reason Failed Queue supervisor of the owning domain
Workflow instance Failed Compensation steps complete Compensated System / workflow administrator
Workflow instance Accepted, Pending Cancelled by owner Cancelled Calling domain service

The workflow instance states follow the explicit accepted, pending, completed, failed, cancelled and compensated states required by Architecture 5.3.

stateDiagram-v2
    [*] --> Queued: request accepted
    Queued --> Sent: dispatched
    Sent --> Delivered: channel confirms
    Sent --> DeliveryFailed: all channels fail
    Delivered --> Acknowledged: recipient acknowledges
    Delivered --> Escalated: timer expires
    DeliveryFailed --> Escalated: timer expires
    Escalated --> Acknowledged: recipient acknowledges
    Escalated --> Escalated: next step in chain
    Escalated --> EscalationExhausted: chain exhausted
    Delivered --> Closed: no acknowledgement required
    Acknowledged --> Closed: calling domain closes
    EscalationExhausted --> Closed: calling domain closes
    Queued --> Cancelled: cancelled
    Sent --> Cancelled: cancelled
    Delivered --> Cancelled: cancelled
    Escalated --> Cancelled: cancelled
    Closed --> [*]
    Cancelled --> [*]
stateDiagram-v2
    [*] --> Active: reason submitted by permitted role
    Active --> Expired: window elapsed, sign-out or ended by user
    Active --> Suspended: fast user switch
    Suspended --> Active: same user returns within window
    Suspended --> Expired: window elapsed
    Expired --> UnderReview: review task opened
    UnderReview --> ReviewedAppropriate: outcome appropriate
    UnderReview --> ReviewedReferred: outcome inappropriate
    ReviewedAppropriate --> [*]
    ReviewedReferred --> [*]

4.4 Business Rules Catalogue

Rule ID Business Rule Condition Expected System Behaviour Configurable
BR-ESS-001 One account per human An account is created or reactivated The system refuses a second active account for the same workforce identity No
BR-ESS-002 No shared generic clinical accounts An account is not linked to exactly one workforce identity The account cannot be assigned a role that grants clinical access (PRS 4.2, SEC-001) No
BR-ESS-003 Access follows employment and credential status Employment ends, or a credential required by a role lapses The account or the dependent role is suspended from the effective time and active sessions end Grace handling per role: Yes
BR-ESS-004 Service identities are non-human and owned A service identity is registered It must have a named owner, a defined scope and no interactive sign-on; it is audited separately from human accounts No
BR-ESS-005 Periodic recertification A role assignment reaches its review date It is included in a recertification campaign; a revoked assignment stops working Cycle per role class: Yes
BR-ESS-006 No self-approval The approver is the subject of the request or review item The item is routed to another approver No
BR-ESS-007 MFA for risk-defined access Access is privileged, remote or otherwise defined as higher risk by policy A second factor is required before the session or action is permitted (SEC-002) Risk definitions: Yes
BR-ESS-008 Deny by default No applicable policy permits the request The decision is Deny and the trace records that no policy applied No
BR-ESS-009 Enforcement at service boundary A service receives a request for a protected resource It obtains and enforces a decision regardless of what the user interface displayed (PRS 10.2) No
BR-ESS-010 Emergency access is never blocked on remote approval and never unaudited A permitted role invokes Break-the-Glass Access is granted on submission of the reason; alert and review task follow; audit is mandatory (SEC-007; Architecture 9.4) Permitted roles, reason codes, window: Yes
BR-ESS-011 Emergency access is scoped and expires An emergency access session is Active It covers one patient and ends automatically at the end of the window Window length: Yes
BR-ESS-012 Current valid consent governs future access and disclosure A consent directive becomes active, expires or is withdrawn Decisions after the effective time use the new state according to approved policy (HIM-003, SEC-008) Policy per consent type: Yes
BR-ESS-013 Consent history is retained A directive is changed, withdrawn or recorded in error A new version is written; no version is deleted (Architecture 5.1) No
BR-ESS-014 Consent exceptions require a documented legal basis A decision permits access contrary to a restricting directive The decision records the exception type and legal basis and is audited (SEC-008) Exception catalogue: Yes
BR-ESS-015 Inactive or invalid codes are rejected or flagged A code is validated against a code system version or value set The service returns invalid or inactive with reason; it does not substitute another code (EHR-006) Reject or flag per binding: Yes
BR-ESS-016 Terminology is effective-dated and version-pinned A code is recorded or a value set is bound The applicable code system version is identified so that historical meaning can be reconstructed (PRS 7.2, 22.3) No
BR-ESS-017 Unmapped or ambiguous safety-relevant concepts go to a steward A translation finds no map or more than one candidate No equivalent mapping is returned; a stewardship item is created (REF-002 section 6) Safety-relevance classification: Yes
BR-ESS-018 Master data has an owner, approval and effective dates A master-data entity is created or changed The change is published only after approval under the domain's workflow, with an effective period (DAT-001) Approval route per attribute class: Yes
BR-ESS-019 Master-data entities are retired, not deleted An entity is no longer used It receives an end date and remains resolvable for historical records No
BR-ESS-020 Audit is append-only An audit event has been stored It cannot be updated or deleted through any application function; corrections are new events (PRS 10.3) No
BR-ESS-021 Access to audit is audited Any user or service queries or exports audit data An audit event is recorded for the query or export (PRS 10.3) No
BR-ESS-022 No protected action without an audit path The audit service is unreachable The caller buffers audit events durably and forwards them on recovery; if durable buffering is unavailable, the caller's defined failure policy applies Failure policy per service tier: Yes
BR-ESS-023 Critical notifications require a named accountable recipient and acknowledgement A notification is submitted with critical priority The request must carry an escalation policy; unacknowledged notifications escalate within the configured time Timers and chains: Yes
BR-ESS-024 Duplicate requests do not create duplicate notifications A request repeats an idempotency key or matches within the deduplication window The existing notification is returned or updated Window: Yes
BR-ESS-025 An unacknowledged critical notification is never silently closed The escalation chain is exhausted The notification stays open and visible and the calling domain is informed No
BR-ESS-026 Tasks have an owner at all times A task is open It is assigned to a user, role or queue; a task whose assignee becomes unavailable is returned to its queue and flagged No
BR-ESS-027 Workflow definitions are versioned A workflow instance starts It is bound to a definition version and completes under that version unless explicitly migrated No
BR-ESS-028 One active configuration version per scope A configuration version becomes Active The previously active version for the same item and scope becomes Superseded No
BR-ESS-029 Configuration is promoted, not re-entered A version is moved between environments The same immutable, hash-identified package is promoted; production is not edited directly except through the documented emergency path No
BR-ESS-030 Rollback preserves history A rollback is approved The prior version is reactivated and the audit history of both versions is preserved (CFG-002) No
BR-ESS-031 Shared services do not write through to domain records Any shared-service operation The operation changes only Domain 10 entities; changes to another domain's records are made by that domain's own API (REF-002 boundary principle) No
BR-ESS-032 Time dimensions are distinct An entity or event is stored Event time, recorded time, effective time and ingestion time are stored as separate attributes where each applies (DAT-004) No
BR-ESS-033 A document reference does not grant access A document reference is resolved An authorization decision is made at resolution time for the requesting subject and purpose No

← 3. Domain Capability Model | Contents | Identifier index | 5. Detailed Functional Requirements →