When it comes to healthcare data, who can read an audit trail and who can change it is never just a technical decision. Countries, regions and individual hospitals each have their own rules. Some go to extremes and insist on two keys just to open the audit, one held by the hospital and the other by the vendor.
The easy option is to store it in FHIR’s AuditEvent resource inside the same FHIR server as everything else.
Problem is, that puts the audit trail behind the same access controls as the patient and clinical data. Anyone who can read everything can read the audit. Anyone with write access can update or delete it, including the people whose actions it records.
Audit records then start turning up where they aren’t expected. In R4, AuditEvent resources are often returned by calls to the Patient $everything operation, alongside the very patient and clinical data they audit.
This isn’t always a serious problem. It depends on what’s stored in the AuditEvent and which rules apply. But it’s often a red flag that the team hasn’t properly understood its audit requirements.
Take a support engineer given system-level write access to correct a batch of bad Observations. The same access lets them update the AuditEvents that recorded the correction, and the server doesn’t stop them. In many jurisdictions, an audit trail that can be edited this way doesn’t meet the rules it was built for.
I’ve seen teams move AuditEvents to a separate FHIR server just to get them out of reach.
Signs to look for:
- AuditEvent resources stored in the same server as clinical data
- Update and delete allowed on AuditEvent for regular API clients
- AuditEvents appearing in $everything or bulk export results
- Audit design decided by developers, with no input from compliance
---
I work with teams on a project, retainer or fractional basis. Learn more →