MOD HIM 004 RAC
Domain specifications / D06-HIM / 5. Detailed Functional Requirements / 5.4 Module Specification: Record Assembly and Encounter Completion
5.4 Module Specification: Record Assembly and Encounter Completion¶
5.4.1 Module Overview¶
Module ID: MOD-HIM-004
Purpose:
Maintain, for each encounter, the list of components that make up its record, decide when the record is complete, lock it, and control what happens when content arrives or changes after locking.
Business Capabilities: - CAP-HIM-004 Record assembly and encounter completion
Primary Actors: - HIM Analyst, HIM Manager
Dependencies: - MOD-HIM-003, MOD-HIM-005 - Domain 1 encounter lifecycle; Domain 3 and 4 records and amendment events; Domain 10 document service
5.4.2 Functional Area: Record Assembly, Completion, Locking and Post-Lock Change¶
Functional Area ID: FA-HIM-008, FA-HIM-009
Description:
FA-HIM-008 maintains the record component list. FA-HIM-009 covers the completion decision, locking and the tracking of post-lock amendments and late content.
Scope: - Included: component list, chart status, lock, reopening, amendment and late-content tracking, correction-request tracking for the legal record. - Excluded: storage of the components (owning domains and Domain 10), the encounter state machine and encounter closure (Domain 1), the amendment of clinical content itself (Domain 3 and 4).
5.4.3 Detailed Requirements¶
Requirement FR-HIM-RAC-001: Encounter record assembly¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-HIM-RAC-001 |
| Requirement Name | Encounter record assembly |
| Requirement Type | Functional |
| Module | Record Assembly and Encounter Completion |
| Functional Area | FA-HIM-008 Record assembly |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | PRS section 2.1 ("legal record controls"); PRS section 5 "HIM and compliance"; EHR-001 (partial); ADM-002 (partial); EHR-003 (partial); PMK 24/2022 article 13 (quality assurance of the medical record) |
| Related Business Rule | BR-HIM-009 |
| Related Workflow | WF-HIM-001 |
1. Requirement Statement
The system shall maintain for each encounter a record component list that references, without copying, every document, note, report, result set and procedure record that belongs to the encounter's health record, with the component's type, source domain, author, status, version and time.
2. Business Rationale
Completeness evaluation, release of information, retention and legal hold all need one authoritative statement of what the record of an encounter consists of. The Domain Scope model assigns record assembly to this domain; the PRS names legal record controls without a detailed requirement, and PMK 24/2022 makes record quality assurance part of every medical record service (GAP-HIM-002).
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| HIM Analyst | Read | View the component list |
| ROI Officer, Records Retention Administrator | Read | For package assembly and retention review |
| System | Create, Update | Maintains the list from events |
4. Preconditions - The encounter exists; source domains publish document and record events with patient and encounter identifiers.
5. Trigger - Document, note, report, result or procedure record event from Domains 3, 4 or 10; document indexing (FR-HIM-DOC-001); reconciliation.
6. Functional Behaviour
- On each source event the system adds or updates a component entry with the source record reference, component type, source domain, author, status, version identifier and event time.
- The component entry stores a reference to the authoritative record; content remains in the owning domain or the document service.
- A new version of a source record updates the entry to the current version and keeps the earlier version references.
- A source record marked entered-in-error stays in the list with that status.
- The list distinguishes locally authored components from imported external components and scanned paper (EHR-008 acceptance: imported information is distinguishable).
- The system reconciles the list against the owning domains periodically and on demand and reports differences.
- Which component types belong to the legal record of an encounter type is configurable.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Patient and encounter identifiers | Identifier | Yes | Resolve in Domain 1 | Context |
| Source record reference | Reference | Yes | Unique per source domain | Authoritative record |
| Component type | Code | Yes | Configured type | Classification of the component |
| Status and version | Code, identifier | Yes | Source domain values mapped to a common status set | Current state |
| Author / source | Identifier | Yes where the source provides it | Provenance |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RAC-001-1 | Event processing is idempotent by source event identifier | Duplicate events create no duplicate component |
| PR-RAC-001-2 | An event without a resolvable encounter is linked at patient level and reported | No component is silently dropped |
| PR-RAC-001-3 | The list never becomes the source of content | Content is always retrieved from the owner |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Record component list | Structured list / screen | HIM roles; MOD-HIM-003, 006, 007, 008 | Record composition with status and version |
| Reconciliation differences | Report / work items | HIM Analyst | Components missing from or extra to the list |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Event for unknown patient | Lookup | Event quarantined | Exception work item |
| Source domain unavailable during reconciliation | Service call | Reconciliation for that source deferred | Reported as incomplete reconciliation |
| Unknown component type | Mapping lookup | Component stored as unclassified and routed to indexing | Work item for classification |
11. State and Lifecycle Behaviour
Component entries mirror source status. Adding a component to a Locked record triggers FR-HIM-RAC-003.
12. Audit Requirements
Views of the component list are audited as record access. System updates are logged with source event identifier.
13. Security and Privacy Requirements
The component list reveals the existence and type of documents and therefore carries the privacy label of each component; entries for restricted components are shown only to users permitted to know of them. Where an entry is withheld, the view shows "Restricted information not shown" in its place, without category or detail, so that the user knows something is missing (design rule CUX-41).
14. Acceptance Criteria
- AC-01: Given an encounter with a signed progress note, a final laboratory report and a scanned consent form, when the component list is viewed, then all three appear with type, source, author, status and version.
- AC-02: Given a corrected laboratory report, when the correction event is processed, then the entry shows the current version and retains the earlier version reference.
- AC-03: Given a duplicate source event, when it is processed, then the list is unchanged.
- AC-04: Given a component present in Domain 3 but absent from the list, when reconciliation runs, then the component is added and the difference is reported.
15. Dependencies and Integration
- Upstream dependencies: Domain 3 and 4 record events; Domain 10 document service events.
- Downstream dependencies: MOD-HIM-003, MOD-HIM-006, MOD-HIM-007, MOD-HIM-008.
- Required events or APIs: source domain document and record events; source domain read APIs for reconciliation.
16. Open Questions / Assumptions
- The legal health record is defined by DEC-HIM-002, resolved 2026-11-17: the finalised and signed content that PMK 24/2022 requires, by encounter type. All encounters: identity, history, examination, results, diagnoses, plan, treatment and procedures, orders, consents, and the clinician's name and signature, with amendment history. Emergency adds triage, condition on arrival and disposition. Inpatient adds the admission assessment, integrated progress notes, medication administration record, nursing record, operative and anaesthesia reports, discharge summary and death documentation. Excluded: drafts, audit logs, decision-support logs, work lists, unfiled messages, analytics, incident and peer-review material, and the financial record. Final diagnostic reports are included; source images are retained under the imaging policy. The definition is configured in CFG-HIM-007.
Requirement FR-HIM-RAC-002: Encounter record completion and record locking¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-HIM-RAC-002 |
| Requirement Name | Encounter record completion and record locking |
| Requirement Type | Functional |
| Module | Record Assembly and Encounter Completion |
| Functional Area | FA-HIM-009 Completion, locking and post-lock change |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | HIM-001 (chart completion, record locking); EHR-004 (partial); REF-003 section 8.6 |
| Related Business Rule | BR-HIM-003, BR-HIM-004, BR-HIM-008 |
| Related Workflow | WF-HIM-001 |
1. Requirement Statement
The system shall set an encounter's chart status to Complete when the encounter has ended and no mandatory deficiency is open, shall lock the record according to the configured locking rule, and shall publish chart-completion status to other domains through a versioned API and durable events.
2. Business Rationale
HIM-001 requires chart completion and record locking. The architecture closes an encounter only when required clinical, operational and financial closure criteria are met or explicitly waived (REF-003 8.6); chart status is one such criterion and Domain 5 may depend on it.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| HIM Analyst | Update | Confirm completion and lock where manual confirmation is configured |
| HIM Manager | Approve | Complete with waived deficiencies |
| Consuming service (Domains 1, 5, 7, 8) | Read | Chart status by encounter |
| System | Update | Automatic completion and locking |
4. Preconditions - The encounter has ended in Domain 1. - Deficiency evaluation has run after encounter end.
5. Trigger - Closure or waiver of the last mandatory deficiency; encounter end with no deficiency; expiry of the configured lock interval; manual confirmation.
6. Functional Behaviour
- The system sets chart status to Complete when the encounter has ended and no mandatory deficiency is Open, Assigned or Escalated, and emits
ChartCompletedwith encounter, completion time and any waivers. - Where configured, completion requires confirmation by an HIM Analyst after qualitative review.
- The system locks the record when the locking rule is satisfied: immediately on completion, after a configured interval, or on manual action.
- On locking, the system records the set of component versions that constitute the record at lock time and emits
RecordLocked. - The lock state is made available to the owning domains and the document service so that later changes to locked components are accepted only as amendments or new versions (BR-HIM-004).
- The chart status API returns status, completion time, lock time and count of open deficiencies for an encounter.
- Chart status does not prevent clinical documentation, orders or care on any encounter.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Encounter identifier | Identifier | Yes | Encounter ended | Encounter to complete |
| Confirmation | Command | Where manual confirmation is configured | Authorized user | Completion decision |
| Lock rule | Configuration | Yes | Immediate, interval or manual | When to lock |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RAC-002-1 | Completion is refused while a mandatory deficiency is open | Status stays Incomplete |
| PR-RAC-002-2 | The lock snapshot lists component version references, not copies | The locked record can be reconstructed from authoritative stores |
| PR-RAC-002-3 | Events are published through a transactional outbox | Status and events are consistent |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
ChartCompleted, RecordLocked |
Versioned event | Domains 1, 5, 7, 8, 10 | Encounter, status, time, snapshot identifier |
| Chart status response | API response | Domains 1, 5, 7 | Status and open deficiency count |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Manual completion with open mandatory deficiency | BR-HIM-003 | Refused | List open deficiencies |
| Encounter corrected or cancelled in Domain 1 after completion | Encounter event | Chart status re-evaluated; cancelled encounters are marked Not Applicable with history kept | Work item for HIM Analyst |
| Owning service does not acknowledge lock state | Confirmation tracking | Lock shown as pending for that source; retried | Alert after configured retries |
11. State and Lifecycle Behaviour
In Progress to Incomplete or Complete; Complete to Locked; Locked to Reopened and back to Locked (FR-HIM-RAC-003); any state to Not Applicable when the encounter is cancelled (4.3).
12. Audit Requirements
Completion, waiver-based completion, lock and reopening are audited with actor or system identity, time and reason.
13. Security and Privacy Requirements
Chart status contains no clinical content and is classified Confidential because it is linked to a patient encounter.
14. Acceptance Criteria
- AC-01: Given an ended encounter whose last mandatory deficiency closes, when status is evaluated, then chart status is Complete and
ChartCompletedis emitted. - AC-02: Given a Complete chart and an immediate lock rule, when completion occurs, then the record is Locked with a snapshot of component versions and
RecordLockedis emitted. - AC-03: Given a Locked record, when a user in Domain 3 attempts to overwrite a signed note of that encounter, then the change is accepted only as an amendment and the original remains retrievable.
- AC-04: Given an Incomplete chart, when a clinician writes a new order for the patient on another encounter, then the order is not blocked.
15. Dependencies and Integration
- Upstream dependencies: FR-HIM-CDT-002, FR-HIM-RAC-001; Domain 1 encounter events.
- Downstream dependencies: Domain 1 encounter closure criteria; Domain 5 billing readiness; Domain 7; Domain 8.
- Required events or APIs: IF-HIM-002 Chart Completion Status API; EVT-HIM-003, EVT-HIM-004.
16. Open Questions / Assumptions
- The PRS does not define "record locking". This specification interprets it as fixing the record's component versions so that later change is by amendment only (ASM-HIM-001).
- Whether chart completion is a precondition of encounter closure is Domain 1 configuration.
Requirement FR-HIM-RAC-003: Post-lock amendments, late content and correction requests¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-HIM-RAC-003 |
| Requirement Name | Post-lock amendments, late content and correction requests |
| Requirement Type | Functional |
| Module | Record Assembly and Encounter Completion |
| Functional Area | FA-HIM-009 Completion, locking and post-lock change |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | EHR-004 (partial); EHR-003 (partial); RES-001 (partial); PAT-012 (partial); PRS 7.2 (version history for corrected facts) |
| Related Business Rule | BR-HIM-004 |
| Related Workflow | WF-HIM-001 |
1. Requirement Statement
The system shall record every amendment, corrected result and late document that affects a locked record as an addition to that record with reason, author and time, shall set the chart status to Reopened for HIM review, and shall track requests to correct the record through to their outcome.
2. Business Rationale
EHR-004 requires that amendments are appended and that original and amendment are both retrievable. HIM must know when a locked record has changed because coding, earlier disclosures and completeness may be affected.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| HIM Analyst | Read, Update | Reviews reopened records and re-locks |
| HIM Manager | Approve | Authorises manual reopening |
| Clinical Coder | Read | Receives review work item where coding may be affected |
| ROI Officer | Create, Read, Update | Registers correction requests received at the HIM counter and tracks them to their outcome on UI-HIM-010 (stage 5) |
| System | Create, Update | Registers post-lock changes from source events |
4. Preconditions - The record is Locked.
5. Trigger - Amendment, addendum, corrected or withdrawn result, or late document event for a locked encounter; a correction request forwarded from Domain 7 or registered at the HIM counter; the withdrawal of a correction request by the patient in the portal; manual reopening.
6. Functional Behaviour
- The system adds the amendment or new version to the component list, linked to the component it amends, with reason, author and time taken from the source event.
- The system sets chart status to Reopened, records the cause and creates a review work item.
- The lock snapshot taken earlier is retained; re-locking creates a new snapshot.
- If the encounter has a Final coding record, the system creates a coding review work item (FR-HIM-COD-004).
- If content of the encounter was disclosed before the change, the system flags the affected disclosure log entries. For a material change (CFG-HIM-028) it creates an "Amendment notice" work item for the ROI Officer listing each earlier recipient of the affected content. The officer sends each recipient the corrected copy or an amendment notice within 5 working days through the original channel; each notice is a disclosure log entry linked to the earlier one. A recipient who cannot be reached is closed with the reason. Statutory classes that are updated automatically (SATUSEHAT) and the patient's own portal view need no notice. On request the patient is told which recipients were notified.
- A correction request records requester, the item in question, the requested change and the date; it is routed to the owning clinical domain for clinician review; the outcome (amended, partly amended, declined, each with patient-facing text and, for a partial or declined outcome, the reason) is recorded and linked to any resulting amendment. The request moves through Received, In Clinical Review, and Amended, Partly Amended or Declined; before an outcome it can be Withdrawn (4.3). Tracking is delivered in stage 5, on UI-HIM-010.
- The HIM Analyst completes the review and re-locks; completeness rules are re-evaluated first.
- The portal correction request of FR-PEX-PRO-002 is the one patient-facing object (DEC-HIM-007); HIM holds its own state for the same request and Domain 7 shows the patient words. The states map one to one: Submitted is Received, Under Review is In Clinical Review, Accepted is Amended, Partly Accepted is Partly Amended, Declined is Declined, Withdrawn is Withdrawn. HIM acknowledges a routed request and publishes every state change as
CorrectionRequestStateChanged(EVT-HIM-016), from which the portal sets Under Review and the outcome. - The patient withdraws a request in the portal while it is Received or In Clinical Review. Domain 7 sends the withdrawal through IF-HIM-004; HIM sets Withdrawn, closes the clinician review task in the owning domain and the HIM work item with the reason "Withdrawn by patient", and publishes EVT-HIM-016. A withdrawal after an outcome is refused: "A decision has already been made on this request." A counter request is withdrawn by the ROI Officer on the patient's written or recorded statement.
- A correction of demographic details (name, date of birth, sex, address, contact or identifiers) is not handled here. Domain 7 routes it to the demographic reconciliation queue of Domain 1 (FR-ADM-MPI-004); a demographic request registered at the HIM counter is passed to that queue and recorded in HIM only as a redirection.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Amended component reference | Reference | Yes | Exists in the component list | What is amended |
| Reason, author, time | Text / identifier / timestamp | Yes | Supplied by source domain | Amendment provenance |
| Correction request details | Structured text | For correction requests | Requester and item identified | The request |
| Reopen reason | Code and text | For manual reopening | Configured value | Why the record is reopened |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RAC-003-1 | No post-lock event removes or replaces an earlier component version | Original and amendment both retrievable |
| PR-RAC-003-2 | A patient-submitted correction is never applied directly | It becomes a request for clinician review (PAT-012) |
| PR-RAC-003-3 | An amendment source event lacking reason or author is accepted, flagged as a data quality exception and reported to the source domain | The record stays truthful about what happened |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Review work item | Work item | HIM Analyst, Coder, ROI Officer | Post-lock change needing review |
| Amendment history | Screen / report | HIM roles | Original and amendments with provenance |
| Correction request outcome | Structured record | Requester (through Domain 7 or HIM) | Amended, partly amended or declined with reason; or withdrawn |
CorrectionRequestStateChanged (EVT-HIM-016) |
Event | Domain 7, Domain 8 | Every state change of a correction request, with the PEX state it maps to |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Amendment references a component not in the list | Lookup | Component added by reconciliation, then amendment linked | None |
| Record under legal hold | Hold check | Amendment accepted (it is additive); hold now also covers the amendment | Hold indicator shown |
| Manual reopening without authority | Authorization | Refused | "Reopening requires HIM Manager approval." |
11. State and Lifecycle Behaviour
Locked to Reopened to Locked. Correction request: Received, In Clinical Review, then Amended, Partly Amended or Declined; Withdrawn from Received or In Clinical Review; as in section 4.3. Amended, Partly Amended, Declined and Withdrawn are final.
12. Audit Requirements
Reopening, re-locking, correction request registration, routing, outcome and withdrawal are audited. The amendment itself is audited by the owning domain.
13. Security and Privacy Requirements
Correction requests contain personal data and the requester's statement; they are Confidential and visible to HIM, the reviewing clinician and the privacy office.
14. Acceptance Criteria
- AC-01: Given a Locked record, when an addendum to a signed note is published by Domain 3, then the addendum appears linked to the note with reason, author and time, and chart status is Reopened.
- AC-02: Given the same record, when the original note is retrieved, then it is unchanged.
- AC-03: Given a Final coding record on the encounter, when the amendment is registered, then a coding review work item exists.
- AC-04: Given a correction request from a patient, when it is registered, then no record content changes until a clinician's amendment is published, and the request shows its outcome.
- AC-05: Given a correction request In Clinical Review, when the patient withdraws it in the portal, then it is Withdrawn, the clinician review task and the HIM work item are closed, and
CorrectionRequestStateChangedis published with the PEX state Withdrawn. - AC-06: Given a clinician who makes part of the requested change, when the outcome is recorded, then the request is Partly Amended, linked to the amendment, with the reason for the part not made, and the portal shows Partly Accepted.
15. Dependencies and Integration
- Upstream dependencies: Domain 3 and 4 amendment and result correction events; Domain 7 correction requests.
- Downstream dependencies: MOD-HIM-002, MOD-HIM-008, MOD-HIM-010.
- Required events or APIs: source amendment events; Domain 7 correction request intake and withdrawal (IF-HIM-004); EVT-HIM-016.
16. Open Questions / Assumptions
- PAT-012 is primarily owned by Domain 7 with clinician review in Domain 3; this requirement covers HIM tracking of requests that concern the legal record. The split of the correction-request workflow between Domains 3, 6 and 7 was resolved as option (a) (DEC-HIM-007). Update 2026-11-17: the HIM states, the mapping to the portal states, partial outcome, withdrawal and the routing of demographic corrections to Domain 1 were added (parts 6.6, 6.8 to 6.10 and 11).
- Earlier recipients are notified of a material amendment (part 5, CFG-HIM-028). This follows common practice for the right to correction (UU 27/2022 (PDP), the GDPR article 19 duty to notify recipients, HIPAA 164.526) (GAP-HIM-004, closed 17 Nov 2026).
← 5.3 Module Specification: Chart Completion and Deficiency Tracking | Contents | Identifier index | 5.5 Module Specification: Document Classification, Indexing, Lifecycle, Versioning, Metadata and Provenance →