Reconstruct the action and its authority

How to Build an Audit Trail for Clinic Follow-Up

Build an audit trail that links source versions, approval, submission and destination evidence without unnecessary copies of consultation content.

A clinic follow-up audit trail should let an authorised reviewer reconstruct what was proposed, what was approved, what actually left the system and what the receiving service reported. It must also show who owned unfinished work. A list of logins and timestamps cannot answer those questions if it does not connect the source, action versions, decisions and outcomes.

This guide is for clinic quality managers, IT leads, privacy teams and implementation partners designing evidence for administrative follow-up. The aim is a usable record of responsibility and events with proportionate access to sensitive content. Build it into the clinic follow-up workflow from the start, rather than trying to reconstruct it after a patient query or incident.

Start with the questions an investigation must answer

Define a small set of questions for each action class. Which authorised commitment created the work? Which patient and encounter did it concern? What did the reviewer see? Which version did they approve? What was submitted, to whom, under whose authority? What result is known, and what remains unresolved?

Use those questions to decide which events and references are necessary. Avoid collecting every available field simply because storage is inexpensive. A source-version reference and protected retrieval procedure may support reconstruction without copying the consultation into each log entry. The evidence design should serve a defined purpose and the clinic's approved retention and access rules.

Test the design with a synthetic question that cannot be answered from the latest screen alone: “Was the attachment removed before or after the message was submitted?” If the record shows only the current attachment list, it cannot establish the historical answer. The audit trail must preserve the relevant sequence and versions.

Distinguish content provenance from security events

Content provenance concerns how a record came to exist or change: its source, author, transformation and revision. Security events concern activity such as access, disclosure attempts and administrative changes. A clinic often needs both, but combining them into an undifferentiated stream makes it harder to identify what a record proves.

In the published FHIR R4 specification, Provenance records information about the activity that produced a resource, while AuditEvent supports recording security-related events. These are version-specific examples, not evidence that a particular follow-up product implements them. Match the chosen representation to the actual supported interface and local evidence requirements.

The application also needs a meaningful operational history: task proposed, condition clarified, approval granted, submission attempted, result uncertain, destination accepted and obligation resolved. A technical resource or security log does not automatically encode the clinic's definition of completion. Document that meaning separately and keep it consistent with the administrative task lifecycle.

Use identifiers that connect the evidence

Assign a stable identifier to the underlying obligation and separate identifiers to its versions and execution attempts. Preserve the patient and encounter references through the clinic's authorised identity system. Link the destination's acknowledgement or record identifier when available. This makes it possible to follow one piece of work without treating every retry as a new obligation.

Record the actor and role at the time of the event. A person's current role may differ from their authority when they approved the action. Distinguish a human decision from a service executing that decision. Shared accounts weaken attribution because they cannot reliably establish which person acted, even if the timestamp is precise.

Minimum evidence relationships for an administrative action
Evidence elementWhat it should establishCommon gap
Source reference and versionThe commitment represented by the proposalOnly the latest edited source remains available
Action and version identifiersThe exact fields and conditions reviewedAll changes overwrite one mutable task
Reviewer, role and decisionWho authorised which next stepA generic approved flag without scope
Execution attempt and service identityWhat operation was submitted under which authorityNo link between the approved and transmitted versions
Destination result and identifierThe receiving system's actual responseTransport success labelled care completed
Current owner and unresolved stateWho must reconcile or complete the workA failed action disappears from the working queue

The exact fields depend on the action and applicable obligations. Document the minimum required for each class and test a complete trace. The Saudi PDPL Implementing Regulation's health-data provisions include documenting processing stages and responsibilities. Design evidence that supports the applicable requirements without exposing health content to everyone who can view technical logs.

Record time as evidence with known limits

Keep occurrence time and receipt time distinct for external events. A delivery callback received later may describe an earlier event. Store the timezone or an unambiguous timestamp representation, and make the display clear to investigators. Record the origin of a timestamp where it comes from another system rather than the clinic's own application.

Synchronise relevant systems and monitor clock problems, but do not assume clock agreement proves event order across every component. Use version references, request identifiers and causal relationships as well. Where uncertainty remains, state it. A report should not create a definitive chronology by silently sorting incompatible timestamps.

Include enough context to identify delayed, repeated and out-of-order events. Reprocessing a callback should not create a second completed action. Preserve the original event identifier and how it was handled. The integration guide explains the related execution and reconciliation controls.

Reconstruct a fictional attachment amendment

Consider a synthetic document-message workflow. Version one includes an attachment. The authorised reviewer then approves a revised version that removes that attachment before sending. An integration worker later selects an older queued version, and a delivery acknowledgement arrives after the operator has already reported a delay. The investigation asks which version was actually transmitted.

Illustrative evidence sequence with separate event and receipt times
EventEvidence referenceWhat the investigator checks
Original draft preparedAction A, version one, attachment reference XThe source and initial attachment relationship
Revised draft approvedAction A, version two, attachment removedThe reviewer's authority and exact approved content
Worker submits a requestAttempt B, transmitted version oneThe mismatch between approval and submission
Provider accepts the requestProvider reference C and occurrence timeWhat acceptance means under that interface
Callback arrives laterEvent D linked to C, with receipt timeWhy a later receipt does not imply later submission
Incident and corrective action recordedIncident E linked to A and BContainment, assessment and ownership of remaining work

The audit record does not need to display the attachment to every investigator. It needs a reliable reference, version relationship and authorised route to inspect the necessary evidence. A content digest can help compare bytes when implemented appropriately, but it does not prove that a clinical statement was correct or that the recipient was entitled to receive it.

The clinic's authorised teams decide incident handling and any communication or notification required. The technical correction may include invalidating older queued versions and enforcing approval-to-submission matching. The audit trail supports that decision; it does not replace the professional or privacy judgement.

Preserve corrections without rewriting history

Keep the original recorded event and append a linked correction with its author, time, reason and authority. A task can have an updated current view while retaining evidence of what happened before. Clearly distinguish correction of an inaccurate record from cancellation of an action and from a new instruction replacing an earlier commitment.

Do not edit historical message content to match the latest approved template. Investigators need to know what was actually sent. Similarly, changing a person's display name or role should not silently rewrite the historical authority attached to a decision. Use stable actor references and preserve the relevant contemporaneous information.

Define how an erroneous event is marked and who may authorise that correction. Retention or rights obligations can require different handling for different data, so “append-only” is not a justification for unlimited storage. The PDPL workflow guide explains the purpose, retention and rights questions that must be resolved alongside integrity.

Protect the audit trail from inappropriate access or alteration

Limit who can write events, inspect evidence, export records and administer the logging system. Application operators should not be able to erase the evidence of their own actions through ordinary access. Use appropriate integrity controls, protected backups and monitoring of logging failures. Test the boundary with authorised synthetic accounts.

Separate routine operational views from sensitive investigation access. A coordinator may need to see that a task is awaiting a decision without seeing the full consultation. An investigator may need additional context for a documented purpose. The security guide addresses role limits, exceptional access and supplier support routes.

Include access to the audit trail itself in the evidence design. An export can create a new sensitive dataset outside the application's usual controls. Record its purpose, recipient, scope and handling under approved policy. Avoid sending complete logs to a supplier when bounded error details or a synthetic reproduction can answer the question.

Detect missing evidence and logging failures

A quiet log can mean no activity or a broken collection route. Monitor whether expected event types are arriving and whether sequences contain unexplained gaps. Compare submitted attempts with destination results and unresolved-action queues. A logging outage should be visible to an owner with a defined response.

Decide how each action behaves when essential evidence cannot be recorded. Some steps may need to pause; others may continue only under an approved contingency with reliable alternative recording. Base the rule on the consequences and applicable requirements. Do not silently discard audit events to keep the dashboard looking healthy.

During recovery, preserve the distinction between an event that occurred earlier and a record reconstructed later. Identify the source of reconstruction and its limits. A retrospective note can be valuable, but it should not masquerade as a contemporaneous system observation. Review unresolved gaps before declaring the incident closed.

Build reports around decisions and unresolved work

Useful routine reports show actions awaiting approval, stale conditions, uncertain submissions, repeated attempts and ownership changes without acknowledgement. They support intervention before a complaint. Avoid a report that simply counts generated tasks or displays all events without identifying what someone needs to decide.

For quality review, sample complete traces from source to outcome, including valid straightforward work and exceptions. Check whether the recorded state matches the receiving system and the clinic's completion definition. A sent message, an accepted request and a completed care obligation should not collapse into one success category.

Report evidence quality separately from workflow performance. The absence of an acknowledgement is not proof that no action occurred; it may indicate a missing integration event. Assign reconciliation rather than altering the metric to create a clean result. Preserve the denominator and disclose unresolved cases in the operational report.

State what the recorded event cannot prove

A recorded approval establishes that the application received a decision from an authenticated actor under the recorded conditions. It does not, by itself, prove the depth of that person's review. Time spent on a screen is also an imperfect measure. Use audit evidence alongside appropriate supervision, competence checks and investigation of the information actually available to the reviewer.

A provider acceptance event has similarly bounded meaning. It may establish receipt by a service without proving delivery to the intended person, understanding or completion of care. Keep those limits explicit in reports and exports. Otherwise a technically accurate record can support an inaccurate conclusion when another team reads it without the interface context.

Attach a maintained event dictionary to the handover. Explain who generates each event, what triggers it, which system owns its meaning and what it does not establish. Include relevant changes when a supplier revises its status definitions. This gives future investigators a basis for interpretation rather than requiring them to guess from a short code.

Agree retention, retrieval and supplier exit

Set retention by data category, purpose and applicable obligations. Source clinical records, operational traces, security events and temporary diagnostics may need different handling. Identify where references will become unavailable if a source is deleted, and decide how the clinic can still meet justified evidence needs without keeping everything forever.

Test retrieval before purchase and at handover. Can an authorised person export one complete action trace with readable timestamps, actor roles and version relationships? Does the export preserve its meaning without access to the vendor's interface? Define what happens to evidence when a contract ends, including access, transfer, retention and deletion responsibilities.

Include backups and restored environments in that plan. An old backup may contain an earlier task state or access permission. Recovery should reconcile it with later events and current restrictions. A successful restore does not by itself establish that the resulting audit history is complete or safe to use.

Use an evidence walkthrough as an acceptance test

Ask the supplier and clinic team to reconstruct a synthetic amended action, a rejected proposal, an uncertain submission and a transferred responsibility. Check the evidence visible to each authorised role. A successful walkthrough answers the investigation questions without broad unnecessary access or unsupported assumptions about the destination's state.

Echo's public experience demonstrates a proposed-action review flow with simulated downstream work. It does not prove the audit retention, export or integrity properties of a production deployment. Book an audit-focused walkthrough and make the required evidence relationships part of the deployment discussion.

FAQ

Your questions, answered.

What should a clinic follow-up audit trail prove?

It should connect the authorised source, proposed and approved versions, responsible actors, submitted operation and observed destination result. It should also identify unfinished work and its owner. The evidence must distinguish a request, an acceptance and the clinic’s defined completion, without relying only on the latest task screen.

What is the difference between FHIR Provenance and AuditEvent?

In FHIR R4, Provenance describes information about the activity that produced a resource, while AuditEvent supports security-related event recording. They address related but different evidence needs. A clinic also needs its operational action history and completion meaning. Verify the specific version and implementation rather than assuming every product supports both.

Should every audit event contain the full consultation transcript?

Usually the evidence design should use the minimum information needed for its defined purpose, with protected references to source versions where appropriate. Copying full content into every event broadens exposure and retention complexity. Authorised investigators may need access to relevant source material through a controlled process, rather than universal visibility in technical logs.

How should corrections appear in a follow-up audit history?

Preserve the original event and add a linked correction with its author, time, reason and authority. Keep the current task view useful while retaining what happened previously. Distinguish correction, cancellation and replacement instructions, and apply approved retention and rights handling rather than assuming append-only storage permits indefinite retention.

Why should occurrence time and receipt time be stored separately?

A callback can arrive after the event it reports, so sorting only by arrival can create a misleading chronology. Record the relevant timestamp origin and use request and version relationships to establish sequence. If clocks or missing evidence leave uncertainty, disclose it instead of presenting an unsupported definitive timeline.

Does a content hash prove that a follow-up action was correct?

A correctly implemented digest can help compare content or detect a change in bytes. It does not establish clinical correctness, reviewer authority, recipient entitlement or completion of the intended work. Use it as one integrity aid within a trace that includes the relevant source, decision and destination evidence.

What should happen when essential audit logging fails?

Make the failure visible and apply the clinic’s predefined response for the affected action. Some work may need to pause; an approved contingency may provide reliable alternative recording for other work. Preserve ownership and reconcile missing evidence. Retrospectively reconstructed records should clearly identify their source and limitations.

How can a clinic test audit export before selecting a supplier?

Ask an authorised user to reconstruct and export synthetic amended, rejected and uncertain actions with their actor roles, versions and destination references. Check that the export remains intelligible without the vendor interface. Agree retrieval, access, retention and deletion responsibilities for normal operation and contract exit, including backups.

LET’S WORK TOGETHER

Ready to build what’s next?

Tell us about your project or the platform you want to explore, and we’ll come back to confirm a suitable time.