Kief Studio

Compliance Data Integrity: When Your System of Record Disagrees With Reality

Build

  • Published
  • Updated
  • 9 min read
Scattered violet-magenta light streaks drift across a black field and gather into one bright soft-gold path.

TL;DR: Compliance data integrity means the records you operate on and the records a regulator reads stay complete, consistent and accurate, and agree with each other. In drugs, food, medical devices and cannabis, the two drift through re-entry, failed syncs and unlogged adjustments. Reconcile at the source, keep an audit trail and connect the systems properly.

Updated October 2026: deadlines were refreshed from FDA (the small dispenser DSCSA exemption now runs to November 27, 2027), and promotional cards and outside company references were removed.

Data integrity is the quiet problem under most compliance work. A drug wholesaler has to pass package-level product data down the supply chain electronically. A food distributor has to trace a lot code through every step it handles. A medical device maker submits device records to a federal database. A cannabis shop's register has to agree with the state's tracking system.

In each case you operate on one system and report into another, and the two pull apart over time. Here is where that data integrity gap shows up, why it happens and how to close it.

What is compliance data integrity?

FDA's guidance for drug manufacturers gives the cleanest definition: "data integrity refers to the completeness, consistency, and accuracy of data. Complete, consistent, and accurate data should be attributable, legible, contemporaneously recorded, original or a true copy, and accurate (ALCOA)." (FDA, Data Integrity and Compliance With Drug CGMP (opens in a new tab)) That guidance is written for drug manufacturing, but the idea travels to every regulated record.

Two systems that have to agree

Every regulated business runs two sets of books that are supposed to match. One is the system you operate on: an ERP, a point-of-sale system, a manufacturing system or a spreadsheet. The other is the system of record a regulator or trading partner reads. Data integrity is the work of keeping them in agreement, and being able to show how they got there.

The audit trail is not optional for electronic records

Where FDA's electronic records rule applies, it requires "secure, computer-generated, time-stamped audit trails to independently record the date and time of operator entries and actions that create, modify, or delete electronic records," and adds that "Record changes shall not obscure previously recorded information." (21 CFR Part 11, section 11.10(e) (opens in a new tab))

In plain terms, data integrity means the regulator's copy and your working copy must line up, and when you correct something, the original stays visible. MyRHC keeps a plain reference on FDA Part 11 (opens in a new tab) if you want the framework in one place.

You can pass a paperwork review and still run brittle systems. You can also build carefully and make the review routine. We treat both as outcomes of good engineering. Our knowledge base has a short piece on compliance versus security if you want the distinction.

How does data integrity work in the drug supply chain?

FDA describes the Drug Supply Chain Security Act as outlining "steps to achieve an interoperable and electronic way to identify and trace certain prescription drugs at the package level as they move through the supply chain." (FDA, DSCSA (opens in a new tab))

FDA phased in the enhanced requirements with exemptions by type of trading partner. For small dispensers such as pharmacies, FDA is "issuing exemptions from certain requirements of section 582 of the FD&C Act to small dispensers (e.g. pharmacies), and where applicable their trading partners, until November 27, 2027." (FDA, DSCSA exemptions (opens in a new tab)) The old version of this note said 2026; FDA moved it.

The calendar is not the main point. Every package now carries an identity that has to be captured and passed accurately at each handoff. The industry standards body GS1 US publishes guidance on applying "Electronic Product Code Information Services (EPCIS), to streamline data exchange, reduce integration challenges, and enhance end-to-end traceability." (GS1 US (opens in a new tab)) One mis-scanned or unsynced event, and your data and your partner's data disagree. That is a data integrity failure, even if every system is working as designed.

What does food traceability ask of your records?

FDA's Food Traceability Rule, which implements FSMA Section 204, requires firms that "manufacture, process, pack, or hold foods on the FTL" to "maintain records containing Key Data Elements (KDEs) associated with specific Critical Tracking Events (CTEs)" and to provide information to FDA "within 24 hours or within some reasonable time to which the FDA has agreed." (FDA, Food Traceability Rule (opens in a new tab))

The compliance date moved to 2028

The original compliance date was January 20, 2026. FDA proposed extending it to July 20, 2028, and Congress then "directed FDA not to enforce the Food Traceability Rule prior to that same date." FDA says it "intends to comply with this Congressional directive." (FDA, Food Traceability Rule (opens in a new tab); Federal Register, proposed extension (opens in a new tab)) Check FDA's page before you rely on any date for a filing.

Why data integrity speeds a traceback

The extra time is not a reason to wait. The CDC "estimates 48 million people get sick, 128,000 are hospitalized, and 3,000 die from foodborne diseases each year in the United States." (CDC (opens in a new tab)) When product is mixed and records are inconsistent, tracing the source is slow. A clean lot-code trail that matches your operating records is what makes a traceback fast. That is data integrity doing its job.

How do medical device records connect to a federal database?

FDA's UDI system means "the label of most devices will include a unique device identifier (UDI) in human- and machine-readable form." (FDA, UDI system (opens in a new tab)) Under the regulation, a UDI has "A device identifier," a mandatory, fixed portion, and "A production identifier," a conditional portion that can carry the lot or serial number. (21 CFR Part 830 (opens in a new tab))

Labelers submit device identification data to FDA's Global Unique Device Identification Database, either one device at a time through a web application or in bulk through "HL7 SPL submission via FDA Electronic Submissions Gateway." FDA says it is "focusing resources on optimizing the quality and utility of data in the GUDID database." (FDA, GUDID (opens in a new tab)) Your internal product master and that database have to tell the same story. Device data integrity is that agreement.

Cannabis is the same pattern

In Massachusetts, the Cannabis Control Commission says "All licensees in Massachusetts must use Metrc to track all marijuana products that are cultivated, manufactured, transported, tested, and sold throughout the Commonwealth." (Massachusetts Cannabis Control Commission (opens in a new tab)) The shop's point-of-sale system and the state record have to agree, which makes cannabis one of the clearest data integrity cases. We wrote a deeper piece on METRC ghost inventory and why your POS and the state disagree.

Why do the two systems drift apart?

Office server closet with a network switch and tower server, where an operations system and its records often live
The operating system often lives in a closet like this one. Data integrity is keeping it in agreement with the regulator's record.

The industries differ, but the failure modes are almost always the same, and rarely malicious:

  • Manual re-entry. Someone keys the same event into two systems, and the second copy lags or has a typo.
  • Sync failures. An automated event fails to post, nobody notices, and the gap compounds quietly.
  • Unlogged adjustments. Waste, samples, rework, damage or a correction happens in the real world but never reaches the record.
  • Unit and format mismatches. One system counts, another weighs. One uses a different lot or code convention. The records stop lining up.
  • Outages. The regulatory system is slow or down, and without a queue the events that happened during the gap are lost.

None of these require bad intent, and good intent does not excuse them. An unexplained gap is a data integrity problem on its own. The same pattern shows up when software or AI agents write to business systems with more access than they need: the system of record and the system that just acted stop agreeing.

How do you close the data integrity gap and keep it closed?

Closing the data integrity gap is part process and part engineering.

The data integrity process side

  1. Name the system of record for each kind of data: inventory, lots, devices, sales.
  2. Reconcile on a schedule. Daily where the rules or volumes call for it.
  3. Correct at the source. Fix the record where the error started, not with a patch downstream.
  4. Record every correction with who, when and why, so the audit trail exists before anyone asks for it. That is data integrity you can show.

The engineering side

This is where a well-built API integration earns its keep. Connect the operating system and the system of record through the standards and documented interfaces each industry already uses, so identity and events move in a language both sides understand. Then make the sync hard to break, because data integrity depends on it:

  • Idempotency, so a retried event is never posted twice.
  • Retries with backoff, so a slow service does not lose data.
  • An error queue that holds failed events for a person to review instead of dropping them.
  • Incremental sync, so nothing between runs is missed.
  • An append-only change log, so every correction leaves the original visible.

Good data engineering underneath makes reconciliation a report you read, not a weekend you lose. Data integrity then becomes a property of the system, not a heroic effort before each inspection.

This article is general information, not legal advice. Kief Studio is not a law firm, and reading it does not create an attorney-client relationship. Laws and regulations change, so check the current text and talk with a licensed Massachusetts attorney about your situation.

Frequently asked questions

What is compliance data integrity?

Keeping records complete, consistent and accurate across every system that must agree, including a regulatory system of record. FDA's drug guidance describes good data as attributable, legible, contemporaneously recorded, original or a true copy, and accurate (ALCOA).

Why do operating systems and compliance records stop matching?

Usually manual re-entry, a failed sync, an unlogged real-world adjustment, a unit or format mismatch, or an outage with no queue. The causes are ordinary and almost never intentional.

What does 21 CFR Part 11 say about audit trails?

Where it applies, systems must keep secure, computer-generated, time-stamped audit trails of entries and actions that create, modify or delete electronic records, and changes must not obscure what was recorded before.

When is the FSMA 204 food traceability compliance date?

FDA proposed July 20, 2028, and Congress directed FDA not to enforce the rule before that date. The original date was January 20, 2026. Check FDA's page before relying on it.

When does the DSCSA small dispenser exemption end?

FDA's exemption from certain DSCSA requirements for small dispensers, such as pharmacies, runs until November 27, 2027, according to FDA's exemptions page as of October 2026.

How do I keep two systems in agreement without manual reconciliation?

Connect them through the industry's standard interfaces and build the sync to survive failure: idempotent writes, retries, an error queue, incremental sync and an append-only log. Then reconcile on a schedule and correct at the source.

Where we fit

Kief Studio is in Shrewsbury. Our API integration work connects the systems you already run so data moves on its own: we agree which systems may connect and what each may see, build on authorized APIs only, including regulated systems where access is granted, and host and watch it so a broken sync raises a flag instead of silently losing data.

For licensed cannabis operators, our cannabis technology work keeps seed-to-sale records and state reporting in agreement, connecting to Metrc through authorized APIs only. For healthcare and biotech teams, our compliance consulting reviews controls and design, closes gaps in the systems first, and prepares evidence your auditor can use. We are not your auditor of record.

First conversation is free. No commitment.

Tell us which two systems keep disagreeing

Related articles

  1. Build

    Ghost Inventory in Metrc: Why Your POS and the State Disagree

    Why ghost inventory appears between your POS and Metrc, what Massachusetts and other states require, and how to fix and prevent a discrepancy the right way.

    Amelia Gagne

  2. Build

    Cannabis Technology in Massachusetts: The Systems a Licensed Operation Runs On

    Cannabis technology in Massachusetts, read from 935 CMR 500: Metrc, point of sale, inventory, ID checks, video, cash and the records an inspector asks for.

    Brian Gagne

  3. Protect

    HIPAA Risk Assessment for a Small Practice in MA

    HIPAA risk assessment for a small Massachusetts practice: the seven steps, the free HHS SRA Tool v3.7, and the records OCR expects to see.

    Amelia Gagne