Skip to content

Domain specifications / D03-CLI / 7. Domain Data Requirements

7. Domain Data Requirements

7.1 Data Ownership

Data Entity Ownership System of Record Consuming Domains
Clinical document (note, form, flowsheet entry) and versions Owned MOD-CLI-003 6, 7, 8, 9
Problem, diagnosis, history item, immunization Owned MOD-CLI-002 6, 7, 8, 9
Allergy / intolerance Owned MOD-CLI-002 4, 7, 8, 9
Observation (ward and clinic), assessment and score Owned MOD-CLI-004 4, 8, 9
Care plan, care task, handover Owned MOD-CLI-005 1, 8, 9
Referral Owned MOD-CLI-005 1, 4, 8
Order, order event history, order set, order catalogue entry Owned MOD-CLI-006, MOD-CLI-007 4, 5, 8, 9
Medication statement, reconciliation record Owned MOD-CLI-008 7, 8, 9
Medication order, verification, dispense and return record, medication catalogue clinical content and formulary status Owned (DEC-CLI-001) MOD-CLI-009 4, 5, 8
Medication administration record, controlled-substance transaction record Owned MOD-CLI-010, MOD-CLI-009 4, 5, 8, 9
CDS rule, rule version, CDS decision record Owned MOD-CLI-011 8, 9
Clinical hazard and usability evidence record Owned MOD-CLI-011 Governance
Review item (rule, sampled override, late entry, verification exemption) Owned MOD-CLI-011 8
Downtime item Owned MOD-CLI-010 8
Result review, critical-result recipient work item, release decision Owned MOD-CLI-012 4, 7, 8
Patient, identifiers, merge links Consumed Domain 1 –
Encounter, ADT, location, responsibility assignment Consumed Domain 1 –
Diagnostic result, report, image reference, critical-result record Consumed Domain 4 –
Device-sourced observation (validated feed), ICU and perioperative records Consumed Domain 4 –
Stock balance, lot, expiry, stock movement, inventory item Consumed Domain 5 –
Encounter classification codes, chart-deficiency status, legal hold Consumed Domain 6 –
Patient-reported information Consumed Domain 7 –
Guideline reference, pathway instance and activity Consumed Domain 9 –
Practitioner, organization, service, medication and other master data; terminology; consent directive; document reference; audit event Consumed Domain 10 –

7.2 Data Entity Catalogue

Entity ID Entity Name Description Primary Key Data Owner
DE-CLI-001 ClinicalDocument Note, form or flowsheet document with versions Document ID + version Clinical governance (documentation)
DE-CLI-002 DocumentTemplate Versioned template definition Template ID + version Clinical informatics
DE-CLI-003 Condition Problem, diagnosis or history item Condition ID + version Clinical governance
DE-CLI-004 AllergyIntolerance Allergy or intolerance and allergy status assertion Allergy ID + version Clinical governance
DE-CLI-005 Observation Vital sign, observation or assessment item Observation ID + version Nursing leadership
DE-CLI-006 Assessment Completed assessment with score, band and rule version Assessment ID Nursing leadership
DE-CLI-007 CarePlan Problems, goals, interventions, evaluations Care plan ID + version Nursing leadership
DE-CLI-008 CareTask Scheduled unit of work Task ID Nursing leadership
DE-CLI-009 Handover Structured handover record Handover ID Nursing leadership
DE-CLI-010 Referral Referral or consultation request Referral ID (order ID) Clinical governance
DE-CLI-011 Order Clinical order of any class Order ID (placer identifier) + version Clinical governance
DE-CLI-012 OrderEvent Append-only lifecycle event of an order Event ID Clinical governance
DE-CLI-013 OrderSet Versioned order set Order set ID + version Clinical governance
DE-CLI-014 OrderCatalogueEntry Orderable definition Orderable ID + version Clinical informatics with departmental owners
DE-CLI-015 MedicationStatement 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 Reconciliation ID Pharmacy leadership
DE-CLI-017 MedicationOrder Medication-specific content of an Order Order ID Pharmacy leadership
DE-CLI-018 MedicationDispense Dispense or return record Dispense ID Pharmacy leadership
DE-CLI-019 MedicationAdministration eMAR dose and administration record Dose ID Nursing and pharmacy leadership
DE-CLI-020 MedicationCatalogueItem Clinical medication item and formulary status; authored and approved on UI-CLI-020 from stage 4 Item ID + version Pharmacy leadership
DE-CLI-021 ControlledSubstanceTransaction Issue, administration, return, wastage and reconciliation Transaction ID Pharmacy leadership
DE-CLI-022 CdsRuleVersion Rule with governance attributes and logic artefact Rule ID + version Clinical governance
DE-CLI-023 CdsDecision Append-only record of a firing and response Decision ID Clinical informatics
DE-CLI-024 ResultReference Versioned reference to a Domain 4 result Result ID + version Domain 4 for content; CLI for reference
DE-CLI-025 ResultReview 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 Provenance ID Clinical governance
DE-CLI-029 DowntimeItem Order, note, observation set or administration entered from a downtime form or offline client, with its reconciliation state Downtime item ID Clinical governance
DE-CLI-030 ReviewItem Item on the review console: rule above review threshold, sampled override, late entry beyond threshold, verification exemption Review item ID Clinical informatics

7.3 Entity Attributes

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.

Entity DE-CLI-001: ClinicalDocument

Attribute Data Type Required Constraints Description
document_id, version Identifier, integer Yes Unique; version increments on amendment
document_type Code Yes Configured type
template_id, template_version Identifier Yes Approved version BR-CLI-007
state Code Yes Section 4.3 states: Draft, Saved (not signed), Awaiting Co-signature, Signed, Amended, Entered in Error, Discarded
content Structured + narrative Yes Immutable once signed
signatures List (signer, role, meaning, time) Yes when signed Human identities only
amends_version, amendment_reason Integer, code + text For amendments Reason mandatory BR-CLI-002
integrity_value String Yes when signed Computed over signed content
copy_provenance List No Source entry references
late_entry, downtime_reference Boolean, string No

Entity DE-CLI-004: AllergyIntolerance

Attribute Data Type Required Constraints Description
substance Coded / text Yes Free text flagged
type, category Codes Yes
reactions, severity, criticality Coded No
verification_status, clinical_status Codes Yes
tolerated_since Boolean / date No Prior tolerance
last_reviewed_at, reviewed_by Date/time, user No Staleness basis
status_assertion Code Yes at patient level allergies recorded, no known allergies, not assessed Shown "Not assessed" until recorded for the encounter

Added by the RC-5 contracts (session RC-5-S02, architecture 6.6 point 3), for approval by the domain leads: the allergy status per encounter.

Attribute Data Type Required Constraints Description
encounter, status Reference, code Yes One status per encounter; allergies-recorded, no-known-allergies, not-assessed, unable-to-assess The explicit status of the encounter (FR-CLI-PRB-002 part 2, PR-PRB-002-03)
unable_to_assess_reason Code + text When unable-to-assess Reason mandatory (FR-CLI-PRB-002 part 2)
stale Boolean Yes Derived from last_reviewed_at and the review interval The staleness shown with the status (last_reviewed_at above)
refuted_reason, excluded_from_cds Code + text, boolean When refuted A refuted allergy is kept and excluded from decision support (FR-CLI-PRB-002 AC-03)
stewardship_item_id Identifier When the substance is uncoded or unmapped Item of the D10 stewardship queue (FR-ESS-TRM-003; BR-CLI-004)

Entity DE-CLI-005: Observation

Attribute Data Type Required Constraints Description
code Coded Yes LOINC where applicable
value, unit Quantity / coded / text; UCUM Yes Unit permitted for code
method, device_id Code, identifier Yes; device for device source
validity_status Code Yes valid, unvalidated, invalid, entered in error State model in section 4.3
critical_flag Boolean Yes Derived from the critical bounds of CFG-CLI-006 Shown "!! Critical"
correction_reason, corrected_by Code + text, user For corrections Reason mandatory
reference_range, interpretation Structured No

Entity DE-CLI-011: Order

Attribute Data Type Required Constraints Description
order_id (placer) Identifier Yes Stable, never reused
order_class, orderable_id, catalogue_version Code, references Yes
ordering_practitioner, entered_by References Yes
priority, indication, requested_time, destination Code, coded/text, date/time, reference Yes (indication per catalogue) BR-CLI-008 priority holds the order urgency; codes mapped to the displayed values in CFG-CLI-008
state Code Yes Section 4.3
dispatch_status Code Yes after release queued, sent, acknowledged, accepted, rejected, failed failed: could not be delivered (NACK)
stale_confirmed_at, stale_confirm_reason Date/time, text When confirmed still required At most once per order FR-CLI-ORD-003
filler_ids List After acceptance
replaces, replaced_by Order references No
order_set_ref, pathway_ref References with version No
idempotency_key String Yes Unique per submission
cds_decisions References No

Entity DE-CLI-017: MedicationOrder (extends Order)

Attribute Data Type Required Constraints Description
medication_item Catalogue reference Yes Active
dose, dose_unit, route, timing Quantity, UCUM, code, structured Yes PRS MED-002
prn, prn_indication, max_dose_per_period Boolean, coded, quantity PRN orders
duration, start, stop, quantity Structured Per type
pharmacy_instructions Text No
dose_basis Structured (weight or other input, value, observed time) For calculated doses
verification Structured (pharmacist, time, decision, substitution) After verification
formulary_status, non_formulary_justification Code, text Yes; justification when non-formulary

Entity DE-CLI-018: MedicationDispense

Attribute Data Type Required Constraints Description
dispense_id, order_id Identifiers Yes Order Active at dispense
item, quantity, lot, expiry Reference, quantity, string, date Yes (lot and expiry where scanned) Not expired
identification_method, not_scanned_reason Code, code + text Yes; reason when not scanned scanned, selected without barcode A product without a barcode is selected, with a reason and a second checker
preparer, checker Users Yes; checker per policy, and always for a product without a barcode Checker differs from preparer
stock_movement_ref, stock_posting_status Domain 5 reference, code Yes (reference or pending) BR-CLI-016; posted, Stock posting pending Pending postings are reconciled on UI-FIN-017
stock_confirmation Code Yes Available, Stock not confirmed As shown at dispensing; never blocks the dispense
return_source, return_disposition Code, code For returns Pharmacy, Returned to pharmacy (recorded on the eMAR); back to stock, to waste Disposition set when the pharmacist approves the return
state Code Yes Preparing, Dispensed, Returned, Cancelled

Entity DE-CLI-019: MedicationAdministration

Attribute Data Type Required Constraints Description
dose_id, order_id Identifiers Yes
scheduled_time, window Date/time, duration For scheduled doses Configured window
dose_origin Code Yes scheduled, PRN, exempted PRN and exempted doses are created when given
source Code Yes Ward, Anesthesia record, ICU flowsheet, Procedure area Setting where the administration was recorded; shown as "Recorded in anesthesia record" and similar
state Code Yes Section 4.3
hold_applied_by, hold_applied_role User, code When Held Who may release the hold (section 4.3)
infusion_events List (event, rate, time, user) For continuous infusions Started, Rate changed, Paused, Stopped, Completed; bag change Appended; do not change the dose state
returned_to_pharmacy Structured (quantity, reason, time, user) No Received on UI-CLI-012
administered_time, dose_given, route, site Structured For administered
administered_by, witness Users Yes; witness per policy
reason Code + text For held, refused, omitted, late, correction
scan_patient, scan_medication, override, exception_reason Booleans, structured, code Yes Compliance basis
product, lot, expiry From scan Where available
sync_state, downtime_reference Code, string No sync_state not used in release 1 (DEC-CLI-006) Offline and downtime provenance

Entity DE-CLI-022: CdsRuleVersion

Attribute Data Type Required Constraints Description
rule_id, version Identifier, string Yes
owner, evidence_source References Yes PRS CDS-001
effective_date, review_cadence or retirement_date Dates / duration Yes
severity, tier, hard_stop_approved Codes, boolean Yes Hard stop needs governance flag
trigger_criteria, logic_artefact, workflow_points Structured Yes
actions, override_policy, override_reasons Structured Yes
input_elements with freshness limits Structured Yes
suppression_controls Structured No Not for critical tier
state, approvals, simulation_results Code, list, reference Yes Approver differs from author
rolled_back_by, rollback_approval User, reference For rollback Approval by the clinical content committee
linked_hazards References to DE-CLI-027 No

Entity DE-CLI-023: CdsDecision

Attribute Data Type Required Constraints Description
decision_id, rule_id, rule_version Identifiers Yes Append-only
workflow_point, user, role, patient, encounter Mixed Yes
inputs_summary with data ages Structured Yes
outcome Code Yes fired, suppressed, displayed, accepted, acknowledged, overridden, blocked
suppression_control Code When suppressed
override_reason, authorizer Code + text, user When overridden
subsequent_action, linked_record Code, reference Where available
review_classification Code When reviewed
review_item Reference to DE-CLI-030 When sampled The alert is Under Review while the item is Open or In Review, Reviewed when it is Decided

Entity DE-CLI-029: DowntimeItem

Attribute Data Type Required Constraints Description
downtime_item_id Identifier Yes Unique
item_type Code Yes order, note, observation set, administration (stage 4)
downtime_reference, downtime_period String, reference Yes for downtime entries Form number; declared period
original_author, original_time, transcriber, transcribed_at Users, date/time Yes Original time not in the future
linked_record Reference When committed Order, document, observation set or administration
check_result Code Yes no duplicate, possible duplicate, conflict, supervisor acknowledgement required Duplicate check within CFG-CLI-030
already_performed Boolean For orders Not sent again to the performing service when true
state Code Yes Unreconciled, Reconciled, Exceptioned (section 4.3)
exception_reason, exceptioned_by Text, user When Exceptioned Charge nurse; pharmacist for medication items

Entity DE-CLI-030: ReviewItem

Attribute Data Type Required Constraints Description
review_item_id Identifier Yes Unique
item_type Code Yes 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
state Code Yes Open, In Review, Decided (section 4.3)
reviewer, decided_by, decided_at Users, date/time When decided Rule owner for rule reviews
decision, rationale Code, text When decided keep, tune, re-tier, retire (rule); appropriate, inappropriate, indeterminate (override); accepted, action required (late entry, exemption)
identity_opened List (user, time) No Audited Patient identity is shown only when a reviewer opens the case

Records added by the RC-5 contracts

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).

Attribute Data Type Required Constraints Description
review_id, kind Identifier, code Yes kind: post-unmerge
surviving_patient, restored_patient, unmerge_event_id References, identifier Yes; event when from PatientUnmerged Enterprise person IDs from Domain 1 The identities of the unmerge
items List (entry reference, proposed identity, decision) Yes Records with no encounter only; others move with their encounter
assignee, task_id, due_at User, reference, date/time Yes; task when created Closed within 2 working days (part 6 item 5) The responsible clinician's review task
state, version Code, integer Yes open, closed Closed when every item is decided

Escalation (with DE-CLI-006 Assessment): the deterioration escalation an assessment band raises (FR-CLI-OBS-002; EVT-CLI-006; CFG-CLI-025).

Attribute Data Type Required Constraints Description
escalation_id, trigger Identifier, reference Yes Trigger: the assessment and its band
protocol, level Reference + version, integer Yes Protocol of CFG-CLI-025 for the band
current_recipient, response_due_at, task_id Reference, date/time, reference Yes once notified Recipient from the protocol; worklist task
timeline List (state, time, actor) Yes Append-only raised, notified, acknowledged, escalated, closed
notification_failed Boolean No Shown and re-routed
outcome, closed_by, closed_at Code + text, user, date/time When closed

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).

Attribute Data Type Required Constraints Description
content_id, version, kind Identifier, integer, code Yes kind: document-template, flowsheet-layout, assessment-instrument
document_types, assessment_type, specialty, facilities Codes, references No Where the version applies
definition Structured Yes Validated before submission (schema and terminology bindings)
validation, hazards_reviewed Structured, boolean Yes / for approval
author, approver, approved_at Users, date/time Yes; approver at approval Approver is never the author (ACT-CLI-009)
state, effective_from, effective_to Code, date/time Yes; from at approval draft, in-review, approved, active, superseded, retired Rollback re-activates the prior version and supersedes this one

Imported item (with DE-CLI-026 ImportedItem): the delivery and comparison attributes (FR-CLI-EHR-002; IF-CLI-008).

Attribute Data Type Required Constraints Description
channel, item_type Codes Yes
provenance Structured Yes Source organization, source identifier, received_at A redelivery with the same source identifier updates, never duplicates (PR-EHR-002-01)
mapped_code Coded with code status No unmapped codes go to the steward (FR-ESS-TRM-003)
payload_reference, document References One of them Document registered in D10 (FR-ESS-DOC-001)
comparison Structured No Against the local record
labels Codes No Privacy labels as received

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.

Attribute Data Type Required Constraints Description
proposal_id, origin, intervention Identifier, reference, structured Yes
care_plan_id Reference When accepted into a plan
state, proposed_at, decided_by, decided_at, decline_reason Code, date/time, user, date/time, code + text Yes; decision when decided 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:

Attribute Data Type Required Constraints Description
vaccine, occurrence_date Coded (KFA or SNOMED CT), date Yes
dose_number, lot, information_source Integer, string, code No
state Code Yes recorded, entered-in-error

Remaining entities

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
DE-CLI-002 DocumentTemplate Questionnaire template_id, version, document_type, state and approvals (author differs from approver), effective_date, bound value-set versions, specialty views
DE-CLI-003 Condition Condition code (SNOMED CT) with ICD-10 mapping, list_role (problem, diagnosis, history), encounter_diagnosis_role (primary, secondary), onset and abatement, verification_status, clinical_status
DE-CLI-006 Assessment QuestionnaireResponse with Observation for the score instrument and version (for example NEWS2, PEWS, MEOWS), item answers, total_score, band, scoring rule version, escalation reference (EVT-CLI-006)
DE-CLI-007 CarePlan CarePlan with Goal 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)
DE-CLI-008 CareTask Task 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)
DE-CLI-009 Handover Communication SBAR sections, giver, named_receiver, receiving unit, acknowledged_by and on_behalf_reason, acknowledged_at, decline_reason, state (Draft, Awaiting Acknowledgement, Acknowledged)
DE-CLI-010 Referral ServiceRequest (category referral) order_id, receiving service or external organization (SATUSEHAT Organization identifier), referral_type, reason and clinical question, diagnosis (ICD-10), national_referral_number, referral_letter_ref, response_ref, decline_reason, state (section 4.3)
DE-CLI-012 OrderEvent Provenance on the ServiceRequest event_id, order_id, order version, event_type, from_state, to_state, actor, reason, occurred_at, recorded_at, correlation_id; append-only
DE-CLI-013 OrderSet PlanDefinition order_set_id, version, owner, items with default values and pre-selection, state and approvals, effective_date, review_date
DE-CLI-014 OrderCatalogueEntry ActivityDefinition orderable_id, version, order_class, code (LOINC, SNOMED CT or local), required fields, routing rule (facility, location, urgency, time), equivalence group (CFG-CLI-007), charge item reference to Domain 5, state
DE-CLI-015 MedicationStatement MedicationStatement medication (KFA code or text, flagged if uncoded), dose, route, frequency, information source, verified_by, verified_at, state (section 4.3)
DE-CLI-016 MedicationReconciliation List with Provenance reconciliation_id, transition (admission, transfer, discharge), sources consulted, decisions per item (continue, change, stop, new) with proposed_by and confirmed_by, signed_at, state (section 4.3)
DE-CLI-020 MedicationCatalogueItem Medication with MedicationKnowledge item_id, version, KFA code, ATC code, form, strength, route list, formulary status (Formularium Nasional and hospital formulary), restricted class (narcotic, psychotropic, high-alert), GS1 GTIN list, Domain 5 inventory item reference, knowledge release reference (CFG-CLI-035)
DE-CLI-021 ControlledSubstanceTransaction MedicationDispense or MedicationAdministration with Provenance transaction_id, type (issue, administration, return, waste, count), item and KFA code, quantity, lot, location (pharmacy, ward, cabinet), performer, witness, count_result and discrepancy, signed_off_by, signed_off_at
DE-CLI-024 ResultReference DiagnosticReport or Observation reference Domain 4 result_id and version, order_id, status (preliminary, final, corrected, withdrawn), abnormal and critical flags, received_at
DE-CLI-025 ResultReview Task review_id, result reference and version, reviewer, reviewed_at, acknowledgement mode (single or bulk), follow-up action, critical work item reference, release status
DE-CLI-026 ImportedItem The imported resource with Provenance imported_item_id, source (external organization, SATUSEHAT, patient), resource type, mapping version, decision (Received, Accepted, Rejected, Deferred), decided_by, linked_record
DE-CLI-027 Hazard No FHIR resource; internal entity 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
DE-CLI-028 Provenance Provenance target entry and version, agents (author, validator, device), source entity, transformation and mapping version, recorded_at

7.4 Entity Relationships

  • 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.

7.5 Data Quality Requirements

Requirement ID Quality Dimension Requirement Validation
DQ-CLI-001 Accuracy Coded clinical fields contain only active codes from the bound value-set version; quantities carry valid UCUM units (PRS EHR-006, DAT-002) Entry-time validation; periodic scan for inactive codes
DQ-CLI-002 Completeness Every clinical entry has author, role, encounter (where applicable), event time, recorded time, status and source (PRS EHR-003) Service-level mandatory checks; completeness report
DQ-CLI-003 Completeness Every order has the required fields of its type (PRS ORD-002) Signing validation; audit sample
DQ-CLI-004 Consistency Order state, dispatch status, eMAR schedule and medication list agree Automated consistency job with exception worklist on UI-CLI-009
DQ-CLI-005 Consistency Every dispense links to a verified order and a stock movement or an open exception (PRS MED-005) Daily reconciliation with Domain 5
DQ-CLI-006 Uniqueness 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) Sample trace from entry to source

7.6 Data Lifecycle and Retention

  • 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).

7.7 Data Migration Requirements

Migration ID Source Target Data Scope Validation
MIG-CLI-001 Legacy clinical systems / paper abstraction MOD-CLI-002 Active problems and diagnoses Mapping to governed codes; unmapped retained as flagged text; clinical sampling
MIG-CLI-002 Legacy clinical and pharmacy systems MOD-CLI-002 Allergies and intolerances 100% reconciliation counts; migrated items marked with source and requiring review at first encounter (Proposed, to be validated)
MIG-CLI-003 Legacy pharmacy / prescribing systems MOD-CLI-008 Medication history; active inpatient orders at cutover Counts, checksums; active orders re-entered or verified by pharmacist at cutover; no silent activation
MIG-CLI-004 Legacy document stores MOD-CLI-003 via Domain 10 document service Historical notes and discharge summaries Loaded as imported, read-only documents with source identifiers; sampling
MIG-CLI-005 Legacy results repositories MOD-CLI-012 with Domain 4 Historical results for display and trending Count and checksum; unit and code mapping validation; provenance retained (led by Domain 4)
MIG-CLI-006 Existing order sets, formulary lists, alert rules MOD-CLI-006, MOD-CLI-007, MOD-CLI-009, MOD-CLI-011 Clinical content Rebuilt and approved through governance, not bulk-loaded as active (PRS ACC-010)
MIG-CLI-007 Open orders and in-progress care at cutover MOD-CLI-007, MOD-CLI-010 Active orders, due doses, open tasks 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).


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