Skip to content

Domain specifications / D10-ESS / 7. Domain Data Requirements

7. Domain Data Requirements

7.1 Data Ownership

Data Entity Ownership System of Record Consuming Domains
Workforce account, service identity, role, role assignment Owned MOD-ESS-001 All
Authorization policy, privacy label taxonomy, policy decision, application grant Owned MOD-ESS-002 All
Emergency access session and review Owned MOD-ESS-002 2, 6, 8
Consent directive, data subject request Owned MOD-ESS-003 1, 2, 3, 4, 6, 7, 8
Code system, value set, concept map store, unit Owned; store of record for every published concept map (DEC-ESS-020). Map content authored by Domains 6 and 9 remains theirs MOD-ESS-004 All
Organization, location, practitioner, service reference, assigning authority, identifier cross-reference Owned MOD-ESS-005, MOD-ESS-010 All
Audit event Owned (store); content emitted by all domains MOD-ESS-006 2, 6, 8
Notification, escalation policy execution state Owned MOD-ESS-007 All
Workflow definition store, workflow instance, task Owned (orchestration state); definitions' business content owned by defining domain MOD-ESS-008 All
Document reference and metadata catalogue Owned (reference and index); document content and lifecycle decisions belong to the authoring domain and Domain 6 MOD-ESS-009 3, 4, 5, 6, 7, 8
Data ownership register, validation rule catalogue, stewardship item Owned MOD-ESS-011 All
Configuration item version, extension point, API catalogue entry, ADR Owned (lifecycle record); configuration content owned by each domain MOD-ESS-012 All
Patient identity (enterprise person identifier), merge and unmerge events Consumed Domain 1 (ADM) —
Encounter, location assignment, care-team and patient assignment Consumed (as decision attributes) Domain 1 (ADM), Domain 3 (CLI) —
Employment and credential status Consumed External HR and credentialing sources —
Consent evidence documents, retention class, legal hold Consumed Domain 6 (HIM) —
Patient communication preferences Consumed Domain 7 (PEX) —

7.2 Data Entity Catalogue

Entity ID Entity Name Description Primary Key Data Owner
DE-ESS-001 Workforce Account Unique human account linked to workforce identity Account ID Security and Privacy Office
DE-ESS-002 Service Identity Non-human scoped identity: workload service or registered wall-display device Service identity ID Security and Privacy Office
DE-ESS-003 Role and Role Assignment Role definition; assignment of a role to an account with scope and validity Role ID + version; assignment ID Security and Privacy Office
DE-ESS-004 Authorization Policy Versioned policy and label taxonomy Policy ID + version Security and Privacy Office
DE-ESS-005 Policy Decision Decision with trace Decision ID Security and Privacy Office
DE-ESS-006 Emergency Access Session Break-the-Glass session and review Session ID Security and Privacy Office
DE-ESS-007 Consent Directive Versioned consent or privacy preference Directive ID + version Security and Privacy Office (privacy)
DE-ESS-008 Code System Version Published terminology content Code system ID + version Data Governance Council / Clinical Governance
DE-ESS-009 Value Set and Concept Map Version Value set definitions; map entries Artifact ID + version Data Governance Council; map owner domain
DE-ESS-010 Organization and Location Enterprise hierarchy entities Entity ID + version Master data owner (facilities)
DE-ESS-011 Practitioner and Service Reference Practitioner, qualification, licence (STR, SIP with expiry), national identifiers, clinical privileges, affiliation; service entities Entity ID + version Master data owner (credentialing / operations)
DE-ESS-012 Identifier Registry Entry Assigning authority, identifier type, cross-reference Authority ID; cross-reference ID Data Governance Council
DE-ESS-013 Audit Event Append-only audit record Event ID Security and Privacy Office
DE-ESS-014 Notification Notification with deliveries, acknowledgement and escalation history Notification ID Requesting domain (content); Domain 10 (delivery record)
DE-ESS-015 Workflow Instance and Task Orchestration state and human task Instance ID; task ID Defining domain (business); Domain 10 (state)
DE-ESS-016 Document Reference Metadata, content reference, hash, version chain Document ID + version ID Authoring domain / Domain 6 (record); Domain 10 (reference)
DE-ESS-017 Stewardship Item and Data Domain Register Entry Data quality exception; ownership record Item ID; data domain ID Data Governance Council
DE-ESS-018 Configuration Item Version Versioned configuration with approvals and promotions Item type + key + scope + version Owning domain (content); Domain 10 (lifecycle)
DE-ESS-019 API Catalogue Entry and ADR Contract registration; decision record in the shared register layout, with record type (architecture decision or governance decision) Contract ID + version; ADR ID Enterprise Architecture Board (architecture decisions); Data Governance Council (governance decisions)

7.3 Entity Attributes

Attributes for entities not detailed here are given in the Input Requirements of the corresponding functional requirement in section 5.

The entity sections DE-ESS-002, 003, 004, 008, 009, 010, 011, 012, 015 and 019, the master-data governance records, and every block marked "Added by the RC-1 contracts" were written by the contract session RC-1-S01 for the D10-ESS contracts in contracts/ess/, as architecture 6.6 point 3 requires. Each attribute names its source; the domain leads approve them with the contracts (point 5). The blocks marked "Added by the RC-2 contracts" were written in the same way by the contract session RC-2-S01, for the consent and notification contracts. The blocks marked "Added by the RC-6 contracts", and the sections on the application registration, the application grant and the authorization request, were written in the same way by the contract session RC-6-S01, for the application grant contract (FR-ESS-AUZ-004). The blocks marked "Added by the RC-5 contracts", and the entity sections DE-ESS-016 and DE-ESS-017, were written in the same way by the contract session RC-5-S01, for the label- and consent-aware decision, concept map, stewardship and document reference contracts (FR-ESS-AUZ-003, FR-ESS-CNS-002, FR-ESS-TRM-003, FR-ESS-DOC-001).

Entity DE-ESS-001: Workforce Account

Attribute Data Type Required Constraints Description
account_id Identifier Yes Unique; never reused Primary key
workforce_identifier Identifier + assigning authority Yes Unique among non-deactivated accounts Link to workforce identity
practitioner_ref Reference No At most one Link to DE-ESS-011
employment_status, credential_status Codes Yes / conditional Value sets From identity sources
organizational_unit, permitted_locations References Yes / No Active entities Affiliation and location scope
account_type Code Yes Value set Employee, contractor, student, temporary
state Code Yes Section 4.3 states Lifecycle state
valid_from, valid_to UTC timestamp Yes / conditional valid_to mandatory for non-employee types Validity
failed_signin_count, blocked_until Integer, UTC timestamp Yes / conditional blocked_until set only while state is Blocked (CFG-ESS-002) Failed full sign-ins; automatic unblock time
badge_ref, badge_path_state Reference, code No / conditional Open or Closed; Closed after three failed PINs until the next full sign-in Badge bound to the PIN quick factor. The PIN verifier is held through Domain 2, never here

Added by the RC-1 contracts (session RC-1-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
person_name Structured name (text, family, given) Yes Non-empty text Display and legal name (FR-ESS-IAM-001 part 7)
username String Yes Unique; lowercase letters, digits, dot, hyphen, underscore Sign-on name of the account (FR-ESS-IAM-002 part 7, Account identifier)
state_reason, security_hold Text, boolean Conditional Reason mandatory for a security hold Reason of the last state change; hold set by the security officer (FR-ESS-IAM-001 parts 3 and 12)
last_change_source Structured (identity source with source event identifier, or manual; pending reconciliation flag) Yes Source event identifier unique per source Source of the last change; manual entries made while the source is unavailable are reconciled later (FR-ESS-IAM-001 parts 6.3, 10 and 12)
version, recorded_at Integer, UTC timestamp Yes Version increases by one on every change Record version for optimistic concurrency, and the time of the last change (section 8.4 common conventions)

Entity DE-ESS-002: Service Identity

Attribute Data Type Required Constraints Description
service_identity_id Identifier Yes Unique; never reused Primary key; the subject of the identity's tokens (FR-ESS-IAM-003 part 6.1)
service_name String Yes Unique per environment Identity name (FR-ESS-IAM-003 part 7)
identity_type Code Yes Workload service or display device What the identity represents (FR-ESS-IAM-003 parts 6.9 and 7)
configured_boards Reference list For display devices Boards registered by the owning domain The only boards a display may read; read-only (FR-ESS-IAM-003 part 6.9, PR-IAM-003-4)
owner Reference to DE-ESS-001 Yes Active account at registration Accountable person (BR-ESS-004; FR-ESS-IAM-003 part 7)
owner_inactive Boolean Yes Set when the owner account is no longer Active Flag for reassignment to the fallback owner (FR-ESS-IAM-003 part 6.7, PR-IAM-003-3)
workload Reference Yes Exists in the service catalogue; for a display device, its device registration and location Workload or device represented (FR-ESS-IAM-003 part 7)
scopes, requested_scopes Lists of scope codes Yes / No Scopes exist; least-privilege review recorded; a requested change waits for security approval Permitted actions, and a pending scope change (FR-ESS-IAM-003 parts 7 and 13)
environment Code Yes Production, DR, pre-production, development, training Valid only in this environment (FR-ESS-IAM-003 part 7, PR-IAM-003-1)
rotation_interval, last_rotated_at, rotation_overdue Duration, UTC timestamp, boolean Yes / No / Yes Interval within policy maximum; last rotation as reported by Domain 2 Credential rotation status; the credential itself is never held here (FR-ESS-IAM-003 parts 6.3 and 13, DEC-ESS-007)
valid_to UTC timestamp No After registration Expiry; the identity is suspended when it passes (FR-ESS-IAM-003 parts 6.5 and 7)
state, state_reason Code, text Yes / conditional Pending Approval, Active, Suspended, Retired Lifecycle; Retired identities are kept for audit attribution (FR-ESS-IAM-003 part 11)
version, recorded_at Integer, UTC timestamp Yes Version increases by one on every change Record version and time of the last change (section 8.4)

Classification: Confidential (section 9.3).

Entity DE-ESS-003: Role and Role Assignment

Role (a versioned configuration item, DE-ESS-018):

Attribute Data Type Required Constraints Description
role_id, version Code, string Yes Unique combination Key (FR-ESS-IAM-004 part 6.1)
name, description Text Yes / No — Role name and purpose (FR-ESS-IAM-004 part 6.1)
permission_set List of permission codes Yes Each a registered resource type and action Permissions of the role (FR-ESS-IAM-004 part 6.1; FR-ESS-AUZ-001 part 7)
privileged, credential_required, credential_requirement Boolean, boolean, text Yes / Yes / conditional As the starter role catalogue Privileged flag and credential the role needs (FR-ESS-IAM-004 parts 6.1 and 6.8)
clinical_access Boolean Yes — The role grants clinical access, so it needs an account linked to exactly one workforce identity (BR-ESS-002)
recertification_cycle Duration Yes CFG-ESS-005 Review frequency (FR-ESS-IAM-004 part 6.1)
state, effective_from, effective_to Code, UTC timestamps Yes / Yes / No Configuration version states of section 4.3 Lifecycle of the role version (FR-ESS-IAM-004 part 11)

Role assignment:

Attribute Data Type Required Constraints Description
assignment_id Identifier Yes Unique Primary key (FR-ESS-IAM-004 part 9)
account Reference to DE-ESS-001 Yes Active or Pending Activation Subject of the assignment (FR-ESS-IAM-004 part 7)
role_id, role_version Code, string Yes Published role version Role assigned (FR-ESS-IAM-004 part 7)
scope_level, scope_entity Code, reference Yes / unless enterprise Enterprise, facility, department or location; active organizational entity Where the role applies; a role scoped to one facility does not contribute to a decision at another (FR-ESS-IAM-004 parts 6.2 and 7, AC-01)
valid_from, valid_to UTC timestamps Yes / No valid_to after valid_from Validity (FR-ESS-IAM-004 part 7)
justification Text Yes Non-empty Business reason (FR-ESS-IAM-004 part 7)
origin Code Yes Request or position mapping An assignment from an approved position-to-role mapping takes effect without a further approval (FR-ESS-IAM-004 part 6.3; WF-ESS-001 step 3)
state Code Yes Requested, Approved, Rejected, Expired, Revoked, Suspended Lifecycle (FR-ESS-IAM-004 parts 6.5 and 11)
approver Reference to DE-ESS-001 Yes once routed Never the subject Accountable approver (BR-ESS-006)
decision, decided_by, decided_at, decision_comment Code, actor, UTC timestamp, text At decision Approve, reject, confirm, revoke Approver decision with timestamp (FR-ESS-IAM-004 part 7)
sod_exception_ref Reference No Approved exception Recorded segregation-of-duties exception (FR-ESS-IAM-004 PR-IAM-004-1)
requested_by, requested_at Actor, UTC timestamp Yes — Who requested the assignment and when (FR-ESS-IAM-004 part 12)
last_used_at UTC timestamp No — Last decision that used the assignment, shown in recertification (WF-ESS-008 step 1)
version Integer Yes Increases by one on every change Record version (section 8.4)

Recertification campaign and item:

Attribute Data Type Required Constraints Description
campaign_id Identifier Yes Unique Campaign key (WF-ESS-008)
trigger, role_class, organizational_units Code, code, reference list Yes / Yes / No Scheduled, risk event or mover; privileged, standard, student and supervised, or all What the campaign covers (WF-ESS-008 trigger; CFG-ESS-005)
opened_at, due_at, closed_at, state UTC timestamps, code Yes / Yes / No / Yes due_at 30 days after opening by default; Open or Closed Campaign period (CFG-ESS-005)
item_id, assignment_id, account, role, scope, granted_at, last_used_at, approver Identifiers, references, UTC timestamps Yes (last_used_at No) One item per in-scope assignment Review item: user, role, scope, grant date, last use, approver (WF-ESS-008 step 1)
item_state, decision, decided_by, decided_at, comment Code, code, actor, UTC timestamp, text Yes / at decision Open, Confirmed, Revoked, Escalated, Default Applied; confirm or revoke Reviewer decision (WF-ESS-008 steps 3 and 4; BR-ESS-005)
default_action, default_applied_at Code, UTC timestamp Conditional Suspended or escalated Default action at the due date (FR-ESS-IAM-004 part 6.5, PR-IAM-004-4)

Classification: Confidential (section 9.3).

Entity DE-ESS-004: Authorization Policy

Attribute Data Type Required Constraints Description
policy_id Identifier Yes Unique per kind The policy or the label taxonomy (FR-ESS-AUZ-001 part 11)
version String Yes The integer version of the carrying DE-ESS-018 version, as text; immutable once approved Version cited by every decision as policy_version (DE-ESS-005; FR-ESS-AUZ-001 part 9)
kind Code Yes Policy or label taxonomy What the version holds (EVT-ESS-003 trigger)
state Code Yes Draft, In Review, Approved, Active, Superseded, Rolled Back, Retired Configuration version lifecycle (FR-ESS-AUZ-001 part 11)
effective_from, effective_to UTC timestamp Yes / No No overlap for the same policy_id A new version applies from its effective time (FR-ESS-AUZ-001 part 6.9)
content_hash Hash Yes SHA-256 of the policy content Identity of the content, which is held as a configuration item version (DE-ESS-018; architecture 8.3, changes to policy)
configuration_item Reference No Existing DE-ESS-018 version The configuration item version that carries the content (section 7.4, versions)

Added by the RC-5 contracts (session RC-5-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
labels Structured list Yes for kind label-taxonomy Codes unique within the version; each with code, code system, display, description, category, access level, handling rules and legal basis reference The labels of the taxonomy: "code, description, the sensitive category it represents, handling rules and the legal basis reference recorded by the privacy officer" (FR-ESS-AUZ-003 part 6.1); FHIR security label codes mapped to the access levels Open, Sensitive (audited open) and Restricted (DEC-ESS-009)
labels.category Code No One of the configured sensitive categories (DEC-ESS-009) The sensitive category the label represents (part 6.1)
labels.access_level Code Yes Open, Sensitive, Restricted DEC-ESS-009 point 2
category_rules Structured list No Each with rule identifier, label, and a match by codes, value set, service types or record categories Category-to-label rules applied to unlabelled records (part 6.7, PR-AUZ-003-4; the rule table of UI-ESS-003)

Classification: Confidential (section 9.3).

Entity DE-ESS-005: Policy Decision

Attribute Data Type Required Constraints Description
decision_id Identifier Yes Unique Primary key; cited in audit
subject, action, resource_type, resource_id References, codes Yes — Request
patient_ref, purpose_of_use Identifier, code Conditional — Context
outcome Code Yes Permit / Deny / Deny-override-available Result
obligations List No Registered obligation codes Redact, mask, step-up, elevated audit, session marker
policy_version String Yes Existing version Policy applied
trace Structured Yes Immutable Rules and attribute values used
decided_at UTC timestamp Yes — Decision time

Added by the RC-1 contracts (session RC-1-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
encounter_ref Identifier Conditional Encounter of Domain 1 Encounter the request is made in (FR-ESS-AUZ-001 part 7, context attributes)
facility Facility code Conditional Required for requests on facility-owned data Facility the caller acts for; an attribute of every decision (architecture 7.5)
attributes Structured No Per resource type and policy Resource attributes (privacy labels, owning facility, record category) and context attributes (care-team membership, shift, location) supplied by the caller (FR-ESS-AUZ-001 part 7)
environment Structured Yes Supplied by the gateway or enforcement point Time, source system and endpoint, correlation identifier, location, network zone, device posture (FR-ESS-AUZ-001 parts 6.1 and 7)
cache_lifetime_seconds Integer Yes 0 to the configured maximum (CFG-ESS-025) How long the caller may reuse the decision (FR-ESS-AUZ-001 part 6.9; IF-ESS-003 response)
emergency_session_id Identifier Conditional Active DE-ESS-006 session Session the decision was permitted under (section 7.4; PR-AUZ-001-2)
consent_directive Reference Conditional DE-ESS-007 directive and version Directive version the decision relied on (section 7.4)

Added by the RC-6 contracts (session RC-6-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
grant_ref Reference Conditional Existing application grant; required for a request made with an application token The grant the request is made under (FR-ESS-AUZ-004 part 6.4; FR-ISE-GWY-003 part 6.1)
required_scope Code Conditional SMART App Launch 2.2 scope; with grant_ref The scope the request needs, checked against the grant's granted scopes (FR-ESS-AUZ-004 parts 6.3 and 6.4, PR-AUZ-004-1)

Added by the RC-5 contracts (session RC-5-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
labels, field_labels Code list; map of field to code list No Codes of the active taxonomy; an unknown code is handled as most restrictive (PR-AUZ-003-1) Resource labels and field labels of the request (FR-ESS-AUZ-003 part 7)
label_taxonomy_version String No Existing taxonomy version The taxonomy version the caller labelled with, and the one the decision used (FR-ESS-AUZ-003 part 10, taxonomy version mismatch)
recipient Reference (kind and identifier) Conditional Required for disclose and exchange; registered organization, role or application Receiving party (FR-ESS-AUZ-003 and FR-ESS-CNS-002 part 7)
consent_basis Structured (kind, directive version, exception type, legal basis, emergency session) Conditional Directive, exception, legal basis or consent absent; exception types from the approved catalogue only The basis of the decision as far as consent is concerned (FR-ESS-CNS-002 parts 4, 6.7 and 9; BR-ESS-014, PR-CNS-002-3)
labels_influencing Structured list (label, field, effect, source, rule, directive version) No Part of the immutable trace Which labels influenced the outcome (FR-ESS-AUZ-003 part 6.6)

Classification of decisions and traces: Confidential (section 9.3).

Entity DE-ESS-006: Emergency Access Session

Attribute Data Type Required Constraints Description
session_id Identifier Yes Unique; integrity-linked to audit events Primary key
subject, patient_ref References Yes — Who and whose record
reason_code, justification Code, text Yes / conditional Active reason code Structured justification
started_at, expires_at, ended_at UTC timestamps Yes / Yes / No expires_at = started_at + configured window; not moved by a screen lock or a suspension Time bounds
state Code Yes Section 4.3 states Lifecycle
review_due_at, reviewer, review_outcome, review_comment Timestamp, reference, code, text Due yes; others at review Reviewer not subject Retrospective review

Added by the RC-1 contracts (session RC-1-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
facility Facility code No From the request's facility; context, not owner Facility the user acted at when invoking (architecture 7.5: facility is an attribute of every decision)
resource_type Code No Registered resource type Resource type whose request was answered "Deny, emergency override available" (FR-ESS-AUZ-002 parts 4 and 6.1)
decision_id Identifier Conditional Existing decision (DE-ESS-005); absent when access checks were unavailable The deny-override-available decision that offered emergency access (FR-ESS-AUZ-002 part 4)
started_while_checks_unavailable Boolean Yes Set by the emergency access service only, never by the caller Session started while the policy decision service was unavailable, shown "Started while access checks were unavailable" (UI-ESS-004, DEC-ESS-018)
end_cause Code Conditional Window elapsed, user ended, signed out, ordinary access; set with ended_at Why the session ended (FR-ESS-AUZ-002 part 6.8, WF-ESS-002)
reviewed_at UTC timestamp At review — When the review outcome was recorded (FR-ESS-AUZ-002 part 6.9)
version Integer Yes Increases on every state change Optimistic concurrency, the ETag of a transition (architecture 6.2)

Added by the RC-4 contracts (session RC-4-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
subject_role Code Yes A permitted role of CFG-ESS-006 held by the subject The role the session was invoked under, whose window applied (PR-AUZ-002-1); shown to the reviewer (UI-ESS-005)
care_setting Reference No Location or organization of the registry; context, not owner The unit the user acted in, whose window applied (PR-AUZ-002-1); the unit of the review workspace and of the pattern report (FR-ESS-AUZ-002 part 6.10)
review_task_ref Reference Conditional Absent until the task exists (PR-AUZ-002-3) The high-priority review task of MOD-ESS-008 (FR-ESS-AUZ-002 part 6.7)
escalated_at UTC timestamp Conditional Set once, when the review due time passed without an outcome The escalation of an overdue review to the designated supervisor or privacy officer (FR-ESS-AUZ-002 part 6.9, AC-05)
follow_up_task_ref Reference Conditional For the outcome appropriate with follow-up The follow-up task (FR-ESS-AUZ-002 part 6.9)
security_incident_ref Reference Conditional For the outcome inappropriate The security incident opened in Domain 2 security monitoring (FR-ESS-AUZ-002 part 6.9)

Classification of DE-ESS-006: Sensitive (section 9.3); the justification is visible to reviewers only (FR-ESS-AUZ-002 part 13).

Application registration, application grant and authorization request (MOD-ESS-002)

Written by the RC-6 contracts (session RC-6-S01, architecture 6.6 point 3) for FR-ESS-AUZ-004, for approval by the domain leads. Section 7.1 names the application grant as owned by MOD-ESS-002; section 7.2 has no row for these records yet. Contract: contracts/ess/api/application-grants.v1.openapi.yaml.

Application registration. A versioned configuration item of type ess.application-registration (DE-ESS-018), following the configuration version lifecycle (FR-ESS-AUZ-004 part 11):

Attribute Data Type Required Constraints Description
application_id Identifier Yes The application's client identifier at the identity provider; unique Key (part 7, Application identifier)
name, publisher Text Yes — Shown to the patient on the consent screen (FR-PEX-ACC-005 part 6.1)
owner Reference to DE-ESS-001 Yes Active account Accountable owner (part 6.1)
purpose Text Yes — What the application is for (part 6.1)
launch_modes Code list Yes staff-launch, patient-authorized; at least one Launched by staff, authorized by patients, or both (part 6.1)
permitted_purposes Code list Yes Purpose of use value set Purposes a grant may name (part 7, Purpose)
permitted_scopes Structured list (scope, description) Yes SMART App Launch 2.2 scopes; a plain-language description for each Permitted scopes (part 6.1); the description is what the patient reads (FR-PEX-ACC-005 part 6.1)
maximum_grant_lifetime Duration Yes Within the policy maximum Longest grant (part 7, Expiry)
client_registration Identifier Conditional Required for patient-authorized; the Domain 2 partner client registration The certified partner client (FR-ISE-GWY-003 parts 4 and 11; FR-PEX-ACC-005 part 4)

Application grant (FR-ESS-AUZ-004 parts 6.2 and 9):

Attribute Data Type Required Constraints Description
grant_id Identifier Yes Unique; carried in the token Primary key
kind Code Yes staff-launch, patient-authorized How the grant arose (parts 3 and 5)
application Reference to an application registration Yes Registered and active at issue Application the grant is bound to (part 6.2)
subject Structured (kind, identifier, relationship) Yes Workforce user, patient or representative Who launched or authorized (part 6.2)
patient_ref Enterprise person identifier Yes Resolvable in Domain 1 Patient context (part 7)
encounter_ref, facility Identifier, facility code No Staff launch only; context, not owner (architecture 7.5) Launch context (part 5)
requested_scopes, granted_scopes Code lists Yes Granted is a subset of requested, at most the intersection of part 6.3 Scopes asked for and allowed (parts 6.3, 7)
withheld_scopes Structured list (scope, reason) No Reason not-permitted, not-consented or policy Narrowing (PR-AUZ-004-1)
purpose_of_use Code Yes One of the registration's permitted purposes Purpose (part 6.2)
issued_at, expires_at UTC timestamps Yes expires_at within the registration's maximum lifetime Lifetime (parts 6.2, 7)
state Code Yes Active, Expired, Revoked Lifecycle (part 11)
last_used_at UTC timestamp No Set by the decision service Latest permitted request under the grant (part 6.6; "last used" of UI-PEX-011)
revocation Structured (cause, requested by, actor, time, reason) Conditional With state Revoked Who or what revoked it: on request, or on the consent directive withdrawn, expired or entered in error, or on the portal account link ending (part 6.5, PR-AUZ-004-2; FR-PEX-ACC-005 PR-ACC-005-3). Only a revocation requested by the patient or representative also withdraws the directive (FR-ESS-CNS-001 part 3)
consent_directive Reference to DE-ESS-007 and version Conditional Patient-authorized only The directive the grant is recorded as (part 3)
authorization_request Reference Conditional Patient-authorized only The request it was issued on
decision_id, policy_version Identifier, string Yes Existing DE-ESS-005 decision The decision that permitted the issue (part 6.4)

Authorization request (part 5, third-party authorization request; FR-PEX-ACC-005 part 7):

Attribute Data Type Required Constraints Description
authorization_request_id Identifier Yes Unique Primary key
application Reference to an application registration Yes Registered for patient-authorized access Requesting application
requested_scopes, offered_scopes, withheld_scopes Code lists Yes Offered are the requested scopes the application is permitted What the patient is asked to approve (PR-AUZ-004-1)
purpose_of_use, requested_lifetime Code, duration Yes Within the registration Purpose and duration shown on the consent screen (FR-PEX-ACC-005 part 6.1)
state Code Yes Pending, Approved, Declined, Expired Approve or decline (FR-PEX-ACC-005 part 7, Patient decision)
created_at, expires_at, answered_at UTC timestamps Yes / Yes / No — A pending request lapses at expires_at
patient_ref, grant Enterprise person identifier, reference Conditional Set on approval The patient who approved and the grant issued

Classification (section 9.3): application registrations Confidential, as configuration content and service identity scopes; grants and authorization requests Confidential, as policy decisions with patient references. The consent directive a patient-authorized grant is recorded as stays Sensitive, as every directive. Every registration change, grant issue, use, refusal, revocation and expiry is audited as ess.auz.app-grant (section 9.5) with the patient reference (part 12).

Attribute Data Type Required Constraints Description
directive_id, version Identifier, integer Yes Versions immutable Key
subject Enterprise person identifier Yes From Domain 1 Patient
consent_type, decision Codes Yes Consent model Type; permit or deny
purpose, scope, recipient Code list, structured, reference list Yes / Yes / conditional Allowed for type PRS 7.3 minimum attributes
validity_start, validity_end UTC timestamp Yes / No End after start Validity period
status Code Yes Section 4.3 states Status
legal_basis Code Yes Jurisdiction profile value set Legal basis
grantor Structured Yes Patient or representative with relationship Who consented
provenance Structured Yes Author, channel, recorded time, source Provenance
evidence_ref, evidence_hash Reference, hash No Resolvable in MOD-ESS-009 Evidence held by Domain 6

Added by the RC-2 contracts (session RC-2-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
effective_at UTC timestamp Yes Not earlier than the recorded time for a withdrawal When this version takes effect; for a withdrawal, its own effective time (FR-ESS-CNS-001 parts 6.2 and 6.6)
outstanding_attributes Attribute name list Conditional Set only while Proposed Attributes the consent model requires that a reference captured without them lacks (PR-CNS-001-4)
withdrawal_reason Code or text No On a Withdrawn version Reason where given (FR-ESS-CNS-001 part 7)
status_reason Text Conditional Mandatory for Entered in Error Reason of an entered-in-error, expiry or reassignment (FR-ESS-CNS-001 part 3, privacy officer "Reason mandatory")
supersedes, superseded_by Directive and version references No Same patient and consent type The version this one replaced, and the one that replaced it (PR-CNS-001-1)
reassigned_from Enterprise person identifier No Set by merge processing only The identity the directive was held under before a patient merge (FR-ESS-CNS-001 part 6.8, AC-05)
conflict Structured (conflicting directive versions, privacy review task) No Set while precedence cannot order the directives Conflict flagged for privacy review; the most restrictive applies (PR-CNS-001-2)
capture_context Structured (encounter, source record reference) No Identifiers only (BR-ESS-031) Where the directive was captured, for example the Domain 1 registration (FR-ADM-REF-002 part 6.2)
provenance.facility Facility code No Context, not owner The facility the directive was recorded at; directives are enterprise-scoped (architecture 7.5)

Added by the RC-6 contracts (session RC-6-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
scope.application_scopes Code list Conditional SMART App Launch 2.2 scopes; only with a recipient of kind application The data and action scopes the recipient application may use: the directive "names the recipient application and scope" (FR-ESS-AUZ-004 part 4). Set on the directive recorded for a patient-authorized grant (application grant)

Classification of DE-ESS-007: Sensitive (section 9.3); every read needs a purpose and is audited (FR-ESS-CNS-001 part 13).

Entity DE-ESS-008: Code System Version

Attribute Data Type Required Constraints Description
code_system_id Identifier Yes Registered code system (FR-ESS-REG-001); with version, unique Registry key of the code system; key with version (FR-ESS-TRM-001 part 7)
url URI Yes One per code system Canonical identity of the code system, the system of every coding (FR-ESS-TRM-001 part 7)
version String Yes Unique per code system Release or local version (FR-ESS-TRM-001 part 7)
version_id UUID Yes Unique Identifier of the version record in the API (IF-ESS-006)
classification Code Yes Clinical terminology, administrative classification, unit system, local Tells clinical concepts from administrative codes (FR-ESS-TRM-001 parts 4 and 6.8)
safety_relevance, safety_relevance_confirmed Code, boolean Yes Safety-relevant or Standard; confirmed by Clinical Governance at first publication Safety-relevance class and whether it is confirmed or only proposed (FR-ESS-TRM-001 part 6.10, CFG-ESS-012)
owner, steward References Yes Active owner (DQ-ESS-003) Owner of the code system and its assigned steward (FR-ESS-TRM-001 parts 3 and 4)
licence Structured Yes for licensed content Licence statement and permitted use; load refused without it (PR-TRM-001-3) Licence status and permitted use (FR-ESS-TRM-001 part 7)
source_release String Yes for loaded releases — Publisher release identifier; for Fornas the decree number (FR-ESS-TRM-001 parts 6.1 and 6.12)
concepts List Yes Codes unique within the version Each code with display, status (active, inactive), inactivation time where known, parents and properties (FR-ESS-TRM-001 part 6.1, PR-TRM-002-1)
content_hash Hash Yes from submission Immutable once published (PR-TRM-001-1) Identity of the published content, for local copies and export (FR-ESS-TRM-002 part 6.6, FR-ESS-TRM-001 part 6.9)
state Code Yes Section 4.3 states: Draft, In Review, Approved, Active, Superseded, Rolled Back, Retired Lifecycle (FR-ESS-TRM-001 part 11)
effective_from, effective_to UTC timestamp Yes at approval / No effective_from not before approval; no overlap of Active versions (DQ-ESS-005) Effective period (FR-ESS-TRM-001 part 7, BR-ESS-016)
author, second_reviewer, approver, approved_at References, UTC timestamp Author yes; second reviewer for Safety-relevant; approver at approval Three different people for Safety-relevant content; approver not author (BR-ESS-006) Authoring, two-person review and approval (FR-ESS-TRM-001 parts 6.11 and AC-03, PR-TRM-001-5)
state_reason Text No — Comment of the last transition: return, rollback or retirement reason (WF-ESS-004)
revision Integer Yes Increases on every change Optimistic concurrency, the ETag of an update (architecture 6.2)

Classification: Internal; licensed content only within licence terms (section 9.3).

Entity DE-ESS-009: Value Set and Concept Map Version

The value set part. Concept map attributes are added with FR-ESS-TRM-003.

Attribute Data Type Required Constraints Description
value_set_id, version Identifier, string Yes Unique combination Key (FR-ESS-TRM-001 part 7)
version_id UUID Yes Unique Identifier of the version record in the API (IF-ESS-006)
url, name URI, text Yes One URI per value set Canonical identity and name, for example "Fornas" (FR-ESS-TRM-001 parts 6.4 and 6.12)
definition Structured Yes Every reference resolvable in the bound version; approval blocked otherwise Enumerated members or include rules per code system, each bound to a pinned code system version or to current; members may carry details such as the Fornas therapeutic class, dosage form and strength, facility level, prescribing restriction and maximum quantity (FR-ESS-TRM-001 parts 6.4, 6.12 and 10, PR-TRM-001-4)
safety_relevance, safety_relevance_confirmed Code, boolean Yes Safety-relevant when used by a decision-support rule, order set or pathway eligibility rule, even over a Standard code system Safety-relevance class (FR-ESS-TRM-001 part 6.10)
binding_behaviour Code Yes Reject for Safety-relevant; flag for Standard What a binding to the value set does with an invalid or inactive code (CFG-ESS-012, BR-ESS-015)
owner Reference Yes Active owner Owner of the value set (DQ-ESS-003)
source_release String No — Source release identifier, for example a Fornas decree number (FR-ESS-TRM-001 part 6.12)
content_hash Hash Yes from submission Immutable once published Identity of the published definition (FR-ESS-TRM-002 part 6.6)
state Code Yes Section 4.3 states Lifecycle (FR-ESS-TRM-001 part 11)
effective_from, effective_to UTC timestamp Yes at approval / No No overlap of Active versions (DQ-ESS-005) Effective period; membership as of a date uses the version effective then (AC-04, AC-06)
author, second_reviewer, approver, approved_at References, UTC timestamp As for DE-ESS-008 As for DE-ESS-008 Authoring, two-person review and approval (FR-ESS-TRM-001 part 6.11)
state_reason, revision Text, integer No / Yes — As for DE-ESS-008

Added by the RC-5 contracts (session RC-5-S01, architecture 6.6 point 3), for approval by the domain leads: the concept map part.

Attribute Data Type Required Constraints Description
concept_map_id, version, version_id Identifier, string, UUID Yes Unique combination; version_id unique Key and version record, as for a value set (FR-ESS-TRM-003 part 6.1; IF-ESS-006)
url, name URI, text Yes One URI per map Canonical identity and name
source_system, target_system URI, with classification Yes Registered code systems; the classification of each (clinical terminology, administrative classification, unit system, local) Separately identified maps between clinical terminology and administrative classifications (FR-ESS-TRM-003 part 6.8, AC-05)
source_version, target_version String Yes Existing code system versions The versions the entries are valid in (FR-ESS-TRM-003 part 6.1, source and target code and version)
owning_domain, owner Domain code, reference Yes Active owner The domain whose content the map is (Domain 9 guideline mappings, Domain 6 coding crosswalks); stored and versioned here (FR-ESS-TRM-003 part 6.2, DEC-ESS-020)
entries Structured list Yes Per entry: source code, target code (absent for no map), relationship type (equivalent, broader, narrower, related, no map), rationale, effective period, author, approver, flagged; target active in target_version The map entries (FR-ESS-TRM-003 parts 6.1 and 7, part 10 "Target code inactive")
entries.flagged Boolean No Set when the target becomes inactive in a new target release; the map cannot remain current without resolution PR-TRM-003-3
safety_relevance, safety_relevance_confirmed Code, boolean Yes Two-person review for Safety-relevant maps FR-ESS-TRM-003 part 16 (GAP-ESS-006); FR-ESS-TRM-001 part 6.11
state, effective_from, effective_to, author, second_reviewer, approver, approved_at, content_hash, state_reason, revision As for a value set As for a value set Approver not the author (FR-ESS-TRM-003 part 3); superseded versions retained (part 6.9) Version lifecycle (FR-ESS-TRM-003 part 11)

Classification: Internal (section 9.3).

Entity DE-ESS-010: Organization and Location

Organizations (enterprise, legal entity, facility, department, service line, external organization), locations (campus, building, floor, ward, room, bed position, clinic, mobile location) and structural resource reference entities, each as effective-dated versions in one hierarchy. Every version also carries the version attributes of the master-data lifecycle (version, state, effective_from, effective_to, author, approver), as in the master-data change proposal.

Attribute Data Type Required Constraints Description
entity_id Identifier Yes Stable; never reused organization_id, location_id or resource_id (FR-ESS-MDM-002 part 6.1)
entity_type Code Yes Value set of part 7; child type permitted under parent type (PR-MDM-002-1) Organization, campus, building, floor, ward, room, bed position, clinic, department, service line, mobile location; facility, legal entity and external for organizations (FR-ESS-MDM-002 part 7)
name, short_name String Yes / No Name unique among siblings in the period Display (FR-ESS-MDM-002 part 7)
parent Reference Yes except root Effective for the whole period; type-compatible Hierarchy (FR-ESS-MDM-002 part 7)
facility Facility code Yes for locations, facility units and facility resources Immutable from creation The facility the entity belongs to (architecture 7.5)
responsible_unit Reference No Active organization Organizational unit responsible for a location or resource (FR-ESS-MDM-002 part 6.3)
identifiers Identifier list with assigning authority No; SATUSEHAT Organization identifier yes for own facilities and units referenced in SATUSEHAT exchange Unique within authority (PR-MDM-002-3) Local and external identifiers, SATUSEHAT Organization identifier, Ministry of Health facility code (FR-ESS-MDM-002 parts 6.8, 7)
external_kind Code For external organizations Hospital, clinic, laboratory, puskesmas, payer, national platform Kind of external organization used as referral target (FR-ESS-MDM-002 part 6.8)
satusehat_identifier_missing, stewardship_item Boolean, reference Conditional Set for an external referral target without a SATUSEHAT Organization identifier Flag and open stewardship item (PR-MDM-002-4)
facility_code Facility code Yes for facilities Unique; never reused The facility register code used as X-Facility and envelope facility (architecture 7.5)
legal_entity Reference Yes for facilities Organization of type legal entity Legal entity of the facility (architecture 7.5)
time_zone, locale, language, currency Codes Yes for facilities IANA time zone, BCP 47 locale, ISO 639 language, ISO 4217 currency Localization attributes (FR-ESS-MDM-002 parts 6.2, 7; CFG-ESS-021)
tax_jurisdiction Reference No — Tax jurisdiction reference (FR-ESS-MDM-002 part 6.2)
operating_hours, calendar Structured No Valid times; dates of non-working days Operating hours and local calendar (FR-ESS-MDM-002 parts 6.2, 7)
patient_identifier_authority Code No Registered assigning authority (DE-ESS-012) Authority that issues the facility's patient identifiers (No. RM) (FR-ADM-XRF-001; FR-ESS-MDM-002 part 1 "identifier assigning authority")
isolation_capable, bed_position_count Boolean, integer No Count ≥ 0 Structural attributes of a location; no operational state (FR-ESS-MDM-002 part 6.3; DEC-ESS-013)
resource_type, code Code, coding Yes for resources Value set Structural resource such as an equipment type (FR-ESS-MDM-002 part 6.4)

Classification: Internal (section 9.3).

Entity DE-ESS-011: Practitioner and Service Reference

Practitioners (internal and external) and service and procedure reference entities, as effective-dated versions with the version attributes of the master-data lifecycle.

Attribute Data Type Required Constraints Description
practitioner_id Identifier Yes Stable; never reused Enterprise practitioner identifier (FR-ESS-MDM-003 part 6.1)
identifiers Identifier list with assigning authority Yes (at least one) Unique within authority (PR-MDM-003-2) Professional and local identifiers, SATUSEHAT Practitioner (IHS) identifier, NIK (FR-ESS-MDM-003 parts 6.1, 6.11, 7)
name Structured name Yes Non-empty Display and legal name (FR-ESS-MDM-003 part 7)
status Code Yes Active, inactive, retired Shown as "In use", "Inactive", "Retired"; retired cannot be selected for new activity (FR-ESS-MDM-003 part 11, PR-MDM-003-3)
credential_status Code Conditional Current, lapsed, restricted Lapsed when a qualification ends or the STR is no longer valid (PR-MDM-003-1); the end of one facility's SIP acts at that facility only (GAP-ESS-017)
external Boolean Yes — External practitioner without a workforce account (FR-ESS-MDM-003 part 6.3)
account_ref Reference No At most one; DE-ESS-001 Linked workforce account (FR-ESS-MDM-003 part 6.2)
qualifications List (code, issuer, validity, status) Conditional Value set; valid dates Licences and qualifications (FR-ESS-MDM-003 part 7)
specialties Code list No Value set Specialties (FR-ESS-MDM-003 part 7)
affiliations List (organization, role, period) Yes for internal staff Active organization Where and in what role (FR-ESS-MDM-003 part 7)
str_number String For practitioners who perform clinical care — Registration certificate (STR), valid for life (FR-ESS-MDM-003 part 6.11)
practice_licences List (SIP number, issuer, facility, issue date, expiry) For practitioners who perform clinical care Expiry after issue; one SIP per facility Practice licences (SIP) (FR-ESS-MDM-003 parts 6.11, 7)
clinical_appointments List (SPK number, issuer, issue date, expiry, facility, temporary) With clinical privileges Expiry at most 3 years after issue and not after the SIP end; temporary at most 30 days Clinical appointment letters (SPK) (FR-ESS-MDM-003 parts 6.8 to 6.10)
privileges List (code, level, supervisor, status) per SPK With an SPK Codes from the service and procedure reference list or a privilege group; level independent or supervised; status granted, suspended, expired, revoked Clinical privileges (RKK) (FR-ESS-MDM-003 parts 6.8, 6.9, PR-MDM-003-5)
service_id Identifier Yes for services Stable Service or procedure reference entity (FR-ESS-MDM-003 part 6.4)
service_code, name, category Coding, string, code Yes for services Valid code (terminology binding) Code with its terminology binding, name, category (FR-ESS-MDM-003 parts 6.4, 7)
owning_unit Reference Yes for services Active organization Owning organizational unit (FR-ESS-MDM-003 part 6.4, AC-04)
privilege_required Boolean Yes for services — The procedure needs a current privilege of the performer (FR-ESS-MDM-003 part 6.10)

Classification: Confidential for practitioner personal data (identifiers, NIK, STR, SIP, contact details), released by purpose; Internal for display name, role, specialty and service entities (section 9.3; FR-ESS-MDM-003 part 13).

Entity DE-ESS-012: Identifier Registry Entry

Assigning authorities, identifier types, code system and naming system registrations, external organizations and systems, and cross-references, as effective-dated versions that are retired, not deleted.

Attribute Data Type Required Constraints Description
authority_code Code Yes for authorities Unique; never reused Code by which domains store the assigning authority (FR-ESS-REG-001 part 7; DE-ADM-002 assigning_authority)
system URI Yes for authorities Unique Namespace written as the system of a qualified identifier (architecture 6.6)
name String Yes Non-empty Name of the authority, type, system or external system (FR-ESS-REG-001 part 7)
identifier_types Code list Yes for authorities Registered types Identifier types the authority issues (FR-ESS-REG-001 part 6.1)
responsible_organization Reference No Active organization (DE-ESS-010) Organization responsible for the authority or system (FR-ESS-REG-001 parts 6.1, 6.2)
facility Facility code For per-facility authorities Facility register Facility of an authority that issues per-facility identifiers (architecture 7.5)
format_rule String No Regular expression Identifier format where defined (FR-ESS-REG-001 part 7)
identifier_type_code, applies_to Code, code list Yes for identifier types Unique code Kind of identifier and entities it identifies (FR-ESS-REG-001 parts 6.1, 7)
naming_system_id, kind, uri, terminology_code_system Identifier, code, URI, reference Yes / Yes / Yes / No for naming systems URI unique Code system or identifier system registration, linked to its terminology entry (FR-ESS-REG-001 part 6.2)
external_system_id, external_kind, organization Identifier, code, reference Yes / Yes / No for external systems — External organization or system as a business entity: payer, laboratory, national platform, partner hospital, source system (FR-ESS-REG-001 part 6.3)
cross_reference_id Identifier Yes for cross-references Unique Key (DE-ESS-012 primary key)
entity_ref Reference Yes for cross-references Exists in MOD-ESS-005 Enterprise entity (FR-ESS-REG-001 part 7)
identifier_value String Yes for cross-references Unique within authority and type; format rule; never reused after retirement (PR-REG-001-2) The identifier (FR-ESS-REG-001 parts 6.6, 6.8, 7)
validity Period No Valid range When the identifier applies (FR-ESS-REG-001 part 7)
source Reference Yes for cross-references Registered system Where the identifier came from (FR-ESS-REG-001 part 7)
version, state, effective_from, effective_to Integer, code, UTC timestamps Yes / Yes / Yes / No Master-data lifecycle Effective dating (FR-ESS-REG-001 part 11)

Classification: Internal; practitioner identifiers are Confidential (section 9.3; FR-ESS-REG-001 part 13).

Master-data governance records

Added by the RC-1 contracts (session RC-1-S01, architecture 6.6 point 3), for approval by the domain leads:

Master-data domain register entry, the governance record of each master-data domain held in DE-ESS-010 to DE-ESS-012:

Attribute Data Type Required Constraints Description
domain_code Code Yes Unique Master-data domain (FR-ESS-MDM-001 part 7)
name String Yes — Name of the domain (FR-ESS-MDM-001 part 6.1)
owner, stewards Reference, reference list Yes / Yes Active accounts; owner missing reported (PR-MDM-001-3) Named owner and stewards (FR-ESS-MDM-001 part 6.1; DQ-ESS-003)
system_of_record Code Yes Domain code Domain holding the content; content held elsewhere is governed here only (FR-ESS-MDM-001 parts 6.1 to 6.3)
approval_workflow Reference Yes — Approval workflow of the domain (BR-ESS-018)
attribute_classes List (class, approval route) No Route owner or steward Approval route per attribute class (FR-ESS-MDM-001 part 6.1; CFG-ESS-020)
quality_rules Reference list No Rules of MOD-ESS-011 Quality rules (FR-ESS-MDM-001 part 6.1)
consuming_domains Code list No Domain codes Consuming domains (FR-ESS-MDM-001 part 6.1)
status Code Yes Active, retired Registration status (FR-ESS-MDM-001 part 9)

Classification: Internal (section 9.3).

Master-data change proposal, the proposed change to an entity of DE-ESS-010 to DE-ESS-012 (WF-ESS-005):

Attribute Data Type Required Constraints Description
proposal_id Identifier Yes Unique Key (WF-ESS-005 step 1)
domain_code, entity_kind, entity_ref Code, code, reference Yes / Yes / for change and retire Registered domain Entity proposed (FR-ESS-MDM-001 part 7)
change_type Code Yes Create, change, retire New, changed or retired entity (WF-ESS-005 step 1)
attributes Structured Yes Domain schema; mandatory attributes Proposed values (FR-ESS-MDM-001 part 7)
effective_from, effective_to UTC timestamps Yes / No Valid range; no overlap of versions (PR-MDM-001-2) Validity (FR-ESS-MDM-001 part 7)
change_reason Text Yes Non-empty Justification (FR-ESS-MDM-001 part 7)
source Reference No Registered source External source of a feed change (EXT-ESS-001, EXT-ESS-002)
state Code Yes Proposed, approved, rejected Proposal state (WF-ESS-005 step 4)
author, submitted_at Reference, UTC timestamp Yes — Authoring (FR-ESS-MDM-001 part 6.4)
approval_route Code Yes Owner or steward, from the attribute class Approval route (CFG-ESS-020)
likely_duplicates, dependants Reference lists with reason No — Presented to steward and approver (PR-MDM-001-4, PR-MDM-002-2; FR-ESS-MDM-002 part 6.5)
approver, decided_at, decision_comment Reference, UTC timestamp, text At decision Approver not author where the class needs owner approval Owner or approver decision (FR-ESS-MDM-001 parts 7, 13)
entity_version Integer On approval — Entity version created (FR-ESS-MDM-001 part 6.4)
batch_id Identifier For bulk loads — Bulk load under one approval (WF-ESS-005 alternative workflow; FR-ESS-REG-001 part 12)

Classification: Internal; Confidential where the proposed attributes are practitioner personal data (section 9.3).

Entity DE-ESS-013: Audit Event

Attribute Data Type Required Constraints Description
event_id UUID Yes Unique Primary key and deduplication key
event_type, action, outcome Codes Yes Audit event catalogue What happened and result
actor_human, actor_service Identity references At least one Resolvable Who acted
patient_ref, resource_ref Identifier, typed reference Conditional patient_ref mandatory for event types registered as patient-scoped (GAP-ESS-016) Subject and record
purpose_of_use Code Conditional Value set Why
source_system, source_endpoint, location_device Structured Yes / Yes / No — Where from
event_time, recorded_time UTC timestamps Yes Distinct attributes When it happened; when stored
correlation_id String Yes — Transaction trace link
decision_id, policy_version Strings Conditional — Authorization basis (Architecture 9.3)
emergency_session_id Identifier Conditional Integrity-linked Break-the-Glass link
before_after Structured No Privacy policy per event type Change metadata
integrity Structured Yes Written once Tamper-evidence metadata

Added by the RC-1 contracts (session RC-1-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
category Code Yes One of the nine categories of the minimum audit event catalogue; set by the audit service from the registered event type The category the event type belongs to; what security monitoring and Domain 6 subscribe by (FR-ESS-AUD-001 parts 6.1 and 6.8)
actor_role Code No A role of DE-ESS-003 The role the human actor acted in, shown in the patient access report (FR-ESS-AUD-002 part 6.5)
facility Facility code Conditional A facility of the D10 facility register; present when the actor acted for a facility The facility the action was taken for (Architecture 7.5: facility is an attribute of every policy decision); a column of the patient access report ("from where", FR-ESS-AUD-002 part 6.5)
emergency_reason_code Code Conditional Active reason code of DE-ESS-006; mandatory with emergency_session_id in the Authorization and emergency access category Reason given for emergency access (section 9.5)
no_care_relationship Boolean No Set by the emitter where it checked the care relationship "No care relationship recorded" flag of the patient access report (FR-ESS-AUD-002 part 6.5)
authentication_method Code Conditional Mandatory in the Authentication and session category How the actor authenticated (section 9.5)
query_criteria Structured Conditional Mandatory for record access by search or query and for audit access The criteria used, in place of a resource reference (section 9.5; FR-ESS-AUD-002 part 6.6)
recipient Reference Conditional Mandatory in the Disclosure and exchange category Recipient or sender of a disclosure or exchange (section 9.5)
legal_basis Code or reference Conditional Mandatory in the Disclosure and exchange category Legal basis code, or the consent directive version (DE-ESS-007) relied on (section 9.5)
signature_ref Reference Conditional Mandatory for signing events Signature reference of a signing event (section 9.5, Record change)
approver Identity reference Conditional Mandatory in the Administration and configuration category where the change needed approval Who approved the change (section 9.5)
affected_component String Conditional Mandatory in the Security category The component a security event concerns (section 9.5)
time_skew_flagged Boolean Yes Set by the audit service Event time differs from receipt time by more than the configured tolerance (FR-ESS-AUD-001 part 6.6)
detail_excluded Boolean No Set by the audit service Before-and-after content excluded by the privacy policy was refused; the detail is held in the source record history (PR-AUD-001-4)

Notes on existing rows, for the same table (constraints only, no new attribute):

  • resource_ref carries the record's version for events of the Record change category, and the item version for Administration and configuration (section 9.5).
  • before_after holds the changed field names (not values) for record change, and before and after values with secrets excluded for administration and configuration (section 9.5).
  • location_device holds location, workstation, device and network address; device or workstation is mandatory for authentication and session events.

Classification of the additions: Sensitive, as audit events (section 9.3).

Audit quarantine entry, a record of the audit service (DE-ESS-013):

Attribute Data Type Required Constraints Description
quarantine_id Identifier Yes Unique Primary key
event_id UUID No As read from the content, where it could be The audit event the entry would have been
source_system String Yes From the credential or the envelope Emitter
channel Code Yes api, backbone Intake binding it arrived by (IF-ESS-008)
received_at UTC timestamp Yes — When intake received it
reason Code Yes schema-invalid, unregistered-event-type Why it was not stored (FR-ESS-AUD-001 part 6.3, PR-AUD-001-2, part 10)
errors List No Pointer and message What failed validation
content Structured Yes Written once; never discarded What was received
state Code Yes open, re-emitted, accepted-with-annotation Resolution (FR-ESS-AUD-001 part 11)

Classification: Sensitive (audit events, section 9.3).

Audit completeness report, a record of the audit service (DE-ESS-013):

Attribute Data Type Required Constraints Description
report_id Identifier Yes Unique Primary key
source_system String Yes A registered emitting service Emitter reporting its count
period_start, period_end UTC timestamps Yes End after start Reconciliation period
emitted_count Integer Yes ≥ 0 Count the emitter reports as emitted (FR-ESS-AUD-001 part 6.7)
stored_count, quarantined_count Integers Conditional Set at reconciliation Counts the audit service holds for the period
result Code Yes pending, matched, mismatch A mismatch raises the completeness exception (PR-AUD-001-3, REP-ESS-009)
reconciled_at UTC timestamp Conditional — When it was reconciled

Classification: Sensitive (audit metadata, section 9.3).

Audit integrity verification run, a record of the audit service (DE-ESS-013):

Attribute Data Type Required Constraints Description
verification_id Identifier Yes Unique Primary key
trigger Code Yes scheduled, on-demand How the run started (FR-ESS-AUD-002 part 6.3)
state Code Yes running, passed, failed Result
range_from, range_to UTC timestamps Yes End after start Events checked
started_at, started_by, completed_at UTC timestamp, identity reference, UTC timestamp Yes / conditional / conditional started_by for on-demand runs When and by whom
checked_count Integer Conditional ≥ 0 Events checked
failures List No Chain or batch, sequence range, reason (digest-mismatch, missing, reordered) Affected ranges, marked and preserved as incident evidence (PR-AUD-002-1)

Classification: Sensitive (audit data, section 9.3).

Audit export, a record of the audit service (DE-ESS-013):

Attribute Data Type Required Constraints Description
export_id Identifier Yes Unique Primary key
state Code Yes pending, ready, failed, expired Preparation state
format Code Yes Supported formats (ndjson) Export format (FR-ESS-AUD-002 part 7)
query_purpose, query_purpose_text Code, text Yes / No Audit access purpose value set Stated purpose (part 7; PR-AUD-002-2)
criteria Structured Yes At least one bounded criterion Query criteria (part 7)
requested_by, requested_at, completed_at Identity reference, UTC timestamps Yes / Yes / conditional — Who and when
event_count, content_digest Integer, hash Conditional Set when ready Integrity of the file (part 6.8, AC-05)
content_location, content_expires_at Reference, UTC timestamp Conditional Short-lived; bound to the requester Where the file is fetched over the D02 storage channel

Classification: Sensitive (audit events, section 9.3).

Added by the RC-3 contracts (session RC-3-S01, architecture 6.6 point 3), for approval by the domain leads: the records of security-event forwarding, evidence holds and disposal (FR-ESS-AUD-003; disposal from FR-ESS-AUD-002 part 6.7).

Audit forwarding rule, the content of a configuration item version (DE-ESS-018) of type ess.audit-forwarding-rule (CFG-ESS-019); drafted by the security officer and approved through the configuration lifecycle (FR-ESS-AUD-003 part 3):

Attribute Data Type Required Constraints Description
rule_key String Yes Unique; equals destination_id One rule per destination
destination_id String Yes Lowercase letters, digits and hyphens The forwarding destination (part 7, "what is sent where")
interface_id String Yes Registered and active in the Domain 2 interface registry How the destination is reached through Domain 2 (part 4; IF-ISE-006)
event_classes List Yes Each a category of the minimum audit event catalogue or a registered event type Classes forwarded in addition to the minimum set of part 6.2, which no rule removes (part 7 validation "event classes exist")
unavailable_alert_delay Duration Yes ISO 8601 Time a destination may be unavailable before the operational alert (PR-AUD-003-1, "configured delay")
queue_depth_alert_threshold Integer Yes ≥ 1 Pending events at which the capacity alert is raised (part 10, "queue approaching capacity")

Audit forwarding record, a record of the audit service, one per audit event (DE-ESS-013) and destination:

Attribute Data Type Required Constraints Description
event_id, destination_id UUID, string Yes Unique together The event and where it goes
state Code Yes pending, sent, acknowledged, failed Forwarding state per event (part 11)
selected_by Code Yes minimum-set, rule Why it is forwarded (parts 6.1, 6.2)
attempts Integer Yes ≥ 0 Sends so far; a resend after an outage or a corrected mapping adds one (part 6.3)
first_sent_at, last_sent_at UTC timestamps Conditional Set when sent When it was sent
acknowledged_at UTC timestamp Conditional Set on acknowledgement Receipt confirmed by Domain 2 (part 6.1, "confirm their receipt"; AC-01)
failed_at, failure_reason UTC timestamp, text Conditional Set on negative acknowledgement Held in the error queue with the destination's reason (part 10)

Audit forwarding reconciliation, a record of the audit service:

Attribute Data Type Required Constraints Description
reconciliation_id Identifier Yes Unique Primary key
destination_id String Yes A destination of a rule Destination reconciled
period_start, period_end UTC timestamps Yes End after start Reconciliation period (part 6.4, "per period")
selected_count, sent_count, acknowledged_count, failed_count, pending_count Integers Yes ≥ 0 Forwarded against acknowledged counts (part 6.4)
result Code Yes pending, matched, mismatch A mismatch raises the exception to the security officer (PR-AUD-003-2)
reconciled_at UTC timestamp Conditional — When it was reconciled
exception_task Reference Conditional A task of DE-ESS-015; set for a mismatch The exception to the security officer

Audit evidence hold, a record of the audit service:

Attribute Data Type Required Constraints Description
hold_id Identifier Yes Unique Primary key
state Code Yes active, released Part 11
criteria Structured Yes At least one bounded criterion, as the audit export criteria Scope of preservation (part 7, "criteria bounded")
reason Text Yes — Why the events are preserved (part 6.7, "relevant to an incident")
incident_ref Reference No — The incident or security alert the hold serves
placed_by, placed_by_role, placed_at Identity reference, code, UTC timestamp Yes Role security-officer, privacy-officer or legal-compliance-officer Who placed it, and in which role, which decides who may release it (part 6.7)
released_by, released_by_role, released_at, release_reason Identity reference, code, UTC timestamp, text Conditional Set on release; role privacy-officer or legal-compliance-officer Who released it (part 6.7; PR-AUD-003-4)
second_approver, second_approved_at, second_signature_ref Identity reference, UTC timestamp, reference Conditional Set on release; not the releaser; step-up of FR-ESS-IAM-002 The second person who authorized in place; both names are recorded (part 6.7)

Audit disposal run, a record of the audit service (FR-ESS-AUD-002 parts 6.7 and 12):

Attribute Data Type Required Constraints Description
disposal_id Identifier Yes Unique Primary key
trigger Code Yes scheduled, on-demand The retention schedule, or a person the policy permits (no actor is named yet)
state Code Yes running, completed, failed —
criteria Structured Yes Time range required Events to dispose of
retention_rule Reference Yes The active approved version of CFG-ESS-018 The approved policy the disposal is made under (part 6.7, "approved, logged action")
started_by, started_at, completed_at Identity reference, UTC timestamps Conditional / Yes / conditional started_by for on-demand runs Who and when
second_approver, second_approved_at, second_signature_ref Identity reference, UTC timestamp, reference Conditional Required for on-demand runs; not the requester; step-up of FR-ESS-IAM-002 The approval of the on-demand action (part 6.7, "approved, logged action")
disposed_count, held_count Integers Conditional ≥ 0 Events disposed of, and events past retention left because a hold covers them (PR-AUD-003-3)

A disposal request whose criteria match an event under an active hold, or an event within retention, is refused and disposes of nothing (PR-AUD-003-3, PR-AUD-002-3).

Classification of the RC-3 additions: Sensitive (audit data, section 9.3); a forwarding rule is Internal configuration.

Entity DE-ESS-014: Notification

Attribute Data Type Required Constraints Description
notification_id, idempotency_key Identifier, string Yes Key unique per requester Keys
type, priority Codes Yes Registered type; permitted priority Classification
requester Service identity Yes — Owning domain service
recipient_spec, resolved_recipients Structured, list Yes — Requested and actual recipients with resolution time
subject_refs References Conditional — Patient and source record
state Code Yes Section 4.3 states Lifecycle
deliveries List Yes Channel, sent, outcome, reason, timestamps Delivery attempts
acknowledgement Structured No User, time, channel Acknowledgement
escalation_history List No Step, recipients, timestamps Escalation steps

Added by the RC-2 contracts (session RC-2-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
owning_domain Code Yes From the notification type Domain that owns the content and rule, and receives the status events (FR-ESS-NTF-001 part 6.8, section 7.1)
patient_ref, encounter_ref Identifiers Conditional Enterprise person identifier and encounter from Domain 1 Patient-scoped notifications (section 8.5)
facility Facility code No Context for recipient resolution, not owner Facility the notification concerns (architecture 7.5)
acknowledgement_required, escalation_policy Boolean, reference Yes / conditional True and policy present for critical (BR-ESS-023) FR-ESS-NTF-001 part 7; PR-NTF-001-2
content_parameters Structured Yes Match the type's template; content retention 90 days (retention) Values for the message (part 7); never copied into audit (part 12)
recipient_resolution Code with time and reason Yes after resolution resolved, fallback, unresolved Outcome reported to the requester (PR-NTF-001-3, PR-NTF-001-4)
merged_requests Integer No Within the type's deduplication window Requests merged into this one (BR-ESS-024)
history List Yes Action, actor, time, from and to state, reason State changes, cancellation, administrative retry and reroute with reason (part 3, part 12)
requested_at, updated_at, version UTC timestamps, integer Yes Version incremented on every change Request time, last change, optimistic concurrency (section 8.4)

Recipient channel settings (added by the RC-2 contracts). One record per workforce account.

Attribute Data Type Required Constraints Description
account_id Reference Yes Active DE-ESS-001 account Owner of the settings
channels List (priority, channel, enabled, locked) Yes A channel configured for critical priority, and the in-application channel, are locked and stay enabled (PR-NTF-001-7) The user's channel choices within policy (FR-ESS-NTF-001 parts 3 and 6.3, AC-07)
updated_at, version UTC timestamp, integer Yes Version incremented on every change Optimistic concurrency

Notification type (added by the RC-2 contracts). Registered by the owning domain as a configuration item version (DE-ESS-018) of item type ess.notification-type (CFG-ESS-013).

Attribute Data Type Required Constraints Description
notification_type, owning_domain, title Code, code, text Yes <domain>.<name>; unique Registered type (FR-ESS-NTF-001 part 4)
permitted_priorities, recipient_kinds, allowed_channels Code lists Yes Priority and channel value sets What a request of the type may ask for (part 4, part 7)
parameters List (name, category, required) Yes Category none, patient-name, patient-identifier, diagnosis or result Template parameters; the category drives PR-NTF-001-6
templates List (channel, audience, locale, title, text) Yes An external-channel template for workforce recipients uses no parameter of a patient or clinical category (PR-NTF-001-6) Content per channel (part 6.4)
deduplication Structured (window, key) No Window in seconds Merge rule (BR-ESS-024, part 6.5)
acknowledgement_required, escalation_policy Boolean, reference Yes / conditional Required for a type that permits critical (BR-ESS-023) Defaults for requests of the type

Classification of DE-ESS-014: Confidential (section 9.3): notifications carry patient references and template parameters, never clinical content in external workforce channels (part 13).

Entity DE-ESS-015: Workflow Instance and Task

Workflow definition version. Held as a configuration item version (DE-ESS-018); the attributes below are those the workflow service exposes.

Attribute Data Type Required Constraints Description
definition_id Code Yes <domain>.<name>; unique Identity of the definition (FR-ESS-WFL-001 part 7)
owning_domain Code Yes Domain code Domain that defines it and owns its business content (section 7.1)
title Text Yes — Name shown in workspaces (UI-ESS-009)
version, state Integer, code Yes Configuration version lifecycle Definition version and its state (FR-ESS-WFL-001 part 11)
effective_from, effective_to UTC timestamps Yes / No No overlap per definition Effective period (DQ-ESS-005)
configuration_item Reference Yes Existing DE-ESS-018 version Steps, step targets, timers, retry policy, compensation and escalation (FR-ESS-WFL-001 part 6.1)

Workflow instance.

Attribute Data Type Required Constraints Description
instance_id UUID Yes Unique Primary key (IF-ESS-010)
definition_id, definition_version Code, integer Yes Version Active at start; immutable Binding to the definition version (BR-ESS-027, PR-WFL-001-3)
business_key String Yes Unique per definition among open instances Duplicate-start protection (FR-ESS-WFL-001 part 7, PR-WFL-001-1)
owning_domain Code Yes From the definition Owner of the instance (FR-ESS-WFL-001 part 3)
state Code Yes Section 4.3 states: accepted, pending, completed, failed, awaiting-approval, cancelled, compensated Lifecycle (FR-ESS-WFL-001 part 11)
context Structured Yes Correlation identifier; enterprise person identifier, encounter and facility where they apply; identifiers only Carried to every step (FR-ESS-WFL-001 parts 6.9, 7 and 13)
initiating_actor, on_behalf_of Identity references Yes / No Resolvable For authorization and audit (FR-ESS-WFL-001 part 7)
input_refs Reference list No References only; no bulk clinical content (BR-ESS-031) Step inputs (FR-ESS-WFL-001 part 7)
steps List Yes Step identifier, target (owning-domain operation, event or task type), state (waiting, dispatched, completed, failed, skipped, compensated), attempts, next attempt time, failure reason, replay-sensitive flag, task reference Execution state per step (FR-ESS-WFL-001 parts 6.4, 6.5, 6.7 and 6.11)
failure_reason, flags Text, code list Conditional / No Reason set while Failed; flags such as stuck, compensation-incomplete Recovery worklist (FR-ESS-WFL-001 parts 9 and 10, CFG-ESS-015)
skip_request Structured Conditional Step, approval task, requester, time, reason; set while Awaiting Approval Skip under procedure (FR-ESS-WFL-001 part 3)
history List Yes Action, actor, time, from and to state, reason Manual interventions with reason (FR-ESS-WFL-001 part 12)
started_at, updated_at, ended_at UTC timestamps Yes / Yes / No — Age and duration (FR-ESS-WFL-001 part 9)
version Integer Yes Incremented on every change Optimistic concurrency (section 8.4)

Task.

Attribute Data Type Required Constraints Description
task_id UUID Yes Unique Primary key (IF-ESS-010)
task_type Code Yes Registered task type of the creating domain Determines queue rules (FR-ESS-WFL-002 parts 3 and 7)
owning_domain Code Yes From the task type Domain that owns the task type and its outcome (FR-ESS-WFL-002 part 3)
state Code Yes Section 4.3 states: created, assigned, in-progress, overdue, escalated, completed, cancelled, failed Lifecycle (FR-ESS-WFL-002 part 11)
priority Code Yes Priority value set Ordering (FR-ESS-WFL-002 part 7)
queue_id, assignee Reference, structured At least one Active queue; assignee a user (account) or role Owner at all times (BR-ESS-026, FR-ESS-WFL-002 part 6.2)
facility Facility code Conditional Required for a task of a facility-scoped queue; immutable Facility scope (architecture 7.5)
subject_refs Reference list Yes Resolvable; references only Patient, record or item concerned (FR-ESS-WFL-002 part 7)
patient_ref, encounter_ref Identifiers Conditional Enterprise person identifier and encounter from Domain 1 Patient-scoped tasks (section 8.5)
origin_ref, instance_id, step_id Reference, UUID, string No — Originating record, workflow instance and step (FR-ESS-WFL-002 part 6.1)
due_at, overdue_at_creation UTC timestamp, boolean Yes / No In the future at creation, or the explicit overdue flag Deadline (FR-ESS-WFL-002 part 7)
completion_evidence, outcome Structured, code Conditional Per task type; refused when missing What must be recorded on completion (FR-ESS-WFL-002 parts 7 and 10)
completed_at, completed_by UTC timestamp, identity reference Conditional Set on completion Completion (FR-ESS-WFL-002 part 6.3)
flags Code list No returned-to-queue, stuck Assignee unavailable, stuck work (PR-WFL-002-1, FR-ESS-WFL-002 part 6.6)
history List Yes Action, actor, time, from and to state, reason, previous and new assignee Claim, release, start, completion, reassignment and recovery (FR-ESS-WFL-002 parts 6.3 and 6.8, AC-05)
created_at, created_by, updated_at UTC timestamps, identity reference Yes — Creation and last change
version Integer Yes Incremented on every change Optimistic concurrency (section 8.4)

Task type and work queue. Registered by the owning domain and versioned as configuration (section 13).

Attribute Data Type Required Constraints Description
task_type, owning_domain, title Code, code, text Yes <domain>.<name>; unique Registered task type (FR-ESS-WFL-002 part 4)
default_queue_id Reference No Active queue Where new tasks go (FR-ESS-WFL-002 part 6.2)
completion_evidence_schema Structured No — Required completion evidence (FR-ESS-WFL-002 part 7)
outcome_confirmation Code Yes none or owning-domain Whether the owning domain confirms the outcome before completion (FR-ESS-WFL-002 part 6.10)
escalation_policy Reference No CFG-ESS-014 policy Escalation when Overdue (FR-ESS-WFL-002 part 6.4)
queue_id, owning_domain, title Code, code, text Yes <domain>.<name>; unique Registered queue (FR-ESS-WFL-002 part 4)
scope Structured Yes Level enterprise, facility or department, with the facility or department Queue scope (section 13)
eligible_roles, supervisor_roles Role references Yes / No Active roles Who may work and who supervises the queue (FR-ESS-WFL-002 part 3)
measures Structured Yes Open count, overdue count, oldest open time, eligible active users, median completion time, measured at Queue report and stuck-queue detection (FR-ESS-WFL-002 parts 6.6 and 6.9, REP-ESS-012)
stuck, stuck_reason Boolean, code Yes / conditional no-eligible-user or oldest-item-age Stuck queue (PR-WFL-002-3, CFG-ESS-015)

Classification: Confidential (section 9.3): tasks and workflow instances carry patient references, never clinical content.

Entity DE-ESS-016: Document Reference

Written by the contract session RC-5-S01 (architecture 6.6 point 3) for document-reference.v1, for approval by the domain leads. Each attribute names its source in FR-ESS-DOC-001.

Attribute Data Type Required Constraints Description
document_id UUID Yes Stable; never reused Stable document identifier (part 6.1)
document_type Code Yes Registered type with its owning domain, default labels, permitted formats and size limits (CFG-ESS-024) Document type (part 7; precondition part 4)
patient, registered_patient Enterprise person identifiers Conditional Required for patient document types; registered_patient kept when a merge or unmerge moves the document Patient reference; the index follows the surviving or restored identity, original identifiers kept (parts 6.2 and 10)
encounter Identifier No Encounter of Domain 1 Encounter reference (part 6.2)
status Code Yes Current, Entered in Error, Disposed Lifecycle (part 11)
classification Code No Set by Domain 6 only Classification (parts 3 and 6.2)
retention_class Code No Set by Domain 6; default from the type Retention class (parts 3 and 6.7)
legal_hold, legal_hold_ref Boolean, reference Yes / conditional Set by Domain 6; reference to the D06 hold when true Legal hold flag (parts 3, 6.7; PR-DOC-001-4)
disposed_at, disposition_ref UTC timestamp, reference Conditional Only on a Domain 6 disposition instruction; content removed, metadata kept as tombstone Disposal (part 6.7)
revision Integer Yes Increases on every change Optimistic concurrency, the ETag of a change (architecture 6.2)

Each version of a document:

Attribute Data Type Required Constraints Description
version_id, version_number UUID, integer Yes Immutable object; numbers increase by one Version identifier (part 6.1)
predecessor Version reference For versions after the first The current version of the same document Version chain; signed versions never overwritten (part 6.3)
status, status_reason Code, text Yes / conditional Current, Superseded, Entered in Error, Disposed; reason for Entered in Error Part 11
title, author, authoring_organization, created_at, source_system, language Text, references, UTC timestamp, code Yes except language Author and organization resolvable Metadata (part 6.2, part 7)
format, media_type, size_bytes Code, text, integer Yes for stored content Format and size permitted for the type; real type detected from the content Part 6.10, CFG-ESS-024
content_hash SHA-256 Yes for stored content Computed at registration, verified on retrieval Parts 6.1 and 6.6, PR-DOC-001-1, PR-DOC-001-3
storage, content_ref Code, reference Yes Stored (object storage of Domain 2, under object lock), external, removed Where the content is (parts 6.1 and 6.9)
external_location Structured (repository, locator, retrieval method, hash) Conditional For content kept in an external or ancillary repository; always for DICOM Part 6.9
labels Code list Yes Taxonomy codes; type defaults when none are given Privacy labels (part 6.2; FR-ESS-AUZ-003)
signature_status_ref Reference No Record of the authoring domain Signature status reference (part 6.2)
facility Facility code No Context, not owner The facility of the authoring encounter as provenance (architecture 7.5)
registered_at UTC timestamp Yes — When the version was registered (DQ-ESS-009)

Each retrieval made by a resolution:

Attribute Data Type Required Constraints Description
retrieval_id UUID Yes — The short-lived retrieval reference (part 6.5)
subject, action, decision_id References, code Yes Bound to the requesting subject; view, print or export; the Permit decision A retrieval used by another subject is refused (PR-DOC-001-5); the action is audited (part 12)
expires_at UTC timestamp Yes At most 5 minutes after resolution Short-lived (part 13; PR-DOC-001-5)

Classification: Sensitive for patient documents (section 9.3); a reference grants nothing without a Permit decision (BR-ESS-033).

Entity DE-ESS-017: Stewardship Item and Data Domain Register Entry

The stewardship item part, written by the contract session RC-5-S01 (architecture 6.6 point 3) for the terminology items of terminology.v1 1.1 and the unknown-label items of policy-decision.v1 1.2, for approval by the domain leads. The data domain register entry and the data quality items of FR-ESS-DGV-001 and FR-ESS-DGV-002 are added with their slice.

Attribute Data Type Required Constraints Description
stewardship_item_id UUID Yes Unique Item ID (section 7.2)
kind Code Yes Validation failure, unmapped, ambiguous (terminology); unknown label (policy decision) What raised the item (FR-ESS-TRM-003 part 6.5, BR-ESS-017; FR-ESS-TRM-002 part 6.7; FR-ESS-AUZ-003 PR-AUZ-003-1)
state Code Yes Open, Assigned, Resolved, Rejected (terminology); Open, Resolved, Rejected (unknown label) FR-ESS-TRM-003 part 11
system, code, display, version, target_system, value_set URI, codes, text Yes for system and code Code and source context only, no patient data The reported code (FR-ESS-TRM-003 parts 6.5 and 13)
context Text No No patient data Where the code was met (part 6.5)
safety_relevance Code Yes Safety-relevant or Standard, classified by use (GAP-ESS-006) Drives priority (FR-ESS-TRM-003 parts 6.6 and 7)
candidates Structured list Conditional For ambiguous The candidate targets (PR-TRM-003-2)
occurrence_count, reporters Integer, structured list (source, count, last reported) Yes One item per code and source context; repeated reports increase the count Frequency and the sources to notify (FR-ESS-TRM-003 parts 6.5 and 6.7, PR-TRM-003-4)
raised_at, last_reported_at UTC timestamps Yes — Age, for priority (part 6.6)
assignee, assigned_at Reference, UTC timestamp Conditional A steward of the code system the item is assigned by Assignment (part 6.6)
resolution Structured (resolution, artifact version, reason, closed by, closed at) Conditional On Resolved or Rejected; reason mandatory Resolution with reason (FR-ESS-TRM-003 part 12, AC-04; WF-ESS-004 step 7)
revision Integer Yes Increases on every change Optimistic concurrency

Classification: Internal (section 9.3).

Entity DE-ESS-018: Configuration Item Version

Attribute Data Type Required Constraints Description
item_type, item_key, scope, version Codes, reference, integer Yes Unique combination Key
content, content_hash Structured, hash Yes Immutable after approval Configuration and package identity
state Code Yes Section 4.3 states Lifecycle
effective_from, effective_to UTC timestamps Yes / No No overlap for same item and scope Effective period
author, change_reason Reference, text Yes — Authoring
approver, approved_at, test_evidence_ref Reference, timestamp, reference Yes at approval / conditional Approver not author Approval
promotions List No Environment, time, actor, hash Promotion history

Added by the RC-1 contracts (session RC-1-S01, architecture 6.6 point 3), for approval by the domain leads:

Attribute Data Type Required Constraints Description
version_id Identifier (UUID) Yes Unique; never reused Surrogate key of one version, used by the lifecycle operations (IF-ESS-012)
facility Facility code Conditional Required for facility and department scope; absent for enterprise scope; immutable The facility of the scope. A version of facility or department scope is facility-owned (architecture 7.5)
scope (structure) Level code, facility code, reference Yes Level is enterprise, facility or department, and is permitted for the item type; unit references an active DE-ESS-010 entity Level, facility and unit of the scope (FR-ESS-CFG-001 part 7, Scope)
change_impact Text Yes Non-empty Statement of impact (FR-ESS-CFG-001 part 7; WF-ESS-006 step 4)
created_at UTC timestamp Yes — When the draft was created
validation Structured No Result (passed or failed), checked time and findings (pointer, rule, message, source: schema, hook or reference) Last validation against the type's schema and the owning domain's hook (FR-ESS-CFG-001 parts 6.3 and 10)
approvals List No Decision (approved or returned), approver (not author), decided time, comment, signature reference Approval route history, including returns to Draft (FR-ESS-CFG-001 part 7, Approval; section 4.3)
emergency Structured Conditional Only on the emergency path: reason, requester, second-person approval (approver not requester, time, signature reference), review due time (within 5 working days), review task reference, review state (due or closed) Emergency change of FR-ESS-CFG-001 part 6.11
rolled_back_at, superseded_by UTC timestamp, reference Conditional Set by rollback or supersession When the version was rolled back; the version that superseded or replaced it (PR-CFG-001-1, part 6.10)

Configuration item type registration (CFG-ESS-022; FR-ESS-CFG-001 parts 4 and 6.1). Key: item_type.

Attribute Data Type Required Constraints Description
item_type Code Yes Unique; <owning domain>.<name> The type
title Text Yes — Name shown in the item browser of UI-ESS-011
owning_domain Code Yes A domain code Owner of the content and its validation logic (part 6.1)
owner Reference Yes Active Named active owner (DQ-ESS-003)
content_schema Structured Yes JSON Schema 2020-12 Schema a draft is validated against (part 6.3)
content_store Code Yes central or domain Where the content is held (DEC-ESS-016, hybrid by item type); the version carries the content as its package either way
validation_hook Reference No Contract and operation in the API catalogue The owning domain's semantic check (part 6.3)
test_requirement Structured Yes Required flag; description of the defined tests Whether test evidence must be attached before approval (part 6.4)
scope_levels Code list Yes Subset of enterprise, facility, department Levels the type may be set at; more than one permits overrides (part 6.8)
approval_authority Structured Yes Role; whether the designated clinical authority is required Who approves versions of the type (parts 3 and 6.5)
clinical_content Boolean Yes — Content alters clinical behaviour; the emergency path is open only for such types (parts 6.11 and 13)
authoring_screen Code Yes Screen identifier; default UI-ESS-011 The screen that authors the type (CFG-ESS-022)
registered_at UTC timestamp Yes — Registration time

Rollback request (FR-ESS-CFG-001 part 6.10; WF-ESS-006 step 9 and exceptions; BR-ESS-030). Key: rollback_request_id.

Attribute Data Type Required Constraints Description
rollback_request_id Identifier (UUID) Yes Unique Key
version_id, restore_version_id References Yes The Active version; a prior approved version of the same item and scope What is withdrawn and what is reactivated
facility Facility code Conditional As the version's Facility of the scope
state Code Yes requested, approved, declined Request state
reason Text Yes Non-empty Why the change is withdrawn
requested_by, requested_at Reference, UTC timestamp Yes — Who asked and when
compatibility_warnings Text list Yes (may be empty) — Incompatibility of the restored version with data created since activation; the approver decides between rollback and forward-fix
decided_by, decided_at, comment Reference, UTC timestamp, text At decision Change approver Decision on the request (part 3)

Extension point and extension (FR-ESS-CFG-002 parts 6.1 to 6.3, 7 and 11). Keys: extension_point_id; extension_id.

Attribute Data Type Required Constraints Description
extension_point_id Identifier (UUID) Yes Unique Key of the extension point
name Text Yes — Name of the extension point or extension
type Code Yes (point) published-api, event-subscription, configurable-form-or-template, conformance-package, plug-in-or-module-contract Extension point type (part 6.1)
hosting_domain Code Yes (point) A domain code Domain that hosts the extension contract
contract_ref Reference Yes (point) Contract identifier and version in the API catalogue The extension contract (parts 4 and 10)
owner Reference Yes Active Accountable owner
compatibility_commitment Text Yes (point) — What the hosting domain commits to
status Code Yes proposed, approved, deprecated, retired Lifecycle (part 11)
decision_records References No DE-ESS-019 records Decisions that affect it (FR-ESS-CFG-003 part 6.7)
extension_id Identifier (UUID) Yes (extension) Unique Key of a registered extension
support_owner Reference Yes (extension) Active Support owner (part 6.2)
scope Structured Yes (extension) As the scope of DE-ESS-018 Where the extension applies
service_identity Reference No DE-ESS-002 Identity the extension acts under (part 13)
review_evidence Reference list Conditional Sandboxing, compatibility and security review; required for plug-in or module contracts (PR-CFG-002-1) Review evidence
created_at UTC timestamp Yes — Registration time

Feature flag (FR-ESS-CFG-002 part 6.4). A feature flag is a configuration item of type ess.feature-flag. Its key is the flag key, and its content holds the attributes below. It follows the DE-ESS-018 lifecycle.

Attribute Data Type Required Constraints Description
owner Reference Yes Active Flag owner
purpose Text Yes Non-empty Why the flag exists
planned_removal_date Date Yes — Past this date the flag is on the exception report (PR-CFG-002-3)
enabled Boolean Yes — Flag state; every change is audited with actor, scope, before and after (PR-CFG-002-2)

Classification: Confidential (section 9.3: configuration content).

Entity DE-ESS-019: API Catalogue Entry and ADR

API catalogue entry (FR-ESS-CFG-003 parts 6.1 to 6.5 and 7; IF-ESS-014). Key: contract_id + version, with entry_id as a surrogate.

Attribute Data Type Required Constraints Description
entry_id Identifier (UUID) Yes Unique Surrogate key
contract_id, version String, string Yes Unique pair; version <major>.<minor> Contract identity: <domain>.<api name> or the event type
kind Code Yes api or event What the contract is
owner Reference Yes Active Accountable team or person
purpose Text Yes — What the contract is for
schema_ref Reference Yes Resolvable Machine-readable schema (repository path or registry subject)
content_hash Hash Yes — Identity of the schema content. Republishing identical content is a no-op; different content under an existing pair is refused
scopes Code list Yes Registered scopes Authorization scopes (FR-ESS-AUZ-004)
classification Code Yes Section 9.3 levels: internal, confidential, sensitive Data classification
status Code Yes proposed, active, deprecated, retired Lifecycle (part 11)
deprecation_date, retirement_date Dates Conditional Retirement not before deprecation date plus the notice of CFG-ESS-023, unless an exception is recorded Lifecycle dates
exception Structured No Kind (security or patient-safety); reference to the approving record Approved exception to the notice period or to retirement with active consumers (parts 6.2 and 6.4)
partner_visible, partners Boolean, list Yes / No — Offered to registered partners; the partner view shows only these (part 13)
consumers List Yes (may be empty) Consumer, registered time, external flag, migration state (not-required, pending, migrated), notified time Registered consumers and their migration (parts 6.1 and 6.3)
decision_records References No DE-ESS-019 records Linked decisions (part 6.7)
published_by, published_at Reference, UTC timestamp Yes Owner or release pipeline service identity Who published and when (part 6.5)

Decision record (FR-ESS-CFG-003 parts 6.6 to 6.9 and 11; FR-ESS-DGV-001 part 6.3). It is the single register layout for architecture decisions and governance decisions. Key: record_id, with identifier as the business key.

Attribute Data Type Required Constraints Description
record_id Identifier (UUID) Yes Unique Key
identifier String Yes Unique; for example ADR-HIS-045 Register identifier
record_type Code Yes architecture-decision or governance-decision Record type; each type keeps its own approver (part 6.9)
title, context Text Yes — Subject and context
options List Yes At least one; title and summary Options considered
decision, rationale Text Yes — What was decided and why
risks Text list Yes At least one Risks
status Code Yes proposed, accepted, rejected, superseded, deprecated Lifecycle; a superseded record names its replacement (part 11)
author Reference Yes — Who drafted it
decision_date, approver Date, reference At acceptance or rejection Approver not the author Decision (part 3)
review_date Date Yes — A review task is created when it is reached (PR-CFG-003-3)
superseded_by Reference Conditional Required when superseded Replacing record
links List No Kind (catalogue-entry, extension-point, dependency) and identifier What the decision affects (part 6.7)
created_at UTC timestamp Yes — When it was drafted

Classification: Internal (section 9.3: API catalogue, ADRs).

7.4 Entity Relationships

erDiagram
    WORKFORCE_ACCOUNT ||--o{ ROLE_ASSIGNMENT : holds
    ROLE ||--o{ ROLE_ASSIGNMENT : assigned_as
    WORKFORCE_ACCOUNT |o--o| PRACTITIONER : represents
    PRACTITIONER }o--o{ ORGANIZATION : affiliated_with
    ORGANIZATION ||--o{ LOCATION : contains
    ROLE_ASSIGNMENT }o--|| ORGANIZATION : scoped_to
    SERVICE_IDENTITY }o--|| WORKFORCE_ACCOUNT : owned_by
    AUTHORIZATION_POLICY ||--o{ POLICY_DECISION : applied_in
    POLICY_DECISION }o--o| CONSENT_DIRECTIVE : relies_on
    POLICY_DECISION }o--o| EMERGENCY_ACCESS_SESSION : permitted_under
    EMERGENCY_ACCESS_SESSION ||--o{ AUDIT_EVENT : links
    POLICY_DECISION ||--o{ AUDIT_EVENT : cited_by
    CODE_SYSTEM_VERSION ||--o{ VALUE_SET_VERSION : bound_by
    CODE_SYSTEM_VERSION ||--o{ CONCEPT_MAP_VERSION : source_or_target_of
    ASSIGNING_AUTHORITY ||--o{ IDENTIFIER_CROSS_REFERENCE : qualifies
    WORKFLOW_DEFINITION_VERSION ||--o{ WORKFLOW_INSTANCE : instantiates
    WORKFLOW_INSTANCE ||--o{ TASK : creates
    TASK ||--o{ NOTIFICATION : triggers
    CONFIGURATION_ITEM_VERSION ||--o{ AUTHORIZATION_POLICY : versions
    CONFIGURATION_ITEM_VERSION ||--o{ WORKFLOW_DEFINITION_VERSION : versions
    DATA_DOMAIN_ENTRY ||--o{ STEWARDSHIP_ITEM : routes
    DOCUMENT_REFERENCE ||--o{ DOCUMENT_REFERENCE : supersedes
    CONSENT_DIRECTIVE }o--o| DOCUMENT_REFERENCE : evidenced_by
  • Within the domain. An account has zero or more role assignments; each assignment is scoped to one organization or location entity. A practitioner links to at most one account. A service identity has exactly one owner account. A decision cites one policy version and may cite one consent directive version and one emergency access session. Audit events cite decisions and sessions by identifier.
  • To other domains. Patient and encounter are held only as identifiers issued by Domain 1. Document references, notifications, tasks, workflow instances and stewardship items hold references to other domains' records, never copies of their business content (BR-ESS-031).
  • Referential integrity. References to master-data entities must resolve to a version effective at the relevant time. Entities that are referenced are retired, not deleted (BR-ESS-019). On patient merge or unmerge, Domain 10 re-keys directives, document index entries and open tasks from Domain 1 events and keeps the original identifiers.
  • Cardinality and lifecycle. Exactly one Active version exists per configuration item and scope, per terminology artifact, and per master-data entity at any instant. Audit events, decisions, sessions and directive versions are immutable once written.

7.5 Data Quality Requirements

Requirement ID Quality Dimension Requirement Validation
DQ-ESS-001 Uniqueness No two active accounts shall exist for one workforce identity; no identifier shall repeat within an assigning authority and type. Constraint at write; daily reconciliation report
DQ-ESS-002 Accuracy Account state, role assignments and credential status shall match the latest identity-source facts. Scheduled reconciliation against HR and credentialing sources; exceptions queued
DQ-ESS-003 Completeness Every master-data domain, code system, configuration item type and service identity shall have a named active owner. Governance exception report (REP-ESS-008)
DQ-ESS-004 Completeness 100% of defined sensitive-data access events shall be present in the audit store and received by security monitoring (PRS 27). Emitted-versus-stored and forwarded-versus-acknowledged reconciliation
DQ-ESS-005 Consistency Every versioned artifact shall have non-overlapping effective periods and exactly one active version per scope. Constraint at activation; periodic check
DQ-ESS-006 Validity Codes, units and identifiers in Domain 10 entities shall validate against the terminology service and registries (DAT-002). Validation at write
DQ-ESS-007 Timeliness A leaver, credential lapse, consent withdrawal or role revocation shall be effective in decisions within the configured propagation objective (NFR-ESS-003). Timed test from event to first denied decision
DQ-ESS-008 Integrity Audit events and document content shall be verifiably unaltered. Scheduled integrity verification; hash check on retrieval
DQ-ESS-009 Temporal consistency Event time, recorded time, effective time and ingestion time shall be stored as distinct UTC attributes where each applies (DAT-004). Schema conformance check (FR-ESS-DGV-003)

7.6 Data Lifecycle and Retention

  • Creation. Entities are created only through the APIs and workflows in section 5, by authenticated actors, with provenance.
  • Modification. Governed artifacts (policies, terminology, master data, configuration, consent directives, workflow definitions) are changed by creating a new version. Operational records (accounts, tasks, notifications, workflow instances) change state through defined transitions with audit.
  • Correction. Published versions and consent directives are corrected by a superseding version or an Entered in Error status. Audit events are never corrected in place; an annotation event is appended.
  • Archiving. Audit events, decisions, closed notifications, completed tasks and workflow instances move to archive storage after the online period, with integrity evidence preserved.
  • Retention. Retention by record class is governed by Domain 6 policy (HIM-002) and takes its periods from the enterprise retention baseline (GAP-ESS-001, closed 17 Nov 2026). The Domain 10 record classes map to it as in the table below. Superseded versions of terminology, mappings, policies and configuration are retained for at least as long as any record that cites them, because historical reconstruction depends on them (PRS 7.2, EBP-011). Retention is configured by record class in CFG-ESS-018.

Domain 10 record class Minimum retention Trigger Online Baseline row
Audit events about patient data (access, change, disclosure), Break-the-Glass sessions, justifications and reviews Same as the record they concern (25 years) Patient's last visit 2 years Audit events about patient data
Other audit events: authentication, administration, configuration, policy, privileged access, audit access 10 years Event 2 years Other audit
Authorization decisions The decision identifier, outcome and policy version are kept in the audit event and follow its class. Full decision traces (all inputs) are application logs: 90 days Decision As stated Other audit; platform data
Workforce accounts, role assignments, service identities, application grants and recertification evidence 10 years Deprovisioning or end of the assignment 2 years Other audit
Consent directives and all superseded versions Same as the record they govern (25 years) Patient's last visit Life of the directive plus 2 years Consent directives
Data subject requests, stewardship items, tasks and workflow instances 10 years Closure 2 years Workflow instances and tasks
Notifications Content 90 days; delivery, acknowledgement and escalation metadata 2 years Sending As stated Notifications
Superseded versions of terminology, concept maps, policies, roles, workflow definitions, escalation policies and configuration; retired master-data and practitioner records While any retained record references them, and at least 25 years after retirement Retirement Until retirement plus 2 years Superseded content and configuration versions
Document metadata and content Retention class set by Domain 6 for the document type As the class states As the class states By document class
Security events forwarded to the SIEM 3 years in the SIEM (Domain 2) Event 1 year searchable Security events in the SIEM
- Disposal. Disposal occurs only through an approved, logged action. Document content is disposed of only on instruction from Domain 6's disposition process.
- Legal hold. Legal hold flags set by Domain 6 on documents, and evidence holds set by the security officer on audit events, prevent disposal until released.
- Portability. Terminology mappings, audit records, configuration and master data are exportable in documented machine-readable formats preserving identifiers, relationships, provenance, timestamps, status and version history (PRS 15.2, ACC-008).

7.7 Data Migration Requirements

Migration ID Source Target Data Scope Validation
MIG-ESS-001 Legacy directories and application user tables DE-ESS-001, DE-ESS-003 Workforce accounts and role assignments; generic and shared accounts are not migrated Reconciliation to HR source; one account per person; approver sign-off of initial role assignments
MIG-ESS-002 Legacy facility, department, ward and location tables DE-ESS-010, DE-ESS-012 Organization and location hierarchy with source identifiers as cross-references Row counts; hierarchy integrity; owner sign-off
MIG-ESS-003 Legacy clinician, staff and referrer tables; credentialing records DE-ESS-011, DE-ESS-012 Practitioners, qualifications, affiliations, source identifiers Duplicate detection; credential validity check; sampling by credentialing office
MIG-ESS-004 Legacy local code tables and interface mapping tables DE-ESS-008, DE-ESS-009 Local code systems and maps to standard terminology Profiling for invalid and duplicate codes; unmapped codes to stewardship queue; clinical governance approval (ACC-010)
MIG-ESS-005 Legacy consent flags and restriction markers DE-ESS-007 Consent and privacy preferences with source and date Mapping to consent model reviewed by privacy officer; items lacking required attributes loaded as Proposed
MIG-ESS-006 Legacy document repositories (metadata and content) DE-ESS-016, with Domain 6 Document metadata and references; content transfer with hash Counts, checksums, sampling; joint sign-off with HIM (PRS 16.2)
MIG-ESS-007 Legacy audit logs Archive associated with DE-ESS-013 Historical audit preserved in original form as evidence; not transformed into the live audit store Checksums; documented format and access procedure

Migration preserves source-system identifiers and provenance and does not silently overwrite conflicts (PRS 16.2).


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