MOD ESS 003 CNS
Domain specifications / D10-ESS / 5. Detailed Functional Requirements / 5.3 Module Specification: Consent and Privacy Preference Services
5.3 Module Specification: Consent and Privacy Preference Services¶
5.3.1 Module Overview¶
Module ID: MOD-ESS-003 (module code CNS)
Purpose: Hold the consent directive and privacy preferences as first-class data and supply the consent decision used at each relevant access and exchange (Architecture 9.2). Under the working boundary position, Domain 10 owns the directive and the policy decision; Domain 1 captures references at registration; Domain 6 manages consent evidence and disclosure restriction; Domain 7 presents preferences to patients.
Business Capabilities: - CAP-ESS-004 Consent and privacy preference management
Primary Actors: - Consent recording user (ACT-ESS-012), privacy officer (ACT-ESS-004), calling domain service (ACT-ESS-013)
Dependencies: - MOD-ESS-002, MOD-ESS-006, MOD-ESS-009, MOD-ESS-012. - Domain 1 for the enterprise person identifier and merge and unmerge events; Domain 6 for evidence documents; Domain 7 for the patient channel.
5.3.2 Functional Area: Consent Directive Management¶
Functional Area ID: FA-ESS-009
Description: Capture, versioning, scope, expiry and withdrawal of consent directives and communication or privacy preferences.
Scope: - Included: the directive record, consent model configuration, lifecycle and events. - Excluded: consent forms and scanned evidence (Domain 6); clinical procedure consent workflow content within theatre or ward processes (owning clinical domain), which may register its directive here.
5.3.3 Functional Area: Consent Decision and Enforcement Support¶
Functional Area ID: FA-ESS-010
Description: Evaluation of consent in access, export and exchange decisions, including exceptions with documented legal basis.
Scope: - Included: consent evaluation, exception catalogue, decision trace. - Excluded: enforcement in the calling service; disclosure logging of release-of-information requests (Domain 6).
5.3.4 Functional Area: Privacy Controls and Data Subject Requests¶
Functional Area ID: FA-ESS-011
Description: Policy for data minimization and masking, and coordination of data subject requests across owning domains.
Scope: - Included: masking and minimization policy, request intake and coordination, evidence. - Excluded: de-identified dataset preparation (Domain 8); retention and disposal execution (Domain 6); correction of a clinical record (owning domain).
5.3.5 Detailed Requirements¶
Requirement FR-ESS-CNS-001: Consent Directive Lifecycle¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-CNS-001 |
| Requirement Name | Consent directive lifecycle |
| Requirement Type | Functional |
| Module | Consent and Privacy Preference Services |
| Functional Area | FA-ESS-009 Consent directive management |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | HIM-003; PRS section 7.3 (Consent / Authorization entity); Architecture 5.1 (Consent & preference); SEC-017 (FHIR Consent) |
| Related Business Rule | BR-ESS-012, BR-ESS-013 |
| Related Workflow | WF-ESS-003 |
1. Requirement Statement
The system shall record consent directives with subject, purpose, scope, recipient, validity period, status, legal basis and provenance, shall version every change, shall support expiry and withdrawal, shall retain historical directives, and shall publish each change so that downstream enforcement reflects current valid consent.
2. Business Rationale
HIM-003 requires consent capture, version, scope, expiry, withdrawal and downstream enforcement. One authoritative directive prevents domains from acting on different versions of a patient's wishes.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Consent recording user | Create / Update (new version) / withdraw | Authorized for the patient and consent type in the consuming domain |
| Patient or representative (through Domain 7) | Create / withdraw permitted consent types | Identity assured by Domain 7; representative authority verified |
| Privacy officer | Mark Entered in Error; resolve conflicts | Reason mandatory |
| Calling domain service | Read current and historical directives | Purpose-limited; audited |
4. Preconditions - The patient is resolved to an enterprise person identifier. - The consent type is defined in the active consent model.
5. Trigger - A consent decision is recorded, changed or withdrawn; an expiry time is reached; a patient merge or unmerge event is received.
6. Functional Behaviour
- The system validates a submitted directive against the consent model for its type: permitted purposes, scopes, recipients, maximum validity and required legal basis.
- The system stores the directive as an immutable version with author, recording channel, time recorded, effective time and source.
- The system accepts a reference to supporting evidence held by Domain 6 and stores the reference and its content hash.
- The system records who gave consent (patient or named representative) and the representative's relationship and authority where applicable.
- The system sets a directive to Expired automatically at its validity end.
- The system records a withdrawal as a new version with effective time and, where given, reason.
- The system emits a consent-changed event (EVT-ESS-002) for each activation, supersession, expiry, withdrawal and entered-in-error.
- The system reassigns directives on patient merge and restores them on unmerge using Domain 1 events, and flags conflicting directives for privacy review.
- The system returns, on query, the directives effective at a stated point in time, so that past decisions can be reconstructed.
- The system can represent directives as FHIR Consent resources where the jurisdiction profile selects it (SEC-017).
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Subject | Enterprise person identifier | Yes | Resolvable in Domain 1 | Patient |
| Consent type | Code | Yes | In consent model | For example treatment, information sharing, research, communication preference |
| Decision | Code | Yes | Permit / deny | Direction of the directive |
| Purpose | Code list | Yes | Allowed for type | Purposes covered |
| Scope | Structured | Yes | Allowed for type | Data categories, labels, encounters or period covered |
| Recipient | Reference list | Conditional | Registered organization, role or application | Who may receive or access |
| Validity period | Start / end date-time | Start yes | End after start; within maximum | Period of validity |
| Legal basis | Code | Yes | Value set from jurisdiction profile | Basis for processing |
| Grantor | Structured | Yes | Patient or representative with relationship | Who gave consent |
| Evidence reference | Document reference | No | Resolvable; hash present | Link to evidence in Domain 6 |
| Withdrawal reason | Text / code | No | — | Reason where given |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CNS-001-1 | A new active directive for the same subject, type, purpose and recipient supersedes the previous one | Prior version Superseded; history retained |
| PR-CNS-001-2 | Conflicting active directives that the precedence rule cannot order | Most restrictive applied; conflict queued for privacy review |
| PR-CNS-001-3 | Validity end reached | Status Expired; event emitted |
| PR-CNS-001-4 | Directive referenced only at registration without required attributes | Stored as Proposed; not used to permit access |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Consent directive | API resource; FHIR Consent where selected | Authorized calling services | Current and historical versions |
| Consent-changed event | Event (EVT-ESS-002) | MOD-ESS-002, Domains 1, 2, 3, 6, 7, 8 | Change of consent state |
| Consent status report | Report (REP-ESS-006) | Privacy officer | Directives by type and status; expiring; conflicts |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Unknown consent type or disallowed scope | Consent model check | Reject | "This scope is not permitted for the selected consent type." |
| Missing legal basis | Mandatory field | Reject | "Select the legal basis." |
| Unresolvable patient | Identity check | Reject | "Patient could not be identified." |
| Representative authority not recorded | Grantor check | Reject or store as Proposed per policy | "Record the representative's authority." |
11. State and Lifecycle Behaviour
Directives are Proposed, Active, Superseded, Expired, Withdrawn or Entered in Error (section 4.3). No directive version is deleted.
12. Audit Requirements
- Audited events: create, supersede, withdraw, expire, entered in error, read by a service or user, conflict resolution.
- Events carry author, channel, patient, consent type and before-and-after status.
13. Security and Privacy Requirements
- Directives are Sensitive; access requires a purpose and is audited.
- The consent model, legal bases and maximum validity come from the jurisdiction profile and must be validated by legal advice during discovery (PRS 9.4, 10.4).
14. Acceptance Criteria
- AC-01: Given a valid directive, when recorded, then it is retrievable with subject, purpose, scope, recipient, validity, status, legal basis and provenance.
- AC-02: Given an active directive, when a withdrawal is recorded, then a consent-changed event is emitted and the directive's current status is Withdrawn while the prior version remains retrievable.
- AC-03: Given a directive with a validity end, when that time passes, then its status is Expired without user action.
- AC-04: Given a point in time in the past, when directives effective at that time are queried, then the versions then in force are returned.
- AC-05: Given a patient merge event, when processed, then the directives of both source identities are held under the surviving identity and any conflict is flagged.
15. Dependencies and Integration
- Upstream dependencies: Domain 1 (identity, registration references), Domain 6 (evidence), Domain 7 (patient channel).
- Downstream dependencies: FR-ESS-CNS-002; all domains that enforce consent.
- Required events or APIs: IF-ESS-005; EVT-ESS-002.
16. Open Questions / Assumptions
- The consent model is set by DEC-ESS-009 (PRS 28.1), resolved 2026-11-17. Care, the medical record, claims and statutory reporting, including sending to SATUSEHAT, rest on legal obligation, contract and vital interest, not on consent. Explicit consent, opt-in and recorded per purpose, is used only for access by other facilities through the national exchange, release to third parties not required by law, identifiable secondary use and non-care communication.
- Consent ownership between Domains 1, 6, 7 and 10 follows the shared working position (DEC-ESS-002).
Requirement FR-ESS-CNS-002: Consent-Aware Access and Disclosure Decisions¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-CNS-002 |
| Requirement Name | Consent-aware access and disclosure decisions |
| Requirement Type | Functional |
| Module | Consent and Privacy Preference Services |
| Functional Area | FA-ESS-010 Consent decision and enforcement support |
| Priority | Must |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | SEC-008; HIM-003; SEC-017; Architecture 9.2 |
| Related Business Rule | BR-ESS-012, BR-ESS-014 |
| Related Workflow | WF-ESS-003 |
1. Requirement Statement
The system shall evaluate the patient's current valid consent directives in authorization decisions for access, export, disclosure and exchange, shall record the legal basis for each decision that relies on or overrides consent, and shall support defined exceptions, so that consent withdrawal affects future access according to approved policy.
2. Business Rationale
SEC-008 requires consent-aware access and disclosure controls with documented legal basis and exception handling. Architecture 9.2 requires evaluation of legal basis, preferences, recipient, purpose, scope, validity, revocation and emergency exceptions.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Policy decision service | Read directives for evaluation | Internal to Domain 10 |
| Calling domain service | Request consent-aware decision | As FR-ESS-AUZ-001 |
| Privacy officer | Create / Update consent policy and exception catalogue | Authored as policy types through the configuration lifecycle on UI-ESS-003; approval required |
4. Preconditions - An active consent policy maps consent types to the actions, purposes and resource categories they govern.
5. Trigger - A decision request for an action and purpose that the consent policy governs.
6. Functional Behaviour
- The system determines from the consent policy whether the requested action and purpose require consent, are permitted on another legal basis, or are restricted by a deny directive.
- The system retrieves the directives effective at the time of the request for the patient and matches purpose, scope and recipient.
- The system returns Permit where a valid directive or another documented legal basis covers the request, and Deny or a redaction obligation where a restricting directive applies or required consent is absent.
- The system applies configured exceptions (for example emergency treatment under FR-ESS-AUZ-002, or a legal obligation) only where the exception catalogue allows, and records the exception type and legal basis in the decision.
- The system applies withdrawal and expiry to decisions made after the effective time. Its effect on data already disclosed, and on cached or replicated copies in other domains, follows the approved policy and is carried in the consent-changed event so that the owning domains act on it.
- The system makes the same evaluation available for bulk export and exchange preparation, returning per-patient outcomes.
- The system returns the basis of each decision (directive version or exception) in the decision trace.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Patient reference | Enterprise person identifier | Yes | Resolvable | Subject of the data |
| Action and purpose | Codes | Yes | Value sets | What is requested and why |
| Recipient | Reference | Conditional | Required for disclose and exchange | Receiving party |
| Resource category and labels | Codes | Yes | Registered | What data is concerned |
| Emergency context | Session reference | No | Active emergency access session | Supports emergency exception |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CNS-002-1 | Consent required and no valid directive | Deny (or Deny with emergency override available for treatment access by permitted roles) |
| PR-CNS-002-2 | Deny directive matches | Deny or redact, unless a catalogued exception applies |
| PR-CNS-002-3 | Exception applied | Decision records exception type and legal basis; elevated audit |
| PR-CNS-002-4 | Consent service data unavailable | Treated as missing attribute under PR-AUZ-001-3 |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Consent outcome | Part of decision response | Calling domain service | Permit, deny or obligations with basis |
| Consent enforcement test report | Report | Privacy officer | Results for read, export and exchange |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Purpose not supplied where policy requires it | Mandatory by policy | Deny | "State the purpose of access." |
| Recipient not registered | Registry check | Deny | "Recipient is not recognized." |
| Conflicting directives | PR-CNS-001-2 | Most restrictive | Privacy review item raised. |
11. State and Lifecycle Behaviour
No state of its own; decisions are immutable. The consent policy follows the configuration version lifecycle.
12. Audit Requirements
- Audited events: every decision that denies on consent grounds, every exception applied, and every disclosure or exchange permitted on the basis of a directive.
- The audit event records the directive version or exception relied on.
13. Security and Privacy Requirements
- Exceptions are limited to the approved catalogue; adding an exception type requires privacy and legal approval.
- Decision responses do not reveal the content of a directive to the requester beyond what is needed to act.
14. Acceptance Criteria
- AC-01: Given an active directive permitting sharing with a named recipient, when an exchange to that recipient is requested within scope, then the decision is Permit and records the directive version.
- AC-02: Given that the directive is then withdrawn, when the same exchange is requested after the withdrawal's effective time, then the decision is Deny (SEC-008 acceptance).
- AC-03: Given a deny directive and an active emergency access session for treatment, when access is requested, then the outcome follows the exception catalogue and the decision records the exception and legal basis.
- AC-04: Given the consent test pack for read, export and exchange, when executed, then all cases pass (SEC-017 acceptance).
15. Dependencies and Integration
- Upstream dependencies: FR-ESS-CNS-001; FR-ESS-AUZ-001; FR-ESS-AUZ-003.
- Downstream dependencies: Domains 2 (exchange), 3, 4, 6 (disclosure), 7 (portal and proxy access), 8 (secondary use).
- Required events or APIs: IF-ESS-003, IF-ESS-005; EVT-ESS-002.
16. Open Questions / Assumptions
- Withdrawal applies from its timestamp onward (DEC-ESS-009, resolved 2026-11-17): it stops consent-based sharing and secondary use; it does not delete the record (25-year minimum retention) and does not stop disclosures required by law; copies already released are not recalled.
Requirement FR-ESS-CNS-003: Privacy Controls and Data Subject Request Coordination¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ESS-CNS-003 |
| Requirement Name | Privacy controls and data subject request coordination |
| Requirement Type | Functional |
| Module | Consent and Privacy Preference Services |
| Functional Area | FA-ESS-011 Privacy controls and data subject requests |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | SEC-012; PRS section 10.4 |
| Related Business Rule | BR-ESS-014, BR-ESS-031 |
| Related Workflow | WF-ESS-003 |
1. Requirement Statement
The system shall support data minimization and masking through policy obligations returned with authorization decisions, and shall provide a workflow that receives, routes, tracks and evidences data subject requests, as applicable to the jurisdiction, across the domains that own the affected data.
2. Business Rationale
SEC-012 requires data minimization, masking or de-identification, retention and data subject request workflows as applicable. These span every domain, so a single policy and coordination point is needed.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Privacy officer | Create / Update masking and minimization policy; manage requests | Masking and minimization rules are authored as a policy type on UI-ESS-003; requests are managed on UI-ESS-006; policy changes require approval |
| Owning domain steward | Complete assigned request tasks | For data owned by that domain |
| Requester (through Domain 6 or Domain 7 channel) | Create request | Identity verified by the receiving domain |
4. Preconditions - The request types applicable to the jurisdiction are configured. - The data ownership register (FR-ESS-DGV-001) identifies the owning domain for each data category.
5. Trigger - A decision request for which a masking rule applies; a data subject request is received.
6. Functional Behaviour
- The system holds masking and minimization rules by data category, role, purpose and environment, and returns them as obligations (mask, truncate, omit) with decisions.
- The system registers a data subject request with type, subject, requester, verification reference, received time and due time.
- The system uses the ownership register to create tasks for each owning domain and tracks their completion.
- The system does not itself alter or delete another domain's records; each owning domain performs the action through its own functions and reports the outcome (BR-ESS-031).
- The system records the overall outcome (fulfilled, partially fulfilled, refused) with basis, and retains the evidence.
- The system escalates requests approaching or past their due time.
- The system exposes the policy that non-production environments use masked or synthetic data unless real data is explicitly approved (PRS 8.4) as a rule that environment provisioning in Domain 2 consumes.
- A patient's request to correct the record is made once, as the portal correction request of FR-PEX-PRO-002, and is decided by the owning domain: record content through Domain 6 (FR-HIM-RAC-003), demographic details through Domain 1. Only where the jurisdiction profile makes correction a statutory data subject right is it also registered here, as a data subject request of type correction that refers to the correction request by its number. There is no second form and no second intake: the register takes its state and outcome from the correction request (Amended or Accepted as fulfilled, Partly Amended as partially fulfilled, Declined as refused, Withdrawn as withdrawn) and creates no owning-domain task of its own. Where correction is not a statutory right, no data subject request is registered. In the Indonesia profile correction is a statutory right under UU 27/2022, so every correction request is registered here by reference.
- In the Indonesia profile the request types and response times follow UU 27/2022 on personal data protection (set 17 Nov 2026, GAP-ESS-005). The due time runs in calendar hours from the time the receiving domain records identity verification. A warning goes to the privacy officer at 48 hours and the request is overdue at 72 hours.
| Request type | What the hospital does | Response time | Usual outcome for medical record data |
|---|---|---|---|
| Information | Tells the subject the legal basis, purpose, categories of data, recipients and retention period | 3 x 24 hours | Fulfilled from the published privacy notice |
| Access and copy | Gives access to, or a copy of, the subject's personal data | 3 x 24 hours | Fulfilled through release of information in Domain 6, or the portal in Domain 7 |
| Correction | Corrects inaccurate or incomplete data | 3 x 24 hours to respond; record content decided within 30 days and demographic details within 3 x 24 hours (CFG-PEX-024) | Registered by reference to the correction request (part 6.8) |
| Erasure | Deletes or destroys personal data | 3 x 24 hours | Refused while a legal retention period applies (25 years for the medical record, PMK 24/2022); fulfilled for consent-based data such as marketing contacts or closed portal accounts past their retention |
| Withdrawal of consent | Stops processing that rests on consent | 3 x 24 hours | Fulfilled for consent-based purposes (DEC-ESS-009); care, the record, claims and statutory reporting continue on their own legal basis |
| Objection to automated decisions | Reviews a decision made only by automated processing that has a significant effect | 3 x 24 hours | Fulfilled by human review; clinical decision support never acts without a clinician |
| Restriction | Suspends or limits processing | 3 x 24 hours | Fulfilled for consent-based purposes; for care processing, refused with the basis or applied as a privacy label |
| Portability | Gives the data in a common machine-readable format, or sends it to another controller | 3 x 24 hours | Fulfilled as a FHIR bundle (JSON) or PDF through Domain 6 release of information |
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Request type | Code | Yes | Configured types for jurisdiction | For example access, correction, restriction |
| Source request reference | Reference | For a correction registered by reference | The correction request number in Domain 6 or Domain 7 | Links the register entry to the one correction request (part 6.8) |
| Subject | Enterprise person identifier | Yes | Resolvable | Data subject |
| Requester and verification reference | Structured | Yes | Verification recorded by receiving domain | Who asked and how identity was verified |
| Due time | Date-time | Yes | Derived from configured timeframe | Deadline |
| Outcome and basis | Code, text | Yes at closure | — | Result |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CNS-003-1 | A masking rule applies to subject, purpose and category | Mask obligation returned |
| PR-CNS-003-2 | Request affects data in several domains | One task per owning domain |
| PR-CNS-003-3 | Request conflicts with retention or legal hold | Routed to Domain 6 for determination; outcome recorded |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Masking obligations | Decision obligation | Calling domain service | Fields to mask or omit |
| Request tasks | Task | Owning domain stewards | Actions required |
| Data subject request register | Report (REP-ESS-006) | Privacy officer | Requests, status, timeliness, outcome |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Request type not applicable in jurisdiction | Configuration check | Reject with explanation | "This request type is not configured." |
| Owning domain not identified | Ownership register lookup fails | Route to privacy officer | Stewardship item raised. |
| Correction request entered directly as a data subject request | Request type correction without a source request reference | Rejected | "Correction requests are made from the item in the portal or at the medical records unit." |
11. State and Lifecycle Behaviour
Requests are Received, In Progress, Fulfilled, Partially Fulfilled, Refused or Withdrawn.
12. Audit Requirements
- Audited events: request registration, task assignment, each domain's reported action, closure, policy change.
13. Security and Privacy Requirements
- The applicable rights, timeframes and exceptions are those of UU 27/2022 in the Indonesia profile (part 6.9); another jurisdiction profile sets its own (PRS 10.4).
- Request records are Sensitive.
14. Acceptance Criteria
- AC-01: Given a masking rule for a data category and role, when that role reads the data, then the decision carries the mask obligation and the calling service presents masked values.
- AC-02: Given a data subject request affecting two domains, when registered, then a task exists for each owning domain and the request closes only when both report an outcome.
- AC-03: Given a request past its due time, when the timer fires, then it is escalated to the privacy officer.
- AC-04: Given privacy tests defined in the privacy impact assessment, when executed, then the approved controls are demonstrated (SEC-012 acceptance).
- AC-05: Given an erasure request for medical record data within its 25-year retention period, when the request is decided, then the outcome is Refused with the retention basis recorded, and the response is sent within 3 x 24 hours of verification.
15. Dependencies and Integration
- Upstream dependencies: FR-ESS-DGV-001; FR-ESS-AUZ-001; MOD-ESS-008.
- Downstream dependencies: Domain 6 (retention, disclosure), Domain 8 (de-identification), all owning domains.
- Required events or APIs: IF-ESS-003, IF-ESS-010.
16. Open Questions / Assumptions
- Update 17 Nov 2026 (GAP-ESS-005, closed): the data subject rights and the 3 x 24 hours response time of UU 27/2022 are set in part 6.9.
- Update 2026-11-17: a correction request is registered here by reference only, and only where the jurisdiction profile makes correction a statutory right (part 6.8).
- SEC-012 is treated as primarily owned here for policy and coordination; de-identification is delivered by Domain 8 and retention by Domain 6 (section 17.1).
← 5.2 Module Specification: Authorization and Policy Decision Services | Contents | Identifier index | 5.4 Module Specification: Terminology Service →