Skip to content

Domain specifications / D07-PEX / 9. Security, Privacy, and Compliance Requirements

9. Security, Privacy, and Compliance Requirements

9.1 Domain Security Model

PEX is the HIS's main internet-facing surface for external users, which makes it a boundary where the trust level changes. The domain's security responsibilities are: assuring that the person at the device is the account holder (FR-PEX-ACC-002); assuring that the account is linked to the right patient (FR-PEX-ACC-001, FR-PEX-ACC-004); limiting representatives to their grant (FR-PEX-ACC-003); showing only released, permitted information (FR-PEX-REL-001 to 004); minimising what leaves the authenticated session (FR-PEX-NTF-001); and emitting complete audit (FR-PEX-NTF-002).

Domain 2 (ISE) provides the web application firewall, gateways, rate limiting, network segmentation, transport encryption, key and secret management and security monitoring. Domain 10 (ESS) provides identity services, the authorization policy decision, consent decisions and the audit store. PEX supplies the attributes those services need (link state, grant scope, requester type) and enforces their decisions at its service boundary. PEX services have no direct network path to other domains' data stores, and patient-facing clients have no path to any service other than through the gateways.

Patient accounts are a separate identity population from workforce identities. A member of staff who is also a patient uses a patient account for their own record; workforce credentials give no access to the patient portal, and patient credentials give no access to staff functions.

9.2 Role-Based and Attribute-Based Access

Role Resource Action Conditions
Patient Own released results, documents, instructions, appointments, statements, messages, forms, preferences, account activity Read; create requests, messages, submissions; update own preferences Active link; multi-factor session; consent and release decisions permit
Authorized representative The same resources for the patient acted for As permitted by grant scope Active grant; scope covers function and sensitivity category; acting-for context selected
Registration / front-desk staff Invitations, proofing records, link and grant status Create invitation; record proofing; activate; reinstate Facility assignment; no access to released clinical content through PEX
Scheduling staff Appointment requests (through Domain 1) and appointment-topic threads Read; decide in Domain 1; reply Pool membership; facility
Treating clinician Release decisions for own patients' items; assigned threads; submissions for review Release, hold, lift hold; reply; review; file to record Care relationship or result responsibility (SEC-003, SEC-013)
Message-pool staff Threads in own pool Read, reply, reassign, close Pool membership; facility
Billing staff Billing-topic threads Read, reply Pool membership
HIM officer Correction requests on record content; portal access records Read; decide through Domain 6 HIM role
Privacy officer Links, grants, flagged enrolments, access history Review, suspend, revoke; query audit through Domain 10 Privacy role; access itself audited
Portal support agent Account status and security settings Unlock; trigger recovery; suspend at holder's request No access to clinical content, messages or submissions
Patient-engagement administrator Forms, education catalogue, templates, reminder schedules, pools, topics Configure through change control No access to patient data by virtue of this role
Release-policy steward Release rule sets Draft, test, submit for approval Cannot approve own rule set
Clinical governance approver Release rule sets, clinical forms, education items Approve Separation from author
Patient-authorized application Released data within granted scopes Read Valid, unrevoked authorization; release filter
PEX service identities Other domains' APIs Scoped calls Non-human, rotated, separately audited (PRS 4.2)

Break-the-Glass (SEC-007) is a workforce emergency-access process and is not offered to patients or representatives. Staff access to a patient's PEX records in an emergency follows the Domain 10 Break-the-Glass process.

9.3 Privacy and Data Classification

Data Category Classification Access Restrictions Protection Requirements
Released results, documents, instructions (projections) Sensitive Patient; representative within scope; never cached beyond policy Encryption in transit and at rest for any read model; audit of every view; fail closed
Messages and attachments Sensitive Parties to the thread; pool members with access to the patient Encryption; immutable; excluded from logs and analytics events
Form responses and patient-reported outcomes Sensitive Patient; representative within scope; reviewers Encryption; provenance label; minimised analytics feed
Appointment requests (reason text), education assignments Confidential (health-related) Patient; scheduling or assigning staff Encryption; excluded from notifications
Billing views Confidential Patient; representative within scope Read at view time; line descriptions filtered for representatives
Online payment Confidential Patient; representative within scope Card data and bank credentials are entered only on the payment provider's hosted page and never reach the HIS; the hand-over carries only the provider's order reference (FR-PEX-BIL-002)
Identity-proofing records and evidence of representative authority Sensitive Authorized front-desk staff; privacy officer Encryption; restricted retrieval; separate audit
Credentials and authentication factors Sensitive (security) Identity service only Not stored recoverably; managed by the approved identity service
Contact points and communication preferences Confidential (personal data) Account holder; notification service Verification before use; change notification
Release decisions and rule sets Internal (decisions reference patients: Confidential) Clinicians, stewards, governance Change control; audit
Notification records and engagement events Confidential Engagement staff by role; Domain 8 under governance Minimised content; retention class
Portal configuration, templates, form definitions Internal Administrators Versioned; change-controlled

  • Consent requirements. PEX obtains a consent and restriction decision from Domain 10 before releasing or displaying results and documents and before serving a patient-authorized application (HIM-003, SEC-008). Acceptance of portal terms and the privacy notice is recorded at enrolment with its version. Consent to electronic communication and its legal basis are defined in the jurisdiction profile.
  • Purpose-of-use restrictions. Patient and representative access carries the purpose "patient access". Staff access to PEX records carries the purpose of the staff function (care, scheduling, billing, HIM, privacy review). Secondary use of engagement data by Domain 8 follows its governance and, for research or quality improvement, ANA-005.
  • Sensitive information segmentation. Privacy labels from owning domains drive release rules and representative filtering (SEC-016, FR-PEX-REL-004). Labels and the sensitive-category list are those of the Domain 10 privacy segmentation model (PRS 28.1; DEC-ESS-009, resolved 2026-11-17).
  • Emergency access procedures. None for patients. A patient who cannot sign in obtains information through hospital staff or the Domain 6 release-of-information process.
  • Access review and revocation. Representative grants expire or are reviewed (BR-PEX-007); dormant accounts and Active grants are listed for periodic recertification (SEC-004). Links and grants can be suspended or revoked at any time by authorized staff, and by the patient for their own grants.
  • Withdrawal. Consent withdrawal affects future access according to approved policy (SEC-008) and is applied by re-evaluating release decisions.

9.5 Audit and Accountability

PEX emits audit events for sign-in and sign-out, enrolment and proofing steps, link and grant lifecycle changes, every view, download and print of patient information, every submission, every release, hold and withdrawal, every consent action, every preference and contact-point change, every staff view of patient PEX records, every denied request, and every configuration change. Events carry the fields required by PRS 10.3 and SEC-019 and identify both the representative and the patient where a representative acts.

Audit records are stored, integrity-protected and forwarded to security monitoring by Domain 10 and Domain 2; PEX guarantees delivery through its outbox and fails Sensitive views when the audit entry cannot be recorded (PR-NTF-002-1). Access to audit records follows Domain 10 rules and is itself audited. Portal access records for released documents are available to Domain 6 for its record access and disclosure audit. Retention of audit records is set by Domain 10 policy; the PRS proposes 100% audit coverage of defined sensitive-data access events as a scorecard indicator (PRS section 27).

Domain 7 audit event types. Set 17 Nov 2026. Each auditable action of Domain 7 maps to one event type and each event type to one category of the minimum audit event catalogue of Domain 10. Each event carries the common fields and the fields that its category makes mandatory; where a representative acts, the event names both the representative's account and the patient. A rejected or denied action uses the same event type with outcome failure. These event types are registered in the Domain 10 audit service before Domain 7 goes live; the audit service quarantines events of an unregistered type.

Event type code Auditable action Category
pex.record.view Patient or representative view of results, documents, instructions, appointments, statements, messages, forms and the pathway plan Record access
pex.record.export Download or print of a released document or statement Record access
pex.staff.view Staff view of a patient's PEX records (link history, submissions, messages, release decisions, engagement history) Record access
pex.link.change Enrolment, identity-proofing step, account link activation, re-pointing, suspension, reinstatement and revocation, including changes driven by merge, unmerge and encounter reattribution Record change
pex.grant.change Representative grant activation, scope change, suspension, revocation and recertification decision Record change
pex.submission Appointment request, form response, patient-reported submission, correction request and message sent, and staff review outcome of a submission Record change
pex.preference.change Communication preference and contact-point change and verification Record change
pex.release Release decision: automatic or clinician release, hold, "not for portal release" marking, withholding, withdrawal and supersession, and clinician release of the pathway plan Disclosure and exchange
pex.thirdparty.change Patient grant confirmation and revocation of third-party application access Disclosure and exchange
pex.session Portal sign-in success and failure, step-up, sign-out, session end on suspension and account recovery Authentication and session
pex.access.deny Request denied by the Domain 10 policy decision, including items hidden by sensitivity or grant scope Authorization and emergency access
pex.consent.action Consent action submitted from the portal and consent directive read for display Consent and privacy
pex.config.change Change, approval, activation and rollback of release rule sets, patient-facing form versions, notification templates and Domain 7 configuration Administration and configuration
pex.event.replay Re-drive from the exception list, replay and reconciliation actions on Domain 7 events and commands Administration and configuration
pex.service.denied Denied service call or misuse of a service identity at a Domain 7 service boundary; malware detected on a patient upload Security

Domain 7 has no event types of its own in the category Audit access. Audit queries are emitted by Domain 10. Audit completeness for Domain 7 (KPI-ESS-001) is measured against this list.

9.6 Regulatory and Standards Mapping

The sources name no statute or clause for patient portals. Indonesian law sets no specific patient-portal obligation; the portal serves the general patient-access, data-protection and electronic-transaction rules below. The clause-level mapping for the Indonesia profile was closed on 17 Nov 2026 on common practice (GAP-PEX-009); the hospital's legal adviser confirms it against the current article text before go-live, which may tighten a setting but does not reopen the design (PRS 9.4, 10.4, 20.3). "Mandatory" below means the PRS states the obligation as a Must or as a "shall"; it does not assert a legal status.

Requirement ID Regulation / Standard Applicable Clause Implementation Evidence
COMP-PEX-001 Privacy impact assessment required by PRS 10.4 (mandatory per PRS); data protection impact assessment for high-risk processing of specific personal data, UU 27/2022 UU 27/2022 article 34 Privacy impact assessment covering external-user access, representative access, release policy, notifications and third-party applications, completed before go-live Approved assessment and action closure
COMP-PEX-002 Indonesian personal data protection and health-sector law (jurisdiction-specific): UU 17/2023 on Health; PMK 24/2022 on Medical Records; UU 27/2022 on Personal Data Protection (PDP) UU 17/2023: patient rights, including access to the information in the medical record, and confidentiality. PMK 24/2022 article 26: the content of the medical record belongs to the patient; article 34: disclosure with consent, and for a deceased patient with the consent of the closest family or the heirs. UU 27/2022: health data is specific personal data (article 4); data subject rights of access, correction and restriction (articles 5 to 13), answered within 3 x 24 hours; children's data with parent or guardian consent (article 25); persons with disabilities through a guardian (article 26); breach notice within 3 x 24 hours (article 46); transfer abroad only under articles 55 and 56 Released results and documents are the patient's access route under UU 17/2023 and PMK 24/2022 (FR-PEX-REL-002); correction requests decided within 3 x 24 hours (CFG-PEX-024); representative rules for children, adults lacking capacity and deceased patients (CFG-PEX-006); heirs through a Domain 6 disclosure request; retention from the enterprise baseline (7.6); erasure refused while a retention period applies; portal data hosted in Indonesia on the private cloud; breach handling by the Domain 10 incident process Legal mapping sign-off; profile configuration; test evidence (TEST-PEX-007, TEST-PEX-009, TEST-PEX-026)
COMP-PEX-003 Indonesia deployment profile, PRS 9.4 (jurisdiction-specific): SATUSEHAT SATUSEHAT places no patient-portal obligation on the hospital; patients see their national summary in the Ministry's own SATUSEHAT Mobile application No SATUSEHAT interface in PEX; national exchange stays with Domain 6 (DEC-HIM-018). Messaging is non-urgent communication, not a telemedicine consultation: no diagnosis or prescription is given through it, and narcotics and psychotropics are never prescribed through the portal (Permenkes 5/2023) Country profile inspection; message topic configuration
COMP-PEX-004 WCAG 2.2 AA or another recognized accessibility standard, NFR-011 (PRS target "where applicable") Level AA success criteria UX-PEX-001 to UX-PEX-003 Accessibility audit report
COMP-PEX-005 HL7 FHIR Consent and security labels; HL7 DS4P where selected, SEC-017 (mandatory per PRS where selected by the jurisdictional guide) As selected Label-aware release and application access (FR-PEX-REL-004, FR-PEX-ACC-005) Consent and label enforcement tests for read and exchange
COMP-PEX-006 SMART on FHIR, where used, CDS-014 (mandatory per PRS if used) As selected Scoped, time-limited, revocable authorization for patient-authorized applications Token scope, expiry and revocation tests
COMP-PEX-007 ISO/IEC 27799 and ISO/IEC 27001-family practices, PRS 20.2 (reference for design alignment; optional unless adopted) ISO/IEC 27001:2022 Annex A A.5.15 to A.5.18 (access control, identity, authentication information, access rights), A.8.5 (secure authentication), A.8.15 (logging), A.8.25 to A.8.29 (secure development and testing); ISO 27799:2016 clauses 9 and 12.4. Adopted as alignment references through the D02-ISE clause table; not legal obligations External-user access controls, audit, secure development evidence for PEX Security assessment report
COMP-PEX-008 NISTIR 7804 usability guidance, PRS 20.2 (reference; optional) Not applicable Task-based usability evaluation of patient flows (UX-PEX-008) Usability test report
COMP-PEX-009 US provisions cited in the PRS source material (HIPAA, 21st Century Cures Act information-blocking rules) Not applicable outside the United States unless a deployment is subject to them (PRS 10.4, 25.3) Not implemented as requirements; release timing remains configurable so that a jurisdiction with access-timing rules can be served Jurisdiction profile decision record
COMP-PEX-010 Electronic information, transactions and systems: UU 11/2008 on ITE as amended by UU 19/2016 and UU 1/2024; PP 71/2019 on electronic systems; Permenkominfo 5/2020 on private electronic system operators UU ITE articles 5 and 11 (electronic records and signatures as legal evidence); PP 71/2019 (operator duties, registration, reliability and security) Electronic consent choices and notice acknowledgements are recorded with identity, multi-factor sign-in, time, text version and audit, so they are valid electronic records (FR-PEX-PRF-001, FR-PEX-MSG-002); informed consent for procedures (UU 17/2023) is not given through the portal; the hospital registers the portal as a private electronic system operator (PSE) before go-live PSE registration record; audit sample of consent and acknowledgement records

← 8. Integration and Interoperability Requirements | Contents | Identifier index | 10. Non-Functional Requirements →