← Security & Audit

FEAT-AUDIT-TRAIL

Regulatory Audit Trail

Every meaningful action — clinical record access, AI processing, lifecycle change, raw-data access — produces a queryable, tamper-evident record. "Who did what, when, to whose record" is always answerable.

Why this matters

Healthcare regulators do not accept "we believe nothing went wrong". They expect proof: who accessed which patient's record, when, from where, under what authorisation. Disputes — between a patient and a provider, between a provider and a payer, between a vendor and a regulator — almost always resolve to "show me the timeline".

A platform without a built-in audit trail forces every customer to build their own from log files, knowing those files were not designed for compliance use. A platform with audit as a crosscutting feature delivers the same evidence to every customer in the same shape, with no extra integration.

The strategic value is not just "we log things". Every clinical operation across every module, every login, every administrative change, every lifecycle transition produces audit records in the same format and the same place. Compliance review becomes one query rather than a dozen log searches.

What's in the box

  • Same store as records. Audit events live in the same data store as the records they describe, inside the same customer organisation boundary. There is no separate audit silo to reconcile or query separately.

  • One format, everywhere. Every audit event is a FHIR audit record resource — same shape regardless of which module or layer produced it. A single query pulls the full timeline for a patient, an operator, a customer organisation.

  • Cross-cutting, not per-module. Audit is provided by the platform; modules emit events through one shared channel. Routing, formatting, and persistence are not each module's problem.

  • Edge-first, sync-later. Each edge produces audit events for every locally-taken action — online or offline — and forwards them to cloud as part of the normal reconciliation flow. Audit continuity does not depend on connectivity.

  • Source attribution and time-of-event ordering. Each event carries the system that produced it (cloud, or a specific edge) and two timestamps — when it happened, and when the cloud first saw it. Investigators filtering by source see one edge's events in isolation; ordering is by when-it-happened, so a delayed sync from a previously-offline edge slots into the timeline at the moment the action took place, not at the moment cloud received the record.

  • Dual-logged lifecycle. Affecting a whole organisation events are written to both the platform's own trail (operator oversight) and the affected customer organisation's trail (customer's own history). The customer always has the full record of their own data.

  • Queryable like any clinical resource. Audit events participate in the same query, retention, and authorisation model as records, so customers can build their own views over them.

  • Categories audited today. Clinical record access (read, write, update); authentication events (login, logout, failures); administrative actions (user creation, permission change, module enablement); lifecycle events (customer organisation created, suspended, edge enrolled, retired); raw transcript access (with reason); AI processing (task, input by reference, provider, outcome).

Standards we lean on

  • HIPAA 45 CFR 164.312(b) — audit controls.
  • GDPR Articles 5(2) and 30 — accountability; records of processing activities.
  • ISO/IEC 27001 Annex A.12.4 — logging and monitoring.
  • HL7 FHIR audit record — the standard shape every event takes.

The detailed mapping — which requirement satisfies which article — lives with the requirements themselves.

What customers and operators experience

  • A regulator auditing the platform is shown a per-patient timeline assembled from one queryable source: every access to that patient's record, by whom, from where, when.
  • A compliance officer can answer "did anyone access patient X's records on date Y" in seconds, without hunting across log files.
  • A clinician investigating "who else has touched this record" sees the access history alongside the record itself.
  • A patient exercising their right to see access logs gets a consistent answer regardless of which module recorded their data.
  • An insurer investigating a claim can be served from the same trail through the customer's normal disclosure process. The platform does not need a separate "insurance investigation" feature; the same evidence base answers regulator, patient, and payer questions.
  • A platform operator can demonstrate that operational tooling did not access customer organisation clinical content. The audit trail draws the boundary.
  • A compliance officer reviewing a specific clinical site filters the audit trail to that site's edge — not by reading every cloud- originated event in sequence, but by picking the edge from a source filter. The resulting view is the timeline of activity at that physical location, sorted by when activities took place, even when some events synced to cloud hours after the fact.
  • A finance lead can see usage patterns: which modules are most active, which AI tasks generate the most cost, which sites produce the most clinical activity.

Limits and trade-offs

  • Audit volume is high. Every clinical action emits an event. Long-term storage budget is non-trivial; retention policy is set per zone, balancing regulatory minimums against cost.
  • Audit is an honest record, not a cryptographic one. A malicious actor with full database access could in theory alter the history. Mitigation is separation of duties and external write-once archiving for the most sensitive trails — not a hard cryptographic guarantee.
  • Signal-to-noise matters. "Who accessed what" is most useful when not drowned in noise. Operational reads by the system itself are marked so investigations can filter them out without missing human accesses.
  • Audit trails are bounded by what is observed. The platform records actions through itself. External integrations carry their own audit; the platform's record stops at the integration boundary.
What it rests on
0 / 15 passing 11 without a result yet
  • kept by its basis its basis has no result The audit trail is kept inside each customer's own data, names no patient, and travels with that data in every export and restore. REQ-AUD-THE-TRAIL-IS-THE-CUSTOMERS-OWN
    Based on 1 promise
    • not cited Audit entries are regular, pseudonymous records in the tenant's own store — feed-visible, exported and restored with the tenant, re-identifiable only through the vault. REQ-DBO-POL-AUDIT-AS-RECORDS
  • kept by its basis its basis has no result Every entry names who acted, as they signed in, and when: no change is anonymous, and modules may add business events of their own but never in another's name or with an earlier date. REQ-AUD-EVERY-ENTRY-NAMES-WHO-AND-WHEN
    Based on 2 promises
    • not cited Every audit entry names its actor from the tenant authority's token (client and subject) — no anonymous mutations under any audited policy. REQ-DBO-POL-ACTOR-FROM-AUTHORITY
    • cited, no result Applications contribute business-level audit events; the machinery stamps actor and time from the validated token and its own clock, overriding caller claims — the trail can be enriched, never impersonated or backdated. REQ-DBO-POL-CUSTOM-AUDIT-EVENTS
      Cited by: cloud.jengu.dbo.fhir.element.ContributedAuditEventTest#whatWasPostedComesBack, cloud.jengu.dbo.fhir.element.ContributedAuditEventTest#whoAndWhenAreTheContainersWhateverWasClaimed
  • kept by its basis its basis has no result Nothing in the trail can be changed or deleted; only the agreed retention period removes entries. REQ-AUD-NOTHING-IS-CHANGED-OR-DELETED
    Based on 1 promise
    • not cited Audit entries are exempt from the tenant's write discipline: no update, no tombstone under any policy; retention's sweep is the only removal. REQ-DBO-POL-AUDIT-UNCONDITIONALLY-APPEND-ONLY
  • kept by its basis its basis has no result The trail answers both who read a record and where a piece of work travelled, and can say that nobody looked. REQ-AUD-WHO-READ-IT-AND-WHERE-IT-WENT
    Based on 1 promise
    • not cited One trail; the target says what an entry is about. A hop that carried work leaves a travel entry about the task. A participant that opened a payload leaves an access entry about the document, landing where every other reading of it lands and naming the task execution as its occasion. The machinery's own read to seal a payload records nothing: a read that yields only ciphertext is not a disclosure. So who read this is answered from the document by somebody who need not know work exists, and where did this go from the task, and the trail can say that nobody looked. REQ-DBO-POL-TRAVEL-AND-ACCESS-ARE-DIFFERENT-ENTRIES
  • cited, no result The trail reads one act a line in plain words: who by name, what was done to which record by its own name or its tube, and why; what people did comes first, and the platform's own work is shown on asking, its repeated acts counted on one line. REQ-AUD-THE-TRAIL-READS-IN-WORDS
    Cited by: cloud.jengu.platform.audit.TheTrailReadsInWordsTest#aPersonIsKnownByTheKeyTheirSignInNamesWhatAPlainReadOfThemDisclosesBeingNoName, cloud.jengu.platform.audit.TheTrailReadsInWordsTest#aPersonIsNamedAndARecordIsSaidByWhatItIsAndItsName, cloud.jengu.platform.audit.TheTrailReadsInWordsTest#thePlatformIsJenguOrTheEdgeItRanOnNeverItsServiceName, cloud.jengu.platform.audit.TheTrailReadsInWordsTest#thePlatformsRepeatedActsAreOneCountedLineAPersonsNever, cloud.jengu.platform.audit.TheTrailReadsInWordsTest#whatASignInReadsIsDoneForTheSessionItOpens, cloud.jengu.platform.audit.TheTrailReadsInWordsTest#whatPeopleDidComesFirstAndThePlatformsOwnWorkOnAsking
  • kept by its basis its basis has no result The journey of a piece of work is linked entry by entry from where it began, so a forged or gapped journey is refused when its result arrives. REQ-AUD-A-JOURNEY-CANNOT-BE-FORGED
    Based on 1 promise
    • not cited A run's travel and access entries each carry a link to the one before, rooted in the task the store minted, so a participant cannot present a journey that never started. The result that closes the run is the last link and carries the head it commits to; the store checks the chain when the result lands, and a completion with a gap is refused and told which link. A travel entry names who it handed to, so a skipped hop is exposed by the next author. Links are signed by the participant, which buys non-forgery and non-repudiation and not omission-proofing: an intended recipient can open a payload and never say so, and that limit is accepted. The link lives on the entry, so the chain outlives nothing the trail does not, and a pruned predecessor reads unchained rather than broken. REQ-DBO-POL-A-RUNS-TRAIL-IS-CHAINED-FROM-THE-TASK
  • kept by its basis its basis has no result What is done at a site or on a copy elsewhere joins the customer's one trail as it was recorded, each entry once, also after a site was cut off for a while. REQ-AUD-ONE-TRAIL-ACROSS-SITES
    Based on 2 promises
    • not cited A place hands its own trail to its tenant over the link it reads through, and the tenant records each entry as the place recorded it, named as the place's by the credential that handed it. The tenant keeps where each place's trail was taken up to, so a place that was cut off hands what it recorded meanwhile once it is back, all of it and each entry once. In the tenant the place's entries are read with the tenant's own, as one trail; a place reads no trail. REQ-DBO-SYNC-A-PLACE-HANDS-ITS-TRAIL-TO-ITS-TENANT
    • not cited A replica's audit entries reach its peer as that replica recorded them — original actor, original time, and the replica named — and the arrival writes no second trail. Direct writes to the audit type stay refused for every caller; the replication lane is admitted through one narrow port that can express no other write, and a re-delivered entry lands exactly once under the source's own identity. REQ-DBO-PROC-AUDIT-REPLICATES-AS-RECORDED
  • kept by its basis its basis has no result The trail is read in the standard healthcare audit format, by those permitted to read it. REQ-AUD-READ-IN-THE-STANDARD-FORM
    Based on 1 promise
    • cited, no result On a FHIR tenant the audit stream is served as AuditEvent — native records as the truth form, rendered per personality on read, contribution via mapped POST; write access is scope-gated. REQ-DBO-POL-FHIR-AUDIT-PROJECTION
      Cited by: cloud.jengu.dbo.fhir.element.ContributedAuditEventTest#whatWasPostedComesBack
  • cited, no result The trail reads newest first, each entry saying where, who, what and to which record, with what the cloud did told apart from what an edge did. REQ-AUD-THE-TRAIL-READS-NEWEST-FIRST
    Cited by: cloud.jengu.platform.audit.TheTrailReadsNewestFirstTest#anEntryReadsAsWhereWhoWhatAndToWhich, cloud.jengu.platform.audit.TheTrailReadsNewestFirstTest#theCloudIsWhatNoEdgeWrote, cloud.jengu.platform.audit.TheTrailReadsNewestFirstTest#theNewestAreKeptNewestFirst
  • cited, no result Every entry of the trail names the task it was done for, or says it has none, and the trail can be narrowed to the entries with no reason. REQ-AUD-EVERY-ENTRY-NAMES-ITS-REASON
    Cited by: cloud.jengu.platform.audit.EveryEntryNamesItsReasonTest#anEntryDoneOutsideAnyTaskHasNoReason, cloud.jengu.platform.audit.EveryEntryNamesItsReasonTest#anEntryNamesTheStepAndTheTaskItWasDoneFor, cloud.jengu.platform.audit.EveryEntryNamesItsReasonTest#theTrailCanBeNarrowedToWhatHasNoReason
  • cited, no result Everything done is shown by the task it was done for — where it was done, what started it, how it stands and what was done for it — newest moved first. REQ-CMW-EVERYTHING-DONE-IS-SHOWN-BY-ITS-TASK
    Cited by: cloud.jengu.platform.tasks.EverythingDoneIsShownByItsTaskTest#aFolderIsNewestMovedFirstWithTheTenantsOwnRunAboveIt, cloud.jengu.platform.tasks.EverythingDoneIsShownByItsTaskTest#aTaskAnEdgeStartedItselfIsKnownByWhatItDidWhenItsRunIsNotKeptHere, cloud.jengu.platform.tasks.EverythingDoneIsShownByItsTaskTest#aTaskIsDrawnWithWhatItIsAndWhatItDid, cloud.jengu.platform.tasks.EverythingDoneIsShownByItsTaskTest#aTaskSaysWhereItWasDoneWhatStartedItAndHowItStands
  • gap: not yet stated Every customer lifecycle transition is recorded in both the operator's trail and the customer's own. FEAT-GAP-c306bd4c
  • gap: not yet stated Each audit event records when it happened and when the cloud first saw it. FEAT-GAP-181db7c7
  • gap: not yet stated The system's own reads are marked apart from people's. FEAT-GAP-1534836f
  • gap: not yet stated Sign-in and administrative events sit in the same trail as clinical ones. FEAT-GAP-fb9a6235