Skip to content

MOD ESS 002 AUZ

Domain specifications / D10-ESS / 5. Detailed Functional Requirements / 5.2 Module Specification: Authorization and Policy Decision Services

5.2 Module Specification: Authorization and Policy Decision Services

5.2.1 Module Overview

Module ID: MOD-ESS-002 (module code AUZ)

Purpose: Decide whether a subject may perform an action on a resource, using role-based permissions combined with contextual attributes, and return a decision that the calling service enforces. The module also provides Break-the-Glass emergency access, the privacy label model, and scoped delegated authorization for applications and third parties.

Business Capabilities: - CAP-ESS-002 Authorization and policy decision - CAP-ESS-003 Emergency access (Break-the-Glass)

Primary Actors: - Security officer (ACT-ESS-003), privacy officer (ACT-ESS-004), calling domain service (ACT-ESS-013), workforce user (ACT-ESS-011)

Dependencies: - MOD-ESS-001 (subject attributes), MOD-ESS-003 (consent), MOD-ESS-005 (organization and location), MOD-ESS-006 (audit), MOD-ESS-007 and MOD-ESS-008 (alerts and review tasks), MOD-ESS-012 (policy versioning). - Domain 1 (encounter, location, patient relationship context) and Domain 3 (care-team assignment), supplied as attributes by the calling service or read through their published APIs.

5.2.2 Functional Area: Policy Administration and Decision

Functional Area ID: FA-ESS-005

Description: Authoring, versioning and evaluation of authorization policies, with a decision trace.

Scope: - Included: policy model, policy versions, decision API, obligations, decision trace. - Excluded: the enforcement point code inside each domain service; front-end display logic.

5.2.3 Functional Area: Emergency Access

Functional Area ID: FA-ESS-006

Description: Break-the-Glass invocation, session marking, alerting and retrospective review.

Scope: - Included: permitted roles, reason codes, time-limited session, alert, review task, review outcome. - Excluded: the incident and disciplinary process that follows an inappropriate-access finding.

5.2.4 Functional Area: Privacy Labels and Segmentation

Functional Area ID: FA-ESS-007

Description: The taxonomy of privacy and security labels and their use in decisions and redaction obligations.

Scope: - Included: label taxonomy, label-aware policy, field and resource-level obligations. - Excluded: assigning a label to a specific record (the owning domain does this using the taxonomy); legal determination of sensitive categories.

5.2.5 Functional Area: Delegated and Scoped Authorization

Functional Area ID: FA-ESS-008

Description: Scoped, time-limited, revocable authorization grants for launched applications and patient-authorized third parties.

Scope: - Included: grant, scope, expiry, revocation and decision. - Excluded: partner endpoint onboarding and gateway enforcement (Domain 2); the patient-facing authorization screens (Domain 7).

5.2.6 Detailed Requirements

Requirement FR-ESS-AUZ-001: Role-Based and Attribute-Based Policy Decision Service

Attribute Description
Requirement ID FR-ESS-AUZ-001
Requirement Name Role-based and attribute-based policy decision service
Requirement Type Functional
Module Authorization and Policy Decision Services
Functional Area FA-ESS-005 Policy administration and decision
Priority Must
Criticality Critical
Requirement Status Draft
Source SEC-003; SEC-013; PRS section 10.2; Architecture 5.1 (Authorization policy)
Related Business Rule BR-ESS-008, BR-ESS-009
Related Workflow WF-ESS-002, WF-ESS-003

1. Requirement Statement

The system shall provide a policy decision service that combines role-based permissions with subject, resource, action and environment attributes, including care-team assignment, facility, patient relationship, active therapeutic relationship where policy requires, purpose of use, data sensitivity, consent and emergency context, shall deny by default, and shall return with each decision the policy version and a decision trace.

2. Business Rationale

Role alone is too coarse for a hospital: a nurse's access should depend on unit, shift and patient assignment. SEC-003 and SEC-013 require contextual decisions that can be tested for allowed and denied access by context, and PRS 10.2 requires enforcement at service and data-access boundaries.

3. Actors and Permissions

Actor Permission Conditions
Calling domain service Request decision Authenticated service identity; request carries subject, action, resource and context
Security officer Create / Update policy (draft); validate; record policy test pack evidence Through configuration lifecycle on UI-ESS-003; cannot approve own policy
Privacy officer / designated approver Approve policy Separate from author
Auditor Read decision trace Audited access

4. Preconditions - The subject is authenticated (human or service). - A published policy version is active.

5. Trigger - A domain service receives a request for a protected resource or action, or needs a filter for a search or list.

6. Functional Behaviour

  1. The service accepts a decision request containing subject identity, action, resource type and identifier, patient reference where applicable, purpose of use, and environment attributes (facility, location, network zone, device posture where available, time).
  2. The service obtains subject attributes (roles and scopes, organizational unit, credential status, authentication assurance) from MOD-ESS-001.
  3. The service uses the context attributes supplied by the caller for care-team assignment, encounter and patient relationship, or reads them from the owning domain's published API where the policy requires an authoritative value.
  4. The service evaluates the resource's privacy labels and the patient's consent directives where the policy references them (FR-ESS-AUZ-003, FR-ESS-CNS-002).
  5. The service returns Permit, Deny, or Deny with emergency override available, together with any obligations (for example redact labelled fields, require step-up authentication, apply elevated audit) and the policy version identifier.
  6. The service returns Deny where no policy applies or where a required attribute is missing and the policy does not define behaviour for the missing attribute.
  7. The service supports decisions for a set of resources and returns filter criteria for searches, so that a caller does not have to request one decision per row.
  8. The service records a decision trace sufficient to explain which rules and attribute values produced the outcome.
  9. The service applies a new policy version from its effective time; decision caches held by callers are bounded by a configured maximum lifetime and are invalidated on policy-updated, identity-changed and consent-changed events.
  10. The service does not read or modify any domain's business records to make a decision; it uses attributes and references only (BR-ESS-031).

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Subject Identity reference Yes Authenticated session or service token Human and/or service identity
Action Code Yes Registered action for the resource type View, create, update, amend, sign, export, print, disclose, delete, query, administer
Resource type and identifier Code, identifier Yes Registered resource type Target of the action
Patient reference Enterprise person identifier Conditional Required for patient-scoped resources Patient concerned
Purpose of use Code Conditional Value set; required where policy demands Treatment, payment, operations, research, emergency, patient request and others configured
Resource attributes Structured No Per resource type Privacy labels, owning facility, record category
Context attributes Structured No Per policy Care-team membership, encounter, shift, location
Environment Structured Yes Supplied by gateway Facility, network zone, device posture, time

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-AUZ-001-1 No applicable permitting policy Deny; trace records "no applicable policy"
PR-AUZ-001-2 An explicit deny rule and a permit rule both apply Deny prevails, except where an active emergency access session applies under FR-ESS-AUZ-002
PR-AUZ-001-3 Required attribute missing or stale beyond the policy's tolerance Deny, or Deny with emergency override available where the subject's role permits
PR-AUZ-001-4 Subject's role is permitted to invoke emergency access for this resource type A Deny is returned as "Deny, emergency override available"
PR-AUZ-001-5 Policy-updated, identity-changed or consent-changed event received Affected cached decisions are invalidated

9. Output Requirements

Output Format Recipient Description
Decision API response Calling domain service Permit / Deny / Deny with override available; obligations; policy version; decision identifier
Decision trace Stored record Auditors, security officers Rules and attribute values that produced the decision
Authorization audit event Audit event MOD-ESS-006 Denials always; permits as required by audit policy
Policy-updated event Event (EVT-ESS-003) All domains New policy version effective

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Malformed request Schema validation Error; caller treats as Deny Calling application shows "Access could not be confirmed."
Unknown action or resource type Registry check Error; Deny Reported to the calling domain's support queue.
Decision service unavailable or timed out Timeout at caller Caller applies its documented failure policy: fail closed by default; for Tier 1 clinical read paths, use a still-valid cached decision or the emergency access path with full audit (section 11.2) "Access check is delayed." Emergency access offered to permitted roles.
Attribute source unavailable Attribute fetch fails Treat attribute as missing (PR-AUZ-001-3) As above.

11. State and Lifecycle Behaviour

Policies follow the configuration version lifecycle (Draft, In Review, Approved, Active, Superseded, Rolled Back, Retired). Decisions are immutable records.

12. Audit Requirements

  • Audited events: every Deny; every Permit for actions that the audit policy lists (at minimum those in SEC-019); every policy version change.
  • The audit event carries the decision identifier and policy version (Architecture 9.3).
  • Decision traces are retained for the audit retention period and are accessible only to authorized reviewers, with that access audited.

13. Security and Privacy Requirements

  • Only registered service identities may request decisions.
  • The decision API returns no patient data beyond the decision and obligations.
  • Policy authoring and approval are separated.
  • Decision traces may contain sensitive context and are classified Confidential.

14. Acceptance Criteria

  • AC-01: Given a nurse assigned to a patient on her unit and shift, when she requests to view that patient's chart for treatment, then the decision is Permit.
  • AC-02: Given the same nurse and a patient on another unit with no assignment, when she requests the chart, then the decision is Deny with emergency override available, and the trace shows the missing relationship.
  • AC-03: Given a policy test pack covering role, specialty, unit, patient assignment, shift, network or device posture and action (SEC-013 acceptance), when it is executed against the active policy version, then every case returns its expected outcome.
  • AC-04: Given a request for which no policy applies, when evaluated, then the decision is Deny.
  • AC-05: Given a user interface that displays a control the user is not authorized for, when the underlying service call is made, then the service denies it (PRS 10.2).
  • AC-06: Given any decision, when an auditor retrieves it by decision identifier, then the policy version and decision trace are returned.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • Whether care-team and assignment attributes are pushed by the caller or pulled by the decision service is a design decision per attribute (DEC-ESS-008).
  • The decision latency budget and cache lifetime are proposed values to be validated (NFR-ESS-001; ASM-ESS-005).
  • The policy language and engine are implementation choices subject to the dependency policy.

Requirement FR-ESS-AUZ-002: Break-the-Glass Emergency Access

Attribute Description
Requirement ID FR-ESS-AUZ-002
Requirement Name Break-the-Glass emergency access
Requirement Type Functional
Module Authorization and Policy Decision Services
Functional Area FA-ESS-006 Emergency access
Priority Must (the 24 to 48 hour review target from SEC-015 is Should)
Criticality Critical
Requirement Status Draft
Source SEC-007; SEC-014; SEC-015; Architecture 9.4
Related Business Rule BR-ESS-010, BR-ESS-011, BR-ESS-022
Related Workflow WF-ESS-002

1. Requirement Statement

The system shall provide a controlled Break-the-Glass process that temporarily permits approved emergency access for permitted clinical roles, requires a structured justification, limits the access to one patient and a configured time window, marks the session, applies elevated audit to every read and action under the override, emits a real-time security and privacy alert, creates a retrospective review task, and escalates reviews that are overdue.

2. Business Rationale

Rigid access control must not delay emergency care (PRS 2.3), and emergency access must not bypass audit (SEC-007). Review deters and detects misuse.

3. Actors and Permissions

Actor Permission Conditions
Workforce user in a permitted clinical role Invoke emergency access Authenticated; patient identified; reason supplied
Privacy officer / security officer Read sessions; record review outcome Cannot review own sessions
Designated supervisor Receive escalation Overdue review
Security officer Configure permitted roles, reason codes, window and review timeframe (CFG-ESS-006 to CFG-ESS-008) Through configuration lifecycle with approval, on the configuration lifecycle workspace (UI-ESS-011)

4. Preconditions - A decision of "Deny, emergency override available" was returned for the subject and patient.

5. Trigger - The user chooses emergency access and submits a reason.

6. Functional Behaviour

  1. The system offers emergency access only to roles configured as permitted, and only for resource types that the policy allows to be overridden.
  2. The system requires a reason code and, for reason codes configured to need it, a free-text justification. The reason codes are "Emergency care", "Covering for the treating team", "Patient cannot consent and care is urgent" and "Other"; "Other" requires text (CFG-ESS-006). When the user has not authenticated on this workstation in the last 5 minutes (full sign-in, unlock or step-up), the same dialogue also asks for the quick factor of FR-ESS-IAM-002 (badge tap and PIN, or security key or device biometric); otherwise it asks for no further authentication.
  3. The system grants access immediately on submission; it does not wait for approval by another person.
  4. The system creates an emergency access session scoped to one patient, the subject and the configured time window (by default 4 hours, CFG-ESS-007), and returns a session identifier.
  5. During an Active session, the policy decision service returns Permit with an "elevated audit" obligation and a "session marker" obligation for in-scope requests.
  6. The system links every audit event raised under the session to the session identifier in a way that cannot be altered after the event is written.
  7. The system emits a real-time alert to the security and privacy recipients and creates a high-priority review task with the due time derived from the configured review timeframe.
  8. The system ends the session when its window runs out, on user sign-out, or when the user ends it early. A screen lock does not end or pause the session; its clock keeps running. A fast user switch suspends the session with the rest of the user's session. When the same user returns within the window, the session resumes with the time left; when the user returns after the window, it has ended. Extending emergency access requires a new invocation with a new reason.
  9. The system records the review outcome and reviewer, and escalates an overdue review to the designated supervisor or privacy officer. An outcome can be recorded only once the session has Expired; an Active or Suspended session can be read. "Appropriate" and "Appropriate with follow-up" lead to Reviewed – Appropriate, and the second creates a follow-up task. "Inappropriate" leads to Reviewed – Referred and opens a security incident in Domain 2 security monitoring.
  10. The system reports repeat patterns: sessions per user, per unit and per patient over a period (by default the last 90 days).
  11. Record categories that policy excludes from override remain denied; the user is told that the category is restricted.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Patient reference Enterprise person identifier Yes Resolvable Patient in scope
Reason code Code Yes Active value in reason value set Structured justification
Free-text justification Text Conditional Required where reason code demands; minimum length configurable Narrative reason
Review outcome Code Yes (at review) Appropriate / appropriate with follow-up / inappropriate; only for an Expired session Reviewer decision
Review comment Text Conditional Required for inappropriate Reviewer note

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-AUZ-002-1 Session window is taken from configuration for the role and care setting Session expires at start time plus window; the clock is not stopped by a screen lock or a user switch
PR-AUZ-002-2 Review due time is start time plus configured review timeframe (reference 24 to 48 hours, SEC-015), adjustable by incident severity Review task carries due time
PR-AUZ-002-3 Alert or task creation fails Access proceeds; the alert and task are generated from the audit record on recovery; failure is itself alerted to operations
PR-AUZ-002-4 Reviewer is the session subject Review routed to another reviewer
PR-AUZ-002-5 Audit path not confirmed (BR-ESS-022) Session is not created until durable audit buffering is confirmed
PR-AUZ-002-6 Fast user switch while a session is Active Session Suspended; resumes Active with the time left if the same user returns within the window, otherwise Expired

9. Output Requirements

Output Format Recipient Description
Emergency access session API resource Calling application, policy decision service Scope, start, expiry, reason
Session marker obligation Decision obligation Calling application Application displays persistent indicator
Real-time alert Notification / security event Privacy and security officers; Domain 2 security monitoring Emergency access invoked
Review task Task Privacy and security officers Retrospective review
Break-the-Glass report Report (REP-ESS-005) Privacy officer, governance Volume, review timeliness, outcomes, repeat patterns

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Role not permitted Role check Option not offered; request refused if sent directly "Emergency access is not available for your role."
Missing reason Mandatory field Refuse until supplied "Select a reason for emergency access."
Restricted category excluded from override Policy check Deny for that category "This information is restricted and cannot be opened with emergency access."
Session ending 10 minutes before expiry Warn in the session indicator; offer a new invocation "Emergency access · 10 min left" with "Extend emergency access"
Session expired Expiry check Deny; offer new invocation; an open draft is kept "Emergency access has ended."

11. State and Lifecycle Behaviour

The session moves through Active, Suspended (while another user is switched in), Expired, Under Review and a Reviewed outcome (section 4.3). Sessions are never deleted.

12. Audit Requirements

  • Audited events: invocation (with reason), every read and action under the session, suspension and resumption, expiry, alert emission, review task creation, review outcome, escalation.
  • Events carry the session identifier, subject, patient, timestamps, source endpoint and outcome.
  • Session and review records are retained for the audit retention period.

13. Security and Privacy Requirements

  • Permitted roles, reason codes, windows and review timeframes are approved by the Security and Privacy Office and Clinical Governance.
  • Free-text justification is Confidential and visible only to reviewers.
  • Emergency access does not extend the user's permitted actions beyond those of the role; it widens the patient scope only.

14. Acceptance Criteria

  • AC-01: Given a permitted clinician denied access to a patient, when a reason is submitted, then access is granted without any remote approval and an emergency access session exists (SEC-007 acceptance).
  • AC-02: Given an Active session, when the user views or changes the record, then each audit event carries the session identifier and elevated detail.
  • AC-03: Given an invocation, when it completes, then a real-time alert has been emitted and a review task exists with a due time (SEC-014 acceptance).
  • AC-04: Given a session whose window has elapsed, when the user makes a further request, then it is denied unless ordinary policy permits it.
  • AC-05: Given a review task not completed by its due time, when the due time passes, then it escalates to the designated supervisor or privacy officer (SEC-015 acceptance).
  • AC-06: Given the notification service is unavailable at invocation, when the session is created, then access proceeds and the alert and review task are created after recovery.
  • AC-07: Given a user whose role is not permitted, when an invocation request is sent directly to the API, then it is refused and audited.
  • AC-08: Given an Active session, when the screen locks and the same user unlocks it, then the session is still Active and its remaining time has kept counting down.
  • AC-09: Given an Active session, when another user is switched in and the first user returns within the window, then the session resumes with the time left; when the first user returns after the window, then it has ended.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • Reason codes, window and review timeframe are set by DEC-ESS-009: four reasons, one patient, 4 hours, review within 48 hours (CFG-ESS-006 to CFG-ESS-008). Behaviour through a screen lock and a user switch follows CUX-45. Permitted roles are licensed clinical staff with direct patient-care duties; students, supervised practitioners and administrative, finance or IT roles are excluded (CFG-ESS-006; GAP-ESS-004, closed).
  • The privacy segmentation model (PRS 28.1; DEC-ESS-009, resolved 2026-11-17) excludes no sensitive category from override: Break-the-Glass requires a reason, covers one patient, lasts 4 hours and is reviewed within 48 hours.
  • "Cryptographically/session-linked" in the SEC-014 acceptance statement is interpreted as an integrity-protected link between session and audit events (ASM-ESS-006).

Requirement FR-ESS-AUZ-003: Privacy Labels and Field and Resource-Level Segmentation

Attribute Description
Requirement ID FR-ESS-AUZ-003
Requirement Name Privacy labels and field and resource-level segmentation
Requirement Type Functional
Module Authorization and Policy Decision Services
Functional Area FA-ESS-007 Privacy labels and segmentation
Priority Must
Criticality High
Requirement Status Draft
Source SEC-016; SEC-017; PRS section 10.2 (sensitive record categories); PRS 25.3 closing note
Related Business Rule BR-ESS-008, BR-ESS-014
Related Workflow WF-ESS-003

1. Requirement Statement

The system shall maintain a governed taxonomy of privacy and security labels for sensitive record categories, shall evaluate labels at field and resource level in authorization decisions for read, export and exchange, and shall return redaction obligations so that restricted data is withheld according to valid consent and legal basis, using FHIR security labels and applicable HL7 DS4P profiles where selected by the jurisdictional implementation guide.

2. Business Rationale

Some record categories need additional policy and monitoring (PRS 10.2). SEC-016 requires external responses to redact restricted data; SEC-017 requires label enforcement to be tested for read, export and exchange.

3. Actors and Permissions

Actor Permission Conditions
Privacy officer Create / Update label taxonomy and label policies Through configuration lifecycle on UI-ESS-003; approval required
Security and Privacy Office (a privacy officer other than the author) Approve label taxonomy and label policies Not the author
Owning domain service Apply labels to its own records Using published taxonomy
Calling domain service Request label-aware decision As FR-ESS-AUZ-001

4. Preconditions - The label taxonomy for the deployment's jurisdiction profile is published.

5. Trigger - A decision request concerns a resource carrying one or more labels, or an export or exchange is prepared.

6. Functional Behaviour

  1. The system holds the label taxonomy as versioned configuration, with for each label: code, description, the sensitive category it represents, handling rules and the legal basis reference recorded by the privacy officer.
  2. The system publishes the taxonomy to all domains so that each domain labels its own resources and fields.
  3. The system evaluates labels in every decision that includes them and returns obligations naming the labels or fields that must be redacted or masked for this subject and purpose.
  4. The system applies the same evaluation to read, export and exchange actions; for exchange, the obligation also names the labels that must accompany released data where the selected profile requires it.
  5. The system returns Deny where a labelled resource may not be released at all to the subject and purpose.
  6. The system records in the decision trace which labels influenced the outcome.
  7. Where a record carries no label but belongs to a category that policy maps to a label by rule (for example by code or service type), the system applies the mapped label.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Resource labels Code list No Codes in active taxonomy Labels on the resource
Field labels Map of field to code list No Codes in active taxonomy Labels on specific fields
Action Code Yes Read / export / exchange and others Action requested
Recipient Reference Conditional Required for disclose and exchange Receiving party

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-AUZ-003-1 Unknown label code received Treated as most restrictive handling; stewardship item raised
PR-AUZ-003-2 Label restricts field for subject and purpose Redaction obligation for that field
PR-AUZ-003-3 Valid consent permits release of a labelled category to the recipient No redaction for that label
PR-AUZ-003-4 Category-to-label rule matches an unlabelled resource Label applied for the decision

9. Output Requirements

Output Format Recipient Description
Label taxonomy API resource / event All domains Published label definitions
Redaction obligations Decision obligation Calling domain service Fields or resources to withhold or mask
Label enforcement test report Report Privacy officer Read, export and exchange test results

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Caller cannot honour an obligation Caller declares unsupported obligation Decision treated as Deny by caller Logged as integration defect.
Taxonomy version mismatch Caller uses superseded version Evaluate using mapping to current version where defined; otherwise most restrictive Caller alerted to update.

11. State and Lifecycle Behaviour

The taxonomy follows the configuration version lifecycle. Labels on a record are part of that record and follow the owning domain's lifecycle.

12. Audit Requirements

  • Audited events: taxonomy change; decisions in which a label caused redaction or denial; exports and exchanges of labelled data.
  • The audit event records the labels involved, not the labelled content.

13. Security and Privacy Requirements

  • Sensitive categories, legal basis and labels are determined for each deployment; US-specific rules are not assumed to apply, and for Indonesia local personal data protection and health-sector requirements take precedence (PRS 25.3).
  • The fact that data was redacted is disclosed to the requester only where policy allows.

14. Acceptance Criteria

  • AC-01: Given a resource with a restricted label and a subject without the required relationship or consent, when a read is requested, then the decision carries a redaction obligation or is Deny as the policy defines.
  • AC-02: Given an external exchange request covering labelled and unlabelled data, when the response is prepared, then restricted data is redacted according to valid consent and legal basis (SEC-016 acceptance).
  • AC-03: Given the label policy test pack, when executed for read, export and exchange, then all cases pass (SEC-017 acceptance).
  • AC-04: Given an unknown label code, when evaluated, then the most restrictive handling is applied and a stewardship item is created.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • Sensitive categories, labels, consent model and emergency exceptions (PRS 28.1) are set by DEC-ESS-009, resolved 2026-11-17. All health data is specific personal data; seven configurable sensitive categories sit on top of it (mental health; HIV and other sexually transmitted infection; sexual and reproductive health; substance use; genetic results; violence and abuse cases; confidential patient). Resources carry HL7 FHIR security labels (confidentiality N/R/V plus a sensitivity category code), mapped to three access levels: Open, Sensitive (audited open) and Restricted. The exact legal-basis wording and the violence and abuse category are confirmed with legal advice in the privacy impact assessment.
  • Use of DS4P profiles depends on the jurisdictional implementation guide (SEC-017).

Requirement FR-ESS-AUZ-004: Scoped, Time-Limited and Revocable Delegated Authorization

Attribute Description
Requirement ID FR-ESS-AUZ-004
Requirement Name Scoped, time-limited and revocable delegated authorization
Requirement Type Functional
Module Authorization and Policy Decision Services
Functional Area FA-ESS-008 Delegated and scoped authorization
Priority Must
Criticality High
Requirement Status Draft
Source Contributes to INT-007 (primary Domain 2) and CDS-014 (primary Domain 3); PRS 13.2 (AI services access data through scoped, logged APIs)
Related Business Rule BR-ESS-008, BR-ESS-012
Related Workflow WF-ESS-003

1. Requirement Statement

The system shall issue and evaluate authorization grants for launched applications and patient-authorized third-party applications that are limited to a stated patient, data scope and purpose, that expire, and that can be revoked, and shall deny any access outside the grant.

2. Business Rationale

INT-007 requires patient-authorized third-party access to be limited to permitted patient, data and purpose scopes and to be revocable. CDS-014 requires launched applications to receive scoped, time-limited authorization and no unrestricted database access.

3. Actors and Permissions

Actor Permission Conditions
Patient or representative (through Domain 7) Grant / revoke third-party access Identity assured by Domain 7; grant recorded as a consent directive
Workforce user Launch an application in patient context Application registered; user authorized for the patient
Security officer Register applications and permitted scopes Approval required
Registered application Use grant Within scope and expiry

4. Preconditions - The application is registered with permitted scopes. - For patient-authorized access, an active consent directive names the recipient application and scope.

5. Trigger - Application launch from a clinical workspace; third-party authorization request; revocation.

6. Functional Behaviour

  1. The system registers each application with owner, purpose, permitted scopes and whether it may be launched by staff, authorized by patients, or both.
  2. The system issues a grant bound to application, subject (user or patient), patient context, scopes, purpose and expiry.
  3. The system limits the grant to the intersection of the application's permitted scopes, the launching user's own permissions and, for patient-authorized access, the consent directive.
  4. The system evaluates each request made under a grant through the policy decision service, including privacy labels.
  5. The system revokes a grant on request of the patient, the user, a security officer, or automatically when the supporting consent directive is withdrawn or expires, and denies subsequent use.
  6. The system records each grant, use, refusal and revocation in audit.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Application identifier Identifier Yes Registered and active Requesting application
Requested scopes Code list Yes Subset of permitted scopes Data and action scopes
Patient context Enterprise person identifier Yes Resolvable Patient concerned
Purpose Code Yes Value set Purpose of use
Expiry Duration Yes Within policy maximum Grant lifetime

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-AUZ-004-1 Requested scope exceeds permitted or consented scope Grant narrowed or refused per policy
PR-AUZ-004-2 Supporting consent withdrawn or expired Grant revoked
PR-AUZ-004-3 Grant expired or revoked Request denied

9. Output Requirements

Output Format Recipient Description
Grant / token Signed, time-limited token Application via Domain 2 gateway Scope, patient context, expiry
Grant register API resource Patient (through Domain 7), security officer Active and historical grants

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Unregistered application Registry check Refuse "This application is not approved."
Request outside patient context Context check Deny Application receives an authorization error.
Revoked grant used Revocation check Deny and audit Application receives an authorization error.

11. State and Lifecycle Behaviour

Grants are Active, Expired or Revoked. Application registrations follow the configuration version lifecycle.

12. Audit Requirements

  • Audited events: application registration and change, grant issue, each use (per audit policy), refusal, revocation and expiry.

13. Security and Privacy Requirements

  • Applications never receive database access; all access is through published APIs (CDS-014).
  • AI services, where approved, use the same scoped and logged mechanism (PRS 13.2).
  • Tokens are bound to the application and are not transferable.

14. Acceptance Criteria

  • AC-01: Given a grant for one patient and a read scope, when the application requests another patient's data, then the request is denied.
  • AC-02: Given a grant with a defined expiry, when it is used after expiry, then the request is denied (CDS-014 acceptance: scope, patient context, expiry and revocation tested).
  • AC-03: Given a patient-authorized grant, when the patient revokes it, then the next request by the application is denied (INT-007 acceptance).
  • AC-04: Given a launching user without permission for an action, when the launched application requests that action, then it is denied even if the application's permitted scopes include it.

15. Dependencies and Integration

  • Upstream dependencies: FR-ESS-AUZ-001; FR-ESS-CNS-001; Domain 7 (patient authorization interaction).
  • Downstream dependencies: Domain 2 gateways (token enforcement); Domain 3 (application launch).
  • Required events or APIs: IF-ESS-003; EVT-ESS-002.

16. Open Questions / Assumptions

  • SMART App Launch is adopted for staff-facing embedded applications and SMART Backend Services for system clients, on the selected identity provider (PRS 22.2; DEC-ESS-010, resolved 2026-11-17). Patient-authorised third-party access is in the first release, delivered with slice RC-6 (decided 2026-11-24 under DEC-PEX-007).
  • The boundary with Domain 2 is a working position: Domain 10 decides and records the grant; Domain 2 enforces tokens at the gateway (DEC-ESS-007).

← 5.1 Module Specification: Enterprise Identity and Access Management | Contents | Identifier index | 5.3 Module Specification: Consent and Privacy Preference Services →