Data integrity is the ability to show that a result, a note or a claim was not changed without a trace. A future architecture does not start with a new platform. It starts with an append-only history of the records you already have.
Agnotic Technologies designs that history so a correction is a new entry, not a silent overwrite.
What is healthcare data integrity?
Healthcare data integrity means an authorized person can trust that a record was not altered or destroyed without a trace, and can see who changed it. Agnotic Technologies builds corrections as new entries with an author and a time, instead of an overwrite.
The HIPAA Security Rule requires policies and procedures to protect electronic protected health information from improper alteration or destruction.
The HIPAA Security Rule requires hardware, software and procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information.
Designing a record that can be audited?
Data engineering services cover the store, the history and the jobs that load it.
What should the system record?
Record the change, not only the latest value. A lab result that can be edited in place with no history will fail the first dispute.
- Who made the change, and when.
- The prior value and the new value, or a pointer to both.
- Why, when the workflow asks for a reason.
- A log of reads and writes on systems that hold ePHI.
Record service accounts with the same care as people. When an interface or a script changes a value, the history should name that integration, not a generic system user.
Use one trusted clock for every server that writes history. Times that disagree between systems make the order of events impossible to prove.
How is this different from a security or a future-of-healthcare post?
Security is who may enter. Integrity is whether the value stayed what they entered. The future of healthcare post is a wide outlook. This post is the history of one record. Our HIPAA audit trail post is the log. Cloud computing is where that log might live.
What undermines integrity?
Admin tools that update rows with no audit, analytics copies that are treated as the legal record, and interfaces that overwrite a newer result with an older message. Name which system is the source of truth before you add a second copy.
Bulk fixes deserve special care. A one-off script that cleans thousands of rows should run through the same versioning as a user edit, with a ticket number as the reason.
What is data provenance, and why does it matter?
Provenance is the record of where a value came from: which system, which interface, which user and which original message. It matters because anyone who doubts a value should be able to trace it without asking three teams.
- Source: the system and the message or API call that delivered the value.
- Timing: when it was received and when it was stored.
- Changes: any transformation applied, such as a unit conversion or code mapping.
- Version: which version of the mapping applied that change.
Store provenance with the record, not in a separate spreadsheet. Once the two drift apart, the provenance stops being evidence.
How does append-only storage work in practice?
In an append-only design, every change is a new version that points to the one before, and nothing is removed in place. Screens show the latest version, while the history keeps every earlier one.
- Corrections: a new version with author, time and reason.
- Removals: a status such as entered in error, not a deleted row.
- Merges: both source records kept, each linked to the merged result.
- Reads: the current version by default, with the history one step away.
What makes a log tamper-evident?
A log is tamper-evident when any change to a past entry can be detected. Two common methods are chaining each entry to the previous one with a hash, and shipping entries to a store the application cannot rewrite.
- Write-once storage, or a separate account the application cannot delete from.
- Hash chaining, so an edited or removed entry breaks the chain.
- Scheduled checks that verify the chain and alert on a break.
- A short list of people who can read raw logs, with their own access logged too.
Tamper evidence does not stop an attacker, it makes the change visible. Pair it with access controls that limit who can write in the first place.
Where does integrity break between systems?
Integrity often breaks between systems rather than inside one. An older message processed after a newer one, a retry that lands twice or a quiet mapping change can corrupt a record without any user doing anything wrong.
- Ordering: compare event times and refuse to replace a newer value with an older one.
- Duplicates: use message identifiers so a retry is applied once.
- Mapping changes: version every map and record which version handled each message.
- Rejections: keep rejected messages for review instead of dropping them.
Analytics copies and the legal record
Analytics copies are useful, but they are not the legal record. Label every copy with its source and last refresh, and never let an edited report flow back as if it were the original.
When analysis reveals a wrong value, correct it in the source system through its normal history. The copy picks up the fix on its next load, and the trail stays in one place.
How should corrections be designed?
Design corrections so the original stays visible and a reason is required. A nurse fixing a vital sign or a lab amending a result should not need to call IT.
- Who may correct each record type, written down.
- A required reason, from a short list plus free text.
- Original and corrected values shown together where it matters clinically.
- A notice to people who already acted on the original, where the workflow needs one.
How do you test integrity controls?
Test every path that can change a record, including the ones nobody draws on the architecture diagram.
- Step 1, every path: change a record through the screen, the API, the interface and the admin tool, and confirm each leaves history.
- Step 2, replay: resend an old message and confirm it does not overwrite newer data.
- Step 3, tamper: alter a log entry in a test environment and confirm the check catches it.
- Step 4, restore: recover from backup and confirm history and current values still agree.
A worked example: an amended lab result
Picture a lab that sends a corrected potassium result after the first one reached the chart. In a weak design, the interface replaces the value, and the clinician who acted on the first result has no record of what they saw.
In an append-only design, the corrected result becomes a new version linked to the first. The chart shows the current value with a clear amended marker, the history shows both, and the ordering clinician gets a task to review the change.
If the corrected message arrives before the original because of a retry, the ordering check holds the older one for review instead of letting it win.
What about backups and restores?
A restore must bring back history, not only current values. If backups capture the main tables but not the version history or the log store, a restore quietly erases the trail.
Back up the record, its history and its logs together, and test a restore on a schedule. After each test, compare a sample of records and their histories with production.
Who owns data integrity?
Each record type needs an owner, usually the clinical or business team that relies on it, while IT owns the controls. Without a named owner, disputes about which value is right have nowhere to go.
Integrity also belongs in the security risk analysis, next to confidentiality and availability, so the controls above are reviewed with the rest of the program.
The HIPAA Security Rule requires an accurate and thorough risk analysis of the potential risks and vulnerabilities to the confidentiality, integrity and availability of ePHI.
How do you measure integrity over time?
- Records changed outside normal workflows, such as by admin tools or scripts.
- Interface messages held for ordering or duplicate checks.
- Chain checks passed and failed.
- Corrections by record type and reason.
What are healthcare data integrity best practices?
- Store changes as new versions, never as silent overwrites.
- Keep provenance with each value.
- Make audit logs tamper-evident and check them on a schedule.
- Refuse older interface messages that would replace newer data.
- Correct values in the source system, not in analytics copies.
- Name an owner for each record type.
How Agnotic can help
Agnotic designs and builds healthcare systems where every change leaves a trace. We review how records are created, corrected and copied today, then add versioned storage, provenance, tamper-evident logs and interface checks where they are missing.
Build auditable health data systems with Agnotic
HIPAA-ready software development with versioned records, provenance and logs you can check.
Related reading on Agnotic
Audit logs, storage design, data management and interface overwrites.


