Single Source Of Truth
Single Source of Truth means one authoritative place for each data fact, with clear rules for how other systems read it and how changes are recorded. In health workflows, the “fact” might be a medication list, an allergy, an appointment status, or a diagnosis code. When multiple systems store the same fact without coordination, records drift and staff spend time reconciling differences instead of treating patients.
A practical example: a clinic’s scheduling system marks an appointment as “confirmed,” while a separate patient portal still shows “pending.” The patient sees one status, the front desk sees another, and billing sees a third. The underlying issue is not the UI, it is the data ownership model and the update path.
Single Source of Truth does not mean every system must share one database. It means every fact has a defined owner, a defined update mechanism, and a defined propagation method. When those rules are missing, even careful teams end up with conflicting records that look equally legitimate.
Main Problems And Pain Points
Conflicting records usually start with unclear ownership. One team updates a spreadsheet, another updates an EHR field, and a third updates a portal setting. Each update is correct in isolation, yet the combined system produces contradictions.
Another common failure mode is partial synchronization. A system might copy data nightly but not copy audit fields, effective dates, or status transitions. That creates “time-travel” bugs where an old value returns after a later correction. I have seen this in practice with export jobs that run at 2:00 AM and overwrite a corrected value because the job uses a stale extract.
Dependencies also matter. Medication lists depend on allergy documentation, problem lists depend on encounter history, and billing statuses depend on claim submission events. If you treat each dataset as independent, you get conflicts that appear unrelated. In reality, they share upstream events and shared identifiers.
Supporting technologies often hide the problem. ETL pipelines, API caches, message queues, and data warehouses can all store copies. Caches expire, queues retry, and ETL jobs can run out of order. A record can be “right” in one layer and “wrong” in another for minutes or days, which is enough to trigger human action.
Finally, manual edits create drift. A clinician corrects a value in one interface, while another interface still holds the previous value. If the system does not write back to the authoritative source, the correction becomes local truth, not shared truth. That pattern is common when teams use multiple tools and “temporary” workarounds become permanent.
Solutions And Advice
Define Ownership And Write Paths
Start by listing each data element you care about and assigning an owner system for each element. For example, appointment status might be owned by the scheduling system, while demographic fields might be owned by the master patient index. Then define the write path: which system is allowed to change the value, and what event triggers the change.
Use a simple rule set: only the owner can write the authoritative value, and other systems must treat their copy as derived. If you need edits in a non-owner system, route the edit through the owner via an API call or a controlled workflow. In one rollout I reviewed (version 3.2 of a custom integration, dated 2024-10-14), the team allowed edits in two UIs and then tried to “sync later,” which produced conflicts every week.
Track effective dates and audit metadata. If a correction is made, store who changed it and when, and store the effective start date. Without effective dating, reconciliation becomes guesswork when updates arrive out of order.
Use Identifiers And Mapping Rules
Conflicts often come from mismatched identifiers. A patient might have one identifier in the EHR, another in the portal, and a third in a billing system. If mapping rules are inconsistent, you get duplicate records or updates applied to the wrong person.
Adopt a single patient identifier strategy for cross-system reads. Many organizations use a master patient index (MPI) to map identifiers, but the key is that every integration must use the same mapping logic. For medications and diagnoses, use stable codes and consistent normalization rules. If one system stores “Metformin 500 mg” and another stores “Metformin HCl 500 mg,” you need a normalization approach or you will treat the same medication as two different facts.
Test mapping with a small sample set. A practical target is to validate 50 to 200 records end-to-end before enabling full sync, then rerun the test after any integration change. That number is small enough to manage manually, yet large enough to reveal systematic mapping errors.
Design Reconciliation With Guardrails
When conflicts still occur, reconciliation rules decide which value wins and how to record the decision. A common approach is “last write wins” only when updates are strictly ordered and carry reliable timestamps. In health workflows, timestamps can be delayed, so you often need event-based ordering, such as using encounter IDs or status transition events.
Guardrails reduce damage. Add validation checks that block impossible transitions, such as marking an appointment as “completed” without a corresponding check-in event. Add schema constraints for required fields, and reject updates that fail validation rather than silently accepting them.
Keep a conflict log. Even a simple log that records the source, timestamp, and conflicting values helps you diagnose whether the issue is a retry storm, a cache delay, or a manual override. Without a log, teams end up debating which UI looked correct.
Test Sync Behavior Under Real Timing
Conflicts are often timing problems. Run tests that simulate delayed messages, retries, and out-of-order delivery. If you use queues, test duplicate delivery because many systems retry on network errors. If you use caches, test cache invalidation after updates.
Measure propagation time. A realistic goal is to define an acceptable window for read consistency. For example, you might require that appointment status changes appear in the portal within 5 minutes, and you might tolerate a longer delay for non-urgent fields like care plan notes. When you do not define a window, teams treat any delay as “temporary,” and conflicts become chronic.
During testing, watch for human-triggered actions. If a patient can submit a form that updates a record while an integration is still processing an earlier update, you need deterministic conflict rules. That is where “single source” becomes more than a slogan.
Case Examples
Appointment Status Drift
A community clinic uses a scheduling system as the owner for appointment status. The patient portal reads status through an API, but a separate reporting tool also updates a “portal status” field for analytics. When staff mark an appointment as “confirmed” in the scheduling UI, the portal shows “confirmed” for a few minutes, then flips back to “pending” after the analytics job runs. The root cause is that the analytics tool writes to a derived field without respecting ownership rules.
The fix was to remove write access from the analytics job and to treat portal status as read-only derived data. The team also added a conflict log entry whenever the portal receives a status update that does not match the scheduling system’s event sequence. After the change, the portal stopped oscillating, and staff stopped receiving contradictory status screenshots.
Medication List Conflicts
A care coordinator updates a medication list in the EHR during a follow-up visit. The patient portal also allows medication edits, and those edits are stored in a portal-specific table. A nightly sync merges the lists, but the merge logic treats each entry as unique based on free-text fields. “Lisinopril 10 mg tablet” and “Lisinopril 10mg” become separate entries, and the portal shows duplicates.
The resolution was to normalize medication names and to use a code-based representation for the medication concept. The portal edit workflow was changed to route updates through the EHR owner system, and the nightly sync became a one-way propagation from EHR to portal. The coordinator still sees a single list, and the portal reflects the authoritative record.
Comparison Table And Checklist
| Approach | Where Truth Lives | Typical Failure Mode | Best Use Case |
|---|---|---|---|
| Single Owner Writes | One system owns each fact | Edits happen in non-owner UIs | Clinical fields with audit needs |
| Two-Way Sync | Multiple systems can write | Out-of-order updates overwrite | Low-risk fields with clear ordering |
| Derived Copies Only | Owner system only | Stale caches show old values | Read-heavy portals and reports |
Checklist for preventing conflicting records:
- List each data element and assign an owner system for writes.
- Define the event that triggers updates and the direction of propagation.
- Use stable identifiers and consistent mapping rules across systems.
- Store effective dates and audit metadata with each authoritative change.
- Block invalid state transitions and reject updates that fail validation.
- Test with delayed, duplicated, and out-of-order updates.
- Set and measure acceptable propagation windows for each field.
- Log conflicts with enough detail to trace the source and timing.
Common Mistakes
Teams often treat “sync” as a single action rather than a set of behaviors. A nightly export might copy values but not copy the rules that decide which value is current. When the rules are missing, the system behaves like it has multiple truths.
Another mistake is relying on free-text fields for identity. Medication names, diagnosis descriptions, and problem titles vary across clinicians and interfaces. If you merge on text, you will create duplicates and false conflicts. Code-based concepts and normalization rules reduce that risk.
Many organizations also skip effective dating. When two updates occur close together, the system cannot determine which one should apply. A correction made at 3:10 PM can be overwritten by a delayed update from 2:55 PM if you only store “last updated” without event ordering.
Finally, teams sometimes allow manual overrides in downstream systems “just to fix the screen.” Those overrides become permanent because no one tracks them as exceptions. A better pattern is to route the override back to the owner system or record it as a temporary exception with a defined expiration.
FAQ
What counts as a conflicting record?
A conflicting record is the same data fact represented with different values across systems, such as different allergy lists, different appointment statuses, or different medication entries for the same patient and effective date.
How do I identify the authoritative source?
Assign authority based on write permissions and audit trails. The authoritative source is the system that records the change event, stores audit metadata, and is used for downstream reads.
Do caches break single source of truth?
Caches can show stale values when invalidation is delayed. Single source of truth still works if you define propagation windows, invalidate caches on authoritative changes, and log when reads occur during the delay.
What should reconciliation rules do?
Reconciliation rules should decide which update wins using event ordering and effective dates, block invalid transitions, and record conflict details so you can trace the cause instead of guessing.
How can we test for record drift?
Run end-to-end tests that include delayed and duplicated updates, then compare authoritative values to derived copies for a sample set. Track mismatches by field and time window, then fix the specific write path or mapping rule that caused them.
Author's Insight
Single Source of Truth is a data governance concept expressed through engineering choices: ownership, write paths, identifiers, and reconciliation rules. In health-related systems, auditability and effective dating matter because updates can arrive out of order and staff actions can overlap with integration timing.
Evidence-based practice focuses on measurable behaviors: propagation time, conflict rate, and mismatch counts by field. When teams track those metrics, they can distinguish a mapping problem from a timing problem and avoid blaming “user error” for system design issues.
Tools like API gateways, message queues, and ETL jobs are not inherently wrong; they become risky when they write to derived fields or when they lack deterministic ordering. The most reliable designs treat derived copies as read-only and route edits back to the owner system.
Key Takeaways
- Assign ownership for each data element and restrict writes to the owner system.
- Use stable identifiers and normalization rules so the same concept maps to the same record.
- Store effective dates and audit metadata to resolve out-of-order updates.
- Define propagation windows and test with delayed, duplicated, and out-of-order events.
- Log conflicts with enough detail to trace the source, then fix the write path or mapping rule.