MOD CLI 001 EHR
Domain specifications / D03-CLI / 5. Detailed Functional Requirements / 5.1 Module Specification: Longitudinal EHR / Clinical Record
5.1 Module Specification: Longitudinal EHR / Clinical Record¶
5.1.1 Module Overview¶
Module ID: MOD-CLI-001
Purpose:
Assemble a single longitudinal record for each patient across facilities, encounters and sources, present it as a reconciled timeline and in alternative views, and bring externally sourced information into the record only with explicit provenance and clinician confirmation.
Business Capabilities: - CAP-CLI-001 Longitudinal clinical record
Primary Actors: - ACT-CLI-001, ACT-CLI-002, ACT-CLI-003, ACT-CLI-005, ACT-CLI-006
Dependencies: - All other CLI modules (entry sources) - Domain 1 (patient identity, merge links, encounters), Domain 4 (results, procedure and specialty records), Domain 10 (terminology, authorization, consent decision, document references), Domain 7 (patient-reported submissions), Domain 2 (external exchange)
5.1.2 Functional Area: Longitudinal Record and Record Views¶
Functional Area ID: FA-CLI-001
Description:
Read-side assembly and presentation of the record: timeline, filters and problem-, time-, source- and specialty-oriented views, with localized display of canonical values.
Scope: - Included: timeline projection, view definitions, status and freshness indicators, locale-aware rendering. - Excluded: authoring of entries (other modules); patient-facing views (Domain 7); analytical queries (Domain 8).
5.1.2a Functional Area: External Record Reconciliation¶
Functional Area ID: FA-CLI-002
Description:
Receipt, labelling, review and confirmation of clinical information imported from external organizations or submitted by patients.
Scope: - Included: review queue, accept, reject or defer decisions, provenance retention. - Excluded: exchange transport and message validation (Domain 2); identity matching of the external patient (Domain 1); medication-specific reconciliation (MOD-CLI-008).
5.1.3 Detailed Requirements¶
Requirement FR-CLI-EHR-001: Longitudinal Record, Timeline and Record Views¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-EHR-001 |
| Requirement Name | Longitudinal record, timeline and record views |
| Requirement Type | Functional |
| Module | Longitudinal EHR / Clinical Record |
| Functional Area | FA-CLI-001 Longitudinal record and record views |
| Priority | Must (EHR-001); the alternative views of EHR-005 and the localized display of EHR-009 are Should |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS EHR-001, EHR-005, EHR-009; contributes to SAFE-003, DAT-004, NFR-012 |
| Related Business Rule | BR-CLI-001, BR-CLI-003, BR-CLI-005, BR-CLI-031 |
| Related Workflow | WF-CLI-001, WF-CLI-006 |
1. Requirement Statement
The system shall provide, for each patient, a longitudinal record that aggregates encounters, notes, diagnoses, allergies, medications, observations, procedures, results and documents across all configured facilities into a reconciled timeline, shall offer problem-oriented, time-oriented, source-oriented and specialty views of that record, and shall render dates, times, units and labels according to the user's locale without altering canonical stored values.
2. Business Rationale
Clinicians need one reliable picture of the patient across facilities and departments (PRS 1.1). Different clinical tasks need different organizations of the same data, and a multi-facility, multilingual enterprise must display the same stored facts consistently.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-CLI-001, ACT-CLI-002, ACT-CLI-003, ACT-CLI-005, ACT-CLI-006 | Read | Care relationship or other policy basis; sensitive categories subject to segmentation; Break-the-Glass available under Domain 10 policy |
| ACT-CLI-008 | Create / Update view definitions | Through governed configuration on UI-CLI-020, under the content version lifecycle of section 4.3 |
| ACT-CLI-009 | Approve view definitions | On UI-CLI-020; the approver is not the author |
| ACT-CLI-014 | Read (clinical facts API) | Scoped service identity, purpose "pathway eligibility" |
4. Preconditions - The patient is resolved to an enterprise person identifier by Domain 1. - The user has an authorization decision permitting access to the patient.
5. Trigger - A user opens a patient chart or changes the view or filter; a consuming service calls the clinical facts API.
6. Functional Behaviour
- The system shall assemble the timeline from all entry types owned by this domain and from references to Domain 4 results, procedures and specialty records and Domain 10 document references, across all facilities linked to the enterprise person identifier.
- Each timeline item shall show type, summary, author or performing source, encounter and facility, event time, recorded time where it differs, status (for example draft, signed, amended, preliminary, final, corrected, entered in error) and source (local, imported, patient-reported, device).
- The system shall provide the four views: problem-oriented (entries grouped by linked problem), time-oriented (chronological with zoom and date filters), source-oriented (by department, document type or originating system) and specialty (view definitions configured per specialty). Specialty view definitions are content versions authored and approved on UI-CLI-020; persona workspace layouts are parameters of CFG-CLI-027, set on the Domain 10 configuration lifecycle workspace UI-ESS-011.
- The system shall let users filter by encounter, date range, entry type, author, facility and status, and shall search within the patient's record by text and code.
- The system shall indicate data freshness: the time the view was last refreshed and, for summary items, the age of the underlying data. A chart panel that has received no update for 5 minutes shall show "Not updated for [n] minutes" with a refresh action (design rule CUX-53).
- Where a patient identity has been merged or unmerged in Domain 1, the system shall re-project the record under the surviving identity links without altering authorship or original identifiers and shall indicate that records originate from a merged identity. After an unmerge (set 17 Nov 2026, per FR-ADM-MPI-005 part 6 item 9):
- Records created before the merge return to their original identity, because they keep their source identifiers.
- On EncounterCorrected (EVT-ADM-026) with the reason "Reattributed after unmerge", the system moves every record it holds under that CIN (entries, problems, allergies, observations, orders, medication orders, administrations, tasks, result reviews) to the identity the encounter now belongs to, without a separate decision. Authorship, times and source identifiers are kept, and the move is audited as a record change.
- Records held with no encounter (for example a patient-level allergy, problem or medication history statement recorded after the merge) go to this domain's review queue: a review task to the responsible clinician, with pharmacy for medication items, who attributes each item to one of the two identities or marks it entered in error.
- An allergy, administered medication or result review that may have been acted on for the wrong person is flagged for clinical review of both patients, and the clinician reports a patient-safety incident.
- The system acknowledges PatientUnmerged and each EncounterCorrected through its inbox and closes its review tasks within 2 working days.
- The system shall render dates, times (with zone context), number formats, units and interface language per user and facility locale; stored values, codes and UTC timestamps shall not be altered by display settings.
- Entries that the user is not authorized to see shall be withheld by the service; where policy requires, a non-revealing indicator that restricted information exists shall be shown.
- An entry shall be linked to a problem when its author selects the problem (a note, an order or a result follow-up) or through the indication of an order. The problem-oriented view shall show entries with no problem link in a group "Not linked".
- Printing from the chart shall produce the patient summary print of the application shell (application shell, section 14): patient identifiers, allergies, active problems, current medications, recent results, the name of the user who printed it and the print time. Every print shall be audited (part 12).
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Enterprise person ID | Identifier | Yes | Resolved by Domain 1 | Patient whose record is requested |
| Encounter ID | Identifier | No | Belongs to the patient | Limits or anchors the view |
| View type | Code | Yes | One of problem, time, source, specialty view definition | Selected view |
| Filters | Structured | No | Valid date range, known types | Narrowing criteria |
| Locale | Code | Yes (from user profile) | Supported locale | Display conventions |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-EHR-001-01 | Order timeline items by event time; show recorded time where it differs from event time | Late entries appear at the time of the clinical event and are flagged |
| PR-EHR-001-02 | Show only the current version of a superseded item by default, with access to prior versions | Corrected results and amended notes are not mistaken for current content |
| PR-EHR-001-03 | Apply display unit conversion only where a governed UCUM conversion exists; always make the stored value and unit available | No silent change of clinical meaning |
| PR-EHR-001-04 | Exclude drafts authored by other users from default views unless policy permits shared drafts | Unsigned content is not mistaken for record content |
| PR-EHR-001-05 | On EncounterCorrected with reason "Reattributed after unmerge", move all records held under the CIN with the encounter; send records with no encounter to the review queue | Post-merge records follow their encounter; nothing is attributed silently without one |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Timeline and views | Interactive screen | Clinician | UI-CLI-001, UI-CLI-002 |
| Patient summary print | Printed page | Clinician | From UI-CLI-001; content as in part 6.10 |
| Specialty view definition | Content version | UI-CLI-002 | Authored and approved on UI-CLI-020 |
| Clinical facts | Versioned API (FHIR facade where profiled) | Domains 6, 7, 9 and authorized consumers | IF-CLI-001 |
| Access audit event | Audit record | Domain 10 audit service | Record of the view or query |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| A source (for example the result service) is unavailable | Source health check | Render available data; mark the affected section as unavailable | "Results could not be loaded; data shown may be incomplete" with retry |
| Patient has an unresolved high-risk identity ambiguity | Domain 1 identity status | Show warning banner; follow Domain 1 policy on proceeding | "Identity under review" |
| Access denied by policy | Authorization decision | Withhold content; offer Break-the-Glass where policy allows | "You do not have access to this record" |
11. State and Lifecycle Behaviour
The record view is a projection and owns no lifecycle. It reflects the states of underlying entries (section 4.3) and must reflect a state change within the event-latency objective (NFR-CLI-003).
12. Audit Requirements
- Every chart open, view, search, print and export is audited with user, patient, encounter, purpose of use, source endpoint, time and outcome.
- Service access through IF-CLI-001 is audited with the service identity and scope.
13. Security and Privacy Requirements
- Read permission requires role plus contextual attributes (care-team assignment, facility, patient relationship, purpose, consent decision) evaluated by Domain 10.
- Clinical record content is classified Sensitive; designated categories carry privacy labels and are segmented at field or resource level (PRS SEC-016).
- Break-the-Glass access is marked in the session and audited (PRS SEC-007, SEC-014).
14. Acceptance Criteria
- AC-01: Given a patient with encounters at two configured facilities, when an authorized clinician opens the chart, then the timeline shows entries from both facilities in one reconciled sequence with facility, author, status and source on each item.
- AC-02: Given a result that has been corrected, when the timeline is displayed, then only the corrected version is shown as current and the prior version is retrievable from it.
- AC-03: Given a user whose locale differs from the facility default, when the same observation is displayed to two users with different locales, then both see locale-appropriate formats and the stored value, unit and UTC timestamp are identical before and after (round-trip integrity).
- AC-04: Given imported and patient-reported entries, when the chart is displayed, then they are visually and textually distinguishable from locally authored entries.
- AC-05: Given the representative retrieval tasks agreed for usability testing, when clinicians use the four views, then the agreed task-success criteria are met (PRS EHR-005 acceptance).
- AC-06: Given an unmerge where an encounter is reattributed to the restored identity, when EncounterCorrected with reason "Reattributed after unmerge" is received, then every record held under that CIN appears under the restored identity with authorship unchanged, and a post-merge allergy with no encounter appears as a review task for the responsible clinician.
15. Dependencies and Integration
- Upstream dependencies: Domain 1 identity and encounter events; Domain 4 result and procedure events; Domain 10 terminology, authorization and document references.
- Downstream dependencies: Domains 6, 7, 8 and 9 consume record content through IF-CLI-001 and domain events.
- Required events or APIs: IF-CLI-001; EVT-CLI-001 to EVT-CLI-004; consumed PatientMerged/Unmerged, EncounterCorrected (EVT-ADM-026), ResultFinalized/Corrected.
- Workspace layout parameters (CFG-CLI-027) are set on UI-ESS-011 of Domain 10.
16. Open Questions / Assumptions
- The clinical persistence model (relational domain model, two-level model or hybrid) is an open decision (DEC-CLI-003); this requirement is independent of the choice.
- A non-revealing indicator of restricted content is shown (DEC-CLI-008, resolved 2026-11-17): a fixed row "Restricted information not shown", with no category, count, date or author. Allergies, adverse reactions, isolation precautions and critical alerts are never restricted.
Requirement FR-CLI-EHR-002: External Record Import and Clinical Reconciliation¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-EHR-002 |
| Requirement Name | External record import and clinical reconciliation |
| Requirement Type | Functional |
| Module | Longitudinal EHR / Clinical Record |
| Functional Area | FA-CLI-002 External record reconciliation |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | PRS EHR-008; contributes to PAT-012, DAT-003, SEC-020 |
| Related Business Rule | BR-CLI-004, BR-CLI-005 |
| Related Workflow | WF-CLI-005 |
1. Requirement Statement
The system shall hold clinical information imported from external organizations or submitted by patients as distinctly labelled, unverified information with explicit provenance, and shall incorporate it into locally verified record content only after an authorized clinician confirms it.
2. Business Rationale
External and patient-supplied information is valuable but of unknown reliability. Treating it as locally verified can drive unsafe decisions and CDS behaviour; ignoring it loses clinically useful facts.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-CLI-001, ACT-CLI-003 | Read / Approve (accept, reject, defer) | Care relationship with the patient |
| ACT-CLI-002 | Read; accept for categories permitted by policy | Policy-defined categories only |
| ACT-CLI-016 (via Domain 7) | Create (submission) | Authenticated portal account linked to the patient |
Imported problems, allergies, history items, immunizations, observations and documents are reviewed in one review queue on UI-CLI-004. Imported medications are reconciled on UI-CLI-010 from stage 4, in the medication reconciliation session (FR-CLI-MHR-002).
4. Preconditions - The external patient has been matched to the enterprise identity by Domain 1; the inbound payload has passed Domain 2 validation.
5. Trigger - An external record or patient submission is delivered to this domain, or a clinician opens the reconciliation queue.
6. Functional Behaviour
- The system shall store each imported item with source organization or system, source identifier, original code and display, mapping version, received time and the original payload reference.
- Imported items shall be displayed in the chart in a separate, labelled section or with a per-item label; they shall not appear in the verified problem, allergy or medication lists until accepted.
- The system shall present a reconciliation view comparing imported items with existing local entries of the same type and highlighting probable duplicates and conflicts. Each item shall be shown in one compare-and-decide row: the local entry and the imported item side by side, with source and date, and the actions Accept, Reject and Defer. The review queue for all item types except medications is on UI-CLI-004; medications use the same row on UI-CLI-010.
- For each item the clinician shall accept (creating a local entry with a provenance link to the source item and the confirming clinician), reject with reason, or defer.
- Unmapped or ambiguously mapped codes shall be flagged; safety-relevant unmapped concepts (allergies, medications) shall be routed to the Domain 10 terminology stewardship queue and remain visible as free-text source content.
- CDS shall treat unconfirmed imported allergies and medications as low-confidence inputs (FR-CLI-CDS-002).
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Source system / organization | Identifier | Yes | Registered source | Origin of the information |
| Source record identifier | String | Yes | Unique within source | For de-duplication and provenance |
| Item type | Code | Yes | Supported type (problem, allergy, medication, immunization, observation, document) | Kind of information |
| Original code and display | Coded / text | Yes (at least display) | None on content; mapping attempted | As received |
| Decision | Code | Yes at reconciliation | accept, reject, defer | Clinician decision |
| Reason | Code / text | Yes for reject | Governed list | Why rejected |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-EHR-002-01 | Re-delivery of the same source record identifier updates the pending item and does not create a duplicate | Idempotent import |
| PR-EHR-002-02 | Acceptance creates a new local entry; the imported item is retained unchanged | Source evidence preserved |
| PR-EHR-002-03 | A conflict between imported and local data is never resolved automatically | No silent overwrite |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Reconciliation queue | Screen / worklist | Clinician | Pending imported items per patient, on UI-CLI-004; medications on UI-CLI-010 (stage 4) |
| Accepted entry | Clinical entry with provenance link | Clinical record | Locally verified entry |
| Review outcome | Event | Domain 7 (for patient submissions) | Accepted, rejected or deferred status |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Code cannot be mapped | Terminology lookup | Keep source text; flag unmapped; route to stewardship | "Unmapped concept; shown as received" |
| Item duplicates an existing local entry | Same concept and overlapping period | Suggest link instead of new entry | "Possible duplicate of existing entry" |
| Patient match revoked (unmerge) | Domain 1 event | Detach pending items; flag accepted entries for review | Review task created |
11. State and Lifecycle Behaviour
Imported item: Received, Accepted, Rejected or Deferred (section 4.3). A Received item is awaiting review and is shown as "Awaiting review" ("Pending review" means the same state). A Deferred item stays in the review queue and can later be accepted or rejected. An accepted item's derived local entry follows the lifecycle of its entry type.
12. Audit Requirements
- Import receipt, each accept, reject and defer decision with clinician, time and reason.
- The provenance link from accepted entry to source item is retained for the life of the entry.
13. Security and Privacy Requirements
- Imported content carries the privacy labels received with it and those assigned by local policy; the consent decision from Domain 10 governs use.
- Classification: Sensitive.
14. Acceptance Criteria
- AC-01: Given an imported allergy, when the chart is displayed before review, then the allergy appears labelled as imported and unverified and is not in the verified allergy list.
- AC-02: Given a clinician accepts an imported medication, when the medication list is displayed, then the new entry shows the confirming clinician and a link to the source item, and the source item is unchanged.
- AC-03: Given the same external record is delivered twice, when import completes, then one pending item exists.
- AC-04: Given a patient-reported correction request, when a clinician rejects it with a reason, then the local record is unchanged and the outcome is available to Domain 7.
15. Dependencies and Integration
- Upstream dependencies: Domain 2 (inbound exchange), Domain 1 (identity match), Domain 7 (patient submissions), Domain 10 (terminology mapping).
- Downstream dependencies: MOD-CLI-002, MOD-CLI-008, MOD-CLI-011.
- Required events or APIs: IF-CLI-008; consumed PatientReportedOutcomeReceived.
16. Open Questions / Assumptions
- Which item categories nurses may accept is a clinical governance decision (ASM-CLI-007).
← 5. Detailed Functional Requirements | Contents | Identifier index | 5.2 Module Specification: Problem List, History, Diagnoses and Allergies →