Medication the patient takes or took; states Active (shown as "Current"), On Hold, Discontinued, Completed, Entered in Error (section 4.3); source and verification are attributes
Statement ID + version
Pharmacy leadership
DE-CLI-016
MedicationReconciliation
Reconciliation session and decisions; states Open, In Progress, Completed, Cancelled, Superseded (section 4.3); each decision records who proposed it and who confirmed it
Review and acknowledgement, critical work item, release decision
Review ID
Clinical governance
DE-CLI-026
ImportedItem
External or patient-reported item pending reconciliation; states Received, Accepted, Rejected, Deferred (section 4.3)
Imported item ID
Clinical governance
DE-CLI-027
Hazard
Clinical hazard log entry, linked to requirements, controls, tests, incidents, content releases and CDS rules; shown in the hazard register view on UI-CLI-016
Hazard ID + version
Clinical safety lead
DE-CLI-028
Provenance
Link from an assertion to author, validator, device, source and transformation
Attributes common to every clinical entry (DE-CLI-001, 003 to 007, 009 to 011, 015 to 019, 025): enterprise person ID, encounter ID, facility, author, author role, event (effective) time, recorded time, status, source, version, privacy labels, correlation ID (PRS 7.3, DAT-004). They are not repeated below.
The blocks marked "Added by the RC-5 contracts", and the section Records added by the RC-5 contracts, were written by the contract session RC-5-S02 for the D03-CLI contracts in contracts/cli/, as architecture 6.6 point 3 requires. Each attribute names its source; the domain leads approve them with the contracts (point 5). They add no entity to the catalogue of section 7.2: each is a record a requirement of slice RC-5 already describes, kept as part of the entity named. Field-level tracing of the contracts is in contracts/cli/TRACE.md.
rule above threshold, sampled override, late entry, verification exemption
Verification exemptions include cabinet override removals and doses ordered at administration in theatre, procedure or resuscitation settings (BR-CLI-015)
subject
Reference
Yes
Rule version (DE-CLI-022), decision (DE-CLI-023), clinical entry or administration
Added by the RC-5 contracts (session RC-5-S02, architecture 6.6 point 3), for approval by the domain leads: the records the requirements of slice RC-5 describe without an attribute table. Each is kept with the entity named in brackets.
Attribution review (with DE-CLI-030 ReviewItem): the review of post-merge records after an unmerge (FR-CLI-EHR-001 part 6, PR-EHR-001-05, AC-06).
Clinical context (with the session record of FR-CLI-RSP-003; not a clinical entry): the patient context of a user's chart.
Attribute
Data Type
Required
Constraints
Description
context_id, user, patient, encounter, facility
Identifier, references
Yes
One current context per user and window
window
String
No
Client window identifier
Context per window (part 6)
current, opened_at, closed_at
Boolean, date/time
Yes; closed when closed
Switching requires an explicit action
(part 6, PR-RSP-003-01)
unsigned_work
List (entry reference)
No
Kept on switch, and the user is told
(part 6)
mismatch_checks
Audit only
—
A write whose context is not current is refused and audited
(AC-04; audit type cli.context.mismatch)
Content version (with DE-CLI-002 DocumentTemplate): the version record of governed clinical content (templates, flowsheet layouts, assessment instruments) (FR-CLI-DOC-001 part 2; BR-CLI-007).
Downtime item (DE-CLI-029): the contract names downtime_reference, original_time and original_author as downtimeReference, originalEventTime and originalAuthor, and adds duplicate_candidates (list of entry references with event time) and committed_entry (the linked_record above).
Care-plan proposal (with DE-CLI-007 CarePlan): an intervention proposed by a pathway or order set through IF-CLI-010.
proposed, accepted, declined, withdrawn (by the proposing pathway)
A proposal never changes the plan until a nurse decides (FR-CLI-CAR-001)
Immunization (with DE-CLI-003 Condition, as part of the coded summary of FR-CLI-PRB-001); FHIR Immunization by the common rule below, with these domain attributes:
Common rule (GAP-CLI-010, closed): each remaining entity takes its attributes from the FHIR R4 resource it maps to, with the SATUSEHAT profile where one exists, plus the common attributes above and the domain attributes listed below. Field names follow the FHIR element names in snake case. The domain attributes are the ones the requirements in section 5 need beyond the resource. The entities with detailed tables above map as follows: ClinicalDocument to Composition (the discharge summary to the SATUSEHAT Composition profile), AllergyIntolerance, Observation, Order to ServiceRequest, MedicationOrder to MedicationRequest, MedicationDispense, MedicationAdministration, CdsRuleVersion to PlanDefinition with Library, CdsDecision to GuidanceResponse with DetectedIssue, DowntimeItem and ReviewItem to Task.
Entity
FHIR R4 resource
Domain attributes beyond the resource and the common attributes
problems or needs with Condition links, goals with target dates, interventions with frequency and responsible role, evaluations with outcome status, review_due, reviewed_by, reviewed_at, pathway_ref and version, state (Draft, Active, On Hold, Completed, Revoked)
task_type (CFG-CLI-029), source_ref, due_time, window, criticality, responsible role or person, completion_evidence_ref, deferrals (reason, new due time), meal_service for diet tasks, state (section 4.3)
review_id, result reference and version, reviewer, reviewed_at, acknowledgement mode (single or bulk), follow-up action, critical work item reference, release status
hazard_id, version, description, cause, effect, severity, likelihood, risk rating before and after controls, controls, linked requirements, tests, incidents, content releases and CDS rules, owner, state
Every clinical entry references one patient (enterprise person ID from Domain 1) and, except for longitudinal summary items that may be patient-level (problems, allergies, medication statements, immunizations), one encounter.
A ClinicalDocument has one or more versions; each amendment version references the version it amends. A document is created from exactly one DocumentTemplate version.
An Order has many OrderEvents, optionally one OrderSet version and one pathway activity reference, and zero or more ResultReferences. A MedicationOrder is an Order; it has zero or more MedicationDispenses and zero or more MedicationAdministrations.
A MedicationDispense references one MedicationOrder and one Domain 5 stock movement. A ControlledSubstanceTransaction references dispenses and administrations.
A CdsDecision references one CdsRuleVersion and optionally the Order or MedicationAdministration it concerned.
A ResultReview references one ResultReference version. A ResultReference references one Domain 4 result and at most one Order.
A CareTask references its source (Order, MedicationAdministration dose, CarePlan intervention, Assessment schedule or pathway activity).
A DowntimeItem references the Order, ClinicalDocument, Observation set or MedicationAdministration it created. A ReviewItem references the CdsRuleVersion, CdsDecision, clinical entry or MedicationAdministration it concerns. A Hazard references the content releases and CdsRuleVersions it concerns.
Referential integrity rules: references to Domain 1, 4, 5, 9 and 10 records are by stable identifier and are not enforced by shared database constraints; they are validated at write time through APIs and reconciled through events. Owned entities are never physically deleted while referenced. Patient merge re-links by enterprise person ID without rewriting original identifiers.
erDiagram
PATIENT ||--o{ ENCOUNTER : has
ENCOUNTER ||--o{ CLINICAL_DOCUMENT : contains
DOCUMENT_TEMPLATE ||--o{ CLINICAL_DOCUMENT : "version used by"
CLINICAL_DOCUMENT ||--o{ CLINICAL_DOCUMENT : "amended by"
PATIENT ||--o{ CONDITION : has
PATIENT ||--o{ ALLERGY_INTOLERANCE : has
ENCOUNTER ||--o{ OBSERVATION : records
ENCOUNTER ||--o{ ORDER : has
ORDER ||--|{ ORDER_EVENT : "history"
ORDER_SET ||--o{ ORDER : "applied as"
ORDER_CATALOGUE_ENTRY ||--o{ ORDER : defines
ORDER ||--o{ RESULT_REFERENCE : "resulted by"
RESULT_REFERENCE ||--o{ RESULT_REVIEW : "reviewed in"
ORDER ||--o| MEDICATION_ORDER : "is a"
MEDICATION_ORDER ||--o{ MEDICATION_DISPENSE : "dispensed as"
MEDICATION_ORDER ||--o{ MEDICATION_ADMINISTRATION : "scheduled as"
CDS_RULE_VERSION ||--o{ CDS_DECISION : produces
CDS_DECISION }o--o| ORDER : concerns
CARE_PLAN ||--o{ CARE_TASK : generates
ORDER ||--o{ CARE_TASK : generates
PATIENT ||--o{ MEDICATION_STATEMENT : has
ENCOUNTER ||--o{ MEDICATION_RECONCILIATION : has
PATIENT and ENCOUNTER are Domain 1 entities shown for context.
No duplicate order, administration or result version from retries or replays (PRS SAFE-004, INT-004)
Idempotency tests; duplicate-detection report
DQ-CLI-007
Timeliness
Event time, recorded time, effective time and ingestion time are distinguished (PRS DAT-004)
Schema inspection; late-entry report
DQ-CLI-008
Integrity
Results and status events are matched to orders; unmatched items are queued, not shown or dropped (PRS RES-005). The unmatched queue and its resolution are Domain 4's (UI-ANC-004); this domain shows only the status; in stage 3 unmatched items are integration exceptions on UI-ISE-001
Unmatched queue monitoring
DQ-CLI-009
Validity
Uncoded (free-text) allergies, medications and problems are flagged and measured (PRS DAT-005)
Uncoded-entry report to stewardship
DQ-CLI-010
Provenance
Imported and patient-reported data retain source, mapping version and confirmation (PRS EHR-008, DAT-003)
Creation. Entries are created through the domain's services with the provenance of BR-CLI-003; drafts are not part of the record until signed.
Modification. Unsigned drafts may be edited by the author. Summary entities (problems, allergies, medication statements, care plans) change by new version with history retained.
Correction. Signed documentation, order history, administration records and CDS decisions are corrected only by appended amendment, correction or entered-in-error marking (BR-CLI-002, BR-CLI-010).
Archiving. Archival of clinical records is governed by Domain 6 policy and executed with Domain 2 storage services; archived records remain retrievable with provenance and version history.
Retention. Retention periods are owned by Domain 6 (PRS HIM-002) and taken from the enterprise retention baseline (GAP-CLI-006, closed). For this domain's entities:
Clinical documents, problems, allergies, observations and assessments, care plans, tasks linked to care, handovers, referrals, orders and order events, medication statements, reconciliations, orders, dispenses and administrations, result reviews, imported items, provenance, downtime items and CDS decisions that influenced care: medical record content, 25 years from the patient's last visit, 5 years online (PMK 24/2022).
Controlled-substance transactions (DE-CLI-021): 25 years as medication records; their stock side is kept by Domain 5 for 10 years from fiscal year end.
Templates, order sets, catalogue entries, medication catalogue items, CDS rule versions and the medication knowledge releases: superseded content versions, kept while any retained record references them and at least 25 years after retirement.
Review items, hazards and other configuration audit: 10 years.
Audit of access to and change of patient data: same as the record (25 years).
Raw device data not saved into the record: 30 days. Notifications: content 90 days, delivery metadata 2 years.
Disposal or deletion. This domain does not delete signed clinical content on its own initiative. Disposal occurs only as a Domain 6 policy-driven, approved and logged action. Discarded drafts are removed from the record but their audit trail is retained.
Legal hold. A Domain 6 legal hold prevents disposal and may restrict amendment; this domain enforces the hold status it receives (FR-CLI-DOC-002).
Export. All domain data, including version history, provenance, terminology bindings and configuration (templates, order sets, catalogue, rules), is exportable in documented machine-readable formats (PRS 15.2, ACC-008).
Cutover runbook with clinical sign-off; reconciliation of every open item
All migrations preserve source-system identifiers and provenance, do not silently overwrite conflicts, use trial migrations with counts, checksums and clinical sampling, and require clinical, HIM and privacy sign-off (PRS 16.2).