Skip to content

Domain specifications / D07-PEX / 7. Domain Data Requirements

7. Domain Data Requirements

7.1 Data Ownership

Data Entity Ownership System of Record Consuming Domains
Portal account and account link Owned PEX (MOD-PEX-002) Domain 10 (authorization attributes), Domain 8
Identity-proofing record (portal) Owned PEX (MOD-PEX-002) Domain 10 audit; privacy officer
Representative grant Owned PEX (MOD-PEX-002) Domain 10 (authorization attributes), Domain 8
Appointment request Owned PEX (MOD-PEX-003) Domain 1, Domain 8
Reminder entry and confirmation response Owned PEX (MOD-PEX-003) Domain 1 (confirmation), Domain 8
Release rule set Owned (content approved by clinical governance) PEX (MOD-PEX-004) Domain 3 (display of rule to clinicians)
Release decision Owned PEX (MOD-PEX-004) Domain 2 FHIR facade, Domain 3, Domain 6, Domain 8
Message thread and message Owned PEX (MOD-PEX-005) Domain 3 (when filed), Domain 8 (metadata)
Form assignment and form response; patient-reported outcome Owned PEX (MOD-PEX-006, 007) Domain 3, Domain 1 (administrative forms), Domain 8, Domain 9 through Domain 3
Correction request Owned PEX (MOD-PEX-007) Domain 1, Domain 6, Domain 3
Education assignment Owned PEX (MOD-PEX-006) Domain 3 (visibility to clinicians), Domain 8
Communication preference and portal contact points Owned PEX (MOD-PEX-009) Domain 10 notification service, Domain 1 (as patient-reported update)
Notification record and engagement history Owned PEX (MOD-PEX-010) Domain 8
Patient identity, demographics, legal representative record Consumed Domain 1 (ADM) PEX
Appointment, encounter Consumed Domain 1 (ADM) PEX
Clinical documents, instructions, result review state Consumed Domain 3 (CLI) PEX
Diagnostic results and reports Consumed Domain 4 (ANC), presented through Domain 3 PEX
Invoice, payment, account balance Consumed Domain 5 (FIN) PEX
Document class, lifecycle, disclosure restriction Consumed Domain 6 (HIM) PEX
Consent directive and policy decision Consumed Domain 10 (ESS) PEX
Notification delivery status Consumed Domain 10 (ESS) PEX
Audit event Produced by PEX; stored by Domain 10 Domain 10 (ESS) Privacy officer, Domain 6
Third-party application authorization Consumed Domain 10 (ESS) PEX
Form templates (clinical), terminology, value sets Consumed Domain 3 (CLI), Domain 10 (ESS) PEX

7.2 Data Entity Catalogue

Entity ID Entity Name Description Primary Key Data Owner
DE-PEX-001 Portal Account A person's portal identity (patient or representative), referencing the identity service subject. Account ID Patient Experience Office
DE-PEX-002 Portal Account Link Link between a portal account and one enterprise person identifier, with state and proofing reference. Link ID Patient Experience Office / Security and Privacy Office
DE-PEX-003 Identity-Proofing Record Method, evidence reference, verifier and outcome of proofing for a link or grant. Proofing ID Security and Privacy Office
DE-PEX-004 Representative Grant Scoped, time-bounded authority for one account to act for one patient. Grant ID Security and Privacy Office
DE-PEX-005 Appointment Request Patient request for a new, changed or cancelled appointment and its outcome. Request ID Scheduling Operations (process) / PEX (record)
DE-PEX-006 Reminder Entry A scheduled or sent reminder or confirmation for an appointment, with response. Reminder ID Patient Experience Office
DE-PEX-007 Release Rule Set Versioned, effective-dated set of release rules approved by clinical governance. Rule set ID + version Clinical Governance Committee
DE-PEX-008 Release Decision The release state of one item version for one patient, with rule, inputs and actor. Decision ID Clinical Governance (policy) / PEX (record)
DE-PEX-009 Message Thread A conversation with topic, context, pool, state and timers. Thread ID Patient Experience Office
DE-PEX-010 Message One immutable message in a thread, with sender, time, read status and attachment references. Message ID Patient Experience Office
DE-PEX-011 Patient-Facing Form Version Published form definition version available for patient completion. Form ID + version Clinical Governance (clinical forms) / Patient Experience Office
DE-PEX-012 Form Assignment Assignment of a form version to a patient in a context, with due date and state. Assignment ID Patient Experience Office
DE-PEX-013 Form Response / Patient-Reported Submission Immutable submitted answers or reported item with provenance and score. Response ID Patient Experience Office (record); reviewer's domain on acceptance
DE-PEX-014 Submission Review Review outcome for a submission with reviewer and link to the resulting record. Review ID Clinical owner of the review route
DE-PEX-015 Correction Request Request to correct an item, routing and outcome. Request ID HIM / Registration governance (decision); PEX (record)
DE-PEX-016 Education Assignment Education item version assigned to a patient, with opened status. Assignment ID Patient Experience Office
DE-PEX-017 Communication Preference Per-category channels, language, content level and verified contact points. Preference ID Patient (content); Patient Experience Office (steward)
DE-PEX-018 Notification Record A notification request with template version, channel and delivery status. Notification ID Patient Experience Office
DE-PEX-019 Engagement Event Append-only record of an engagement fact for a patient. Event ID Patient Experience Office

7.3 Entity Attributes

All entities carry created and last-changed timestamps in UTC, the acting identity and a version number. Patient references use the enterprise person identifier from Domain 1; facility context is carried on every transactional entity (REF-002 section 6).

Attribute Data Type Required Constraints Description
link_id Identifier Yes Unique Primary key
account_id Identifier Yes References DE-PEX-001 Account holder
enterprise_person_id Identifier Yes Valid in Domain 1; at most one non-terminal patient-holder link per value Linked patient
state Code Yes Pending Verification, Active, Suspended, Revoked, Rejected Lifecycle state
proofing_id Identifier Yes when Active References DE-PEX-003 Evidence of proofing
state_reason Code Yes on Suspended / Revoked Reason list Why the state changed
identity_event_ref Identifier No Domain 1 event ID Merge / unmerge that affected the link
activated_at / ended_at Timestamp Conditional UTC Validity
terms_version Identifier Yes Current at acceptance Terms and privacy notice accepted

Entity DE-PEX-004: Representative Grant

Attribute Data Type Required Constraints Description
grant_id Identifier Yes Unique Primary key
representative_account_id Identifier Yes Not the patient's own account Grantee
enterprise_person_id Identifier Yes Valid in Domain 1 Patient acted for
relationship_type Code Yes Policy catalogue Relationship
scope Set of codes Yes Subset of scope catalogue Functions and categories permitted
evidence_ref Reference Per policy Document reference or Domain 1 legal-representative record Authority
proofing_id Identifier Yes when Active References DE-PEX-003 Representative identity verification
valid_from / expiry_or_review_date Date Yes Expiry within policy maximum Validity
state Code Yes Requested, Active, Suspended, Revoked, Refused Lifecycle state
granted_by Identifier Yes Staff or patient Approver

Entity DE-PEX-005: Appointment Request

Attribute Data Type Required Constraints Description
request_id Identifier Yes Unique; used as idempotency key Primary key
enterprise_person_id Identifier Yes Subject patient
submitted_by_account_id Identifier Yes Patient or representative
request_type Code Yes New, Reschedule, Cancel Kind
service_code / facility_code Codes Yes for New Domain 10 reference data Requested service and site
preferred_ranges List of date-time ranges Conditional Future Preferences
reason_text Text Yes Length limit Reason
appointment_id Identifier Conditional Domain 1 identifier Target or resulting appointment
state Code Yes Section 4.3 states Lifecycle state
outcome_reason Text No Supplied by Domain 1 Patient-facing reason

Entity DE-PEX-008: Release Decision

Attribute Data Type Required Constraints Description
decision_id Identifier Yes Unique Primary key
enterprise_person_id Identifier Yes Patient
item_type / item_ref / item_version Code / identifiers Yes Unique together Item and version decided
owning_domain Code Yes CLI, ANC, HIM Source of the item
state Code Yes Pending, Scheduled, Released, Withheld, Withdrawn, Superseded Lifecycle state
rule_set_version / rule_id Identifiers Yes when evaluated Approved version Policy applied
inputs Structured Yes Category, label, source status, review state, consent decision reference Evaluation inputs
scheduled_release_at Timestamp Conditional UTC Planned release time
released_at / released_by Timestamp / identifier Conditional System or clinician Release
hold_reason / hold_by / hold_review_date Code / identifier / date Conditional Reason mandatory for hold Clinician hold
patient_comment Text No Length limit; authored by clinician Comment shown to patient
withdrawn_cause Code Conditional Source withdrawn, consent, restriction Why withdrawn

Entity DE-PEX-010: Message

Attribute Data Type Required Constraints Description
message_id Identifier Yes Unique Primary key
thread_id Identifier Yes References DE-PEX-009 Thread
sender_type / sender_id Code / identifier Yes Patient, representative, staff Sender
on_behalf_of_person_id Identifier Conditional For representatives Patient acted for
body Text Yes Immutable; length limit Content
attachment_refs List of references No Domain 10 document references Attachments
sent_at Timestamp Yes UTC Send time
read_at Timestamp No Per recipient party Read status
filed_record_ref Reference No Domain 3 entry Link if filed to the record

Entity DE-PEX-013: Form Response / Patient-Reported Submission

Attribute Data Type Required Constraints Description
response_id Identifier Yes Unique Primary key
assignment_id Identifier No Null for unsolicited submissions Assignment
form_id / form_version Identifiers Yes Published version Definition used
enterprise_person_id Identifier Yes Subject patient
submitted_by_account_id Identifier Yes Patient or representative
provenance Code Yes Fixed value "patient-reported"; immutable Origin label
answers Structured Yes Validated against definition; immutable Content
score Structured No Scoring rule version recorded Calculated score
language Code Yes Language used
submitted_at Timestamp Yes UTC Submission time
supersedes_response_id Identifier No Earlier submission replaced

Entity DE-PEX-017: Communication Preference

Attribute Data Type Required Constraints Description
preference_id Identifier Yes Unique Primary key
account_id Identifier Yes Whose preference
category Code Yes Configured categories Notification category
channels Set of codes Yes Enabled channels; mandatory categories non-empty Channels
contact_point_ref Reference Per channel Verified Destination
language Code Yes Configured languages Language
content_level Code Yes Permitted for category Detail level
effective_from Timestamp Yes UTC Effective date

7.4 Entity Relationships

  • A Portal Account has zero or one patient-holder Portal Account Link and zero or more Representative Grants as grantee.
  • An enterprise person identifier (Domain 1) has at most one non-terminal patient-holder link and zero or more grants.
  • An Appointment Request, Release Decision, Message Thread, Form Assignment, Form Response, Correction Request, Education Assignment, Notification Record and Engagement Event each reference exactly one enterprise person identifier and carry the facility context.
  • A Release Decision references one item version in its owning domain and one Release Rule Set version. PEX stores the reference, never the item content.
  • A Form Response references one Patient-Facing Form Version; a Submission Review references one Form Response and, when incorporated, one Domain 3 record entry.
  • A Message belongs to one Message Thread; attachments are Domain 10 document references.

Referential integrity to other domains is by stable identifier, not by database key. PEX validates foreign identifiers on write and reacts to merge, unmerge and correction events from Domain 1 (FR-PEX-ACC-004); after an unmerge, records held under an encounter's CIN move on EncounterCorrected with reason "Reattributed after unmerge", and records with no encounter are assigned by staff from the review queue; original identifiers are preserved in history. Revoking a patient-holder link does not delete the patient's PEX records.

erDiagram
    PORTAL_ACCOUNT ||--o| PORTAL_ACCOUNT_LINK : "holds"
    PORTAL_ACCOUNT ||--o{ REPRESENTATIVE_GRANT : "is grantee of"
    PATIENT_IDENTITY_D1 ||--o| PORTAL_ACCOUNT_LINK : "linked by"
    PATIENT_IDENTITY_D1 ||--o{ REPRESENTATIVE_GRANT : "subject of"
    PORTAL_ACCOUNT_LINK ||--|| IDENTITY_PROOFING_RECORD : "evidenced by"
    PATIENT_IDENTITY_D1 ||--o{ APPOINTMENT_REQUEST : "has"
    APPOINTMENT_REQUEST }o--o| APPOINTMENT_D1 : "results in or targets"
    APPOINTMENT_D1 ||--o{ REMINDER_ENTRY : "reminded by"
    PATIENT_IDENTITY_D1 ||--o{ RELEASE_DECISION : "has"
    RELEASE_RULE_SET ||--o{ RELEASE_DECISION : "governs"
    RELEASE_DECISION }o--|| SOURCE_ITEM_VERSION : "refers to"
    PATIENT_IDENTITY_D1 ||--o{ MESSAGE_THREAD : "has"
    MESSAGE_THREAD ||--|{ MESSAGE : "contains"
    FORM_VERSION ||--o{ FORM_ASSIGNMENT : "assigned as"
    FORM_ASSIGNMENT ||--o| FORM_RESPONSE : "answered by"
    FORM_RESPONSE ||--o| SUBMISSION_REVIEW : "reviewed in"
    PATIENT_IDENTITY_D1 ||--o{ CORRECTION_REQUEST : "raises"
    PORTAL_ACCOUNT ||--o{ COMMUNICATION_PREFERENCE : "sets"
    PATIENT_IDENTITY_D1 ||--o{ NOTIFICATION_RECORD : "receives"

7.5 Data Quality Requirements

Requirement ID Quality Dimension Requirement Validation
DQ-PEX-001 Accuracy Every Active link references a resolved, current enterprise person identifier. Scheduled reconciliation of links against Domain 1 identity status; exceptions to the privacy officer queue.
DQ-PEX-002 Accuracy Released item views equal the source record for value, unit, range, flag, time and status (RES-002). Automated comparison tests; periodic sampled reconciliation.
DQ-PEX-003 Completeness Every release decision records rule set version, matched rule and inputs. Constraint on state transition; report of decisions with missing inputs (target zero).
DQ-PEX-004 Completeness Every patient submission has provenance, submitter, form version and time (PAT-012). Schema validation at submission (DAT-002).
DQ-PEX-005 Consistency Request states in PEX agree with outcomes in Domain 1 and Domain 6. Reconciliation of open requests against target-domain work items; stale items on the exception list (INT-005 pattern).
DQ-PEX-006 Consistency Consent and application-authorization states shown equal Domain 10's. No local copy; contract test.
DQ-PEX-007 Timeliness Correction and withdrawal of a released result is reflected in the portal within the event latency objective (NFR-003, subject to its qualification). Event latency monitoring; test with injected corrections.
DQ-PEX-008 Uniqueness No duplicate request, response, notification or release from retried or replayed input (SAFE-004). Idempotency tests with duplicate and delayed delivery.
DQ-PEX-009 Validity Coded fields use governed value sets; contact points pass format checks and verification. Terminology validation; verification challenge.
DQ-PEX-010 Temporal integrity Event time, recorded time and release time are stored separately in UTC (DAT-004, NFR-018). Schema inspection; delay-rule tests with late events.

7.6 Data Lifecycle and Retention

  • Creation. PEX records are created by patient, representative, staff or system actions described in section 5, always with acting identity, time and facility context.
  • Modification. Messages, submitted form responses, release decision history, notification records and engagement events are append-only. Mutable entities (account link, grant, request, preference) keep a full state history.
  • Correction. A wrong message or submission is corrected by a new entry linked to the earlier one. A wrong account link is corrected by suspension, revocation and re-enrolment, with the incident recorded.
  • Archiving. Closed threads, completed requests and reviewed submissions move to lower-cost storage after the configured period while staying retrievable to authorized users.
  • Retention. Closed 17 Nov 2026 (GAP-PEX-007). PEX record classes take their periods from the enterprise retention baseline of Domain 6, as the table after this list shows. Domain 6 holds the rules (CFG-HIM-016) and runs disposal.
  • Disposal. Disposal is a policy-driven, approved and logged action (HIM-002). PEX exposes a disposal interface per record class that Domain 6's retention process invokes; PEX does not dispose on its own schedule.
  • Legal hold. A legal hold applied by Domain 6 to a patient or record class suspends disposal of the corresponding PEX records. PEX accepts hold and release instructions from Domain 6 and reports held items.
  • Account closure. Closing a portal account revokes the link and credentials. It does not delete PEX records about the patient, which follow their retention class. Requests by a data subject for erasure or restriction are handled under the workflow required by SEC-012, as the jurisdiction profile defines.
  • Export. PEX records are included in the documented, machine-readable export required by PRS 15.2 and ACC-008, preserving identifiers, relationships, provenance, timestamps, status and version history.

PEX record classes and their retention (from the enterprise retention baseline):

PEX record class Entities Baseline class Minimum retention Trigger
Messages on clinical topics, filed or not, with attachments and notice acknowledgements DE-PEX-009, DE-PEX-010 Medical record content (clinical messages from the portal) 25 years Patient's last visit
Messages on administrative topics (appointments, billing, portal help) not filed to the record DE-PEX-009, DE-PEX-010 Workflow instances and tasks 10 years Thread closure
Form responses, patient-reported outcomes and their reviews, incorporated or not DE-PEX-013, DE-PEX-014 Medical record content (outcome measures) 25 years Patient's last visit
Release decisions and their history DE-PEX-008 Audit events about patient data 25 years Patient's last visit
Representative grants with evidence of authority, and identity-proofing records DE-PEX-004, DE-PEX-003 Consent directives (they justify access that is audited for the record life) 25 years Patient's last visit
Correction requests DE-PEX-015 Data subject requests 10 years Closure
Appointment requests, reminder entries, form and education assignments DE-PEX-005, DE-PEX-006, DE-PEX-012, DE-PEX-016 Workflow instances and tasks 10 years Closure or appointment date
Portal accounts, account links, communication preferences, sessions DE-PEX-001, DE-PEX-002, DE-PEX-017 Portal account data 2 years Account closure
Notification records DE-PEX-018 Notifications Content 90 days; delivery metadata 2 years Sending
Engagement events DE-PEX-019 Domain event archive 2 years Creation
Release rule sets, form versions, education items, templates DE-PEX-007, DE-PEX-011 Superseded content and configuration versions While referenced, and at least 25 years after retirement Retirement
Unsent drafts of messages and forms Draft store Not a record 30 days after the last change, then deleted Last change

Records move to the archive tier after the online period of the baseline (5 years for medical record content, 2 years for the other classes) and stay retrievable. Audit events of portal access are kept by Domain 10 for 25 years under the audit class.

7.7 Data Migration Requirements

The sources do not identify a legacy patient portal. The rows below apply only if discovery finds one (ASM-PEX-008); migration method follows PRS 16.2.

Migration ID Source Target Data Scope Validation
MIG-PEX-001 Legacy portal accounts, if any DE-PEX-001, DE-PEX-002 Accounts and patient links. Credentials are not migrated; each holder re-activates with proofing under FR-PEX-ACC-001 unless the Security and Privacy Office approves the legacy proofing evidence. Counts; every migrated link resolves to one MPI identity; unresolved links quarantined, not activated.
MIG-PEX-002 Legacy representative access, if any DE-PEX-004 Proxy relationships with evidence. Each grant re-verified or evidence accepted by the privacy officer; no grant Active without proofing reference.
MIG-PEX-003 Legacy contact and communication preferences, if any DE-PEX-017 Channel, language, contact points. Contact points treated as unverified until re-verified.
MIG-PEX-004 Legacy message history, if any DE-PEX-009, DE-PEX-010 Threads still within their retention period (7.6). Counts, checksums, sampling; source identifiers preserved.
MIG-PEX-005 Historical results and documents already in the HIS at portal go-live DE-PEX-008 Not migrated as data. A back-release rule decides whether and from what date historical items become visible. Rule approved by clinical governance; dry-run report of items that would be released, reviewed before activation.
MIG-PEX-006 Existing future appointments at go-live DE-PEX-006 Reminder entries generated from Domain 1 appointments. Count of future appointments equals count with reminder schedules; no reminders for past or cancelled appointments.

← 6. User Interface and Interaction Requirements | Contents | Identifier index | 8. Integration and Interoperability Requirements →