Home
Our Approach Advanced Services Expertise Why EUCALEX
AI‑LEX Self-Assessment Confluence Contact us Blog & News Careers All articles
Data Integrity

Data integrity by design: fix the data flow before you configure the system

Written Dec 2025published 29 Dec 202511 min read

A balance prints a ticket, a technician types the value into the batch record, a spreadsheet recalculates it, and a PDF is signed at the end. Each step can be qualified or validated on its own and the result can still be wrong. The value was copied by hand, the spreadsheet was editable, and nobody can show which number came first.

That is the problem data integrity by design is meant to solve. Many data integrity gaps are not individual mistakes at all. They were built into the process long before go-live: a transcription step nobody removed, an instrument that saves results to a local folder, a shared login, a clock nobody synchronised. Fixing them after an inspection means a remediation project. Fixing them on the whiteboard means a meeting.

What “by design” means

The idea is set out in an ISPE GAMP good practice guide, Data Integrity by Design (2020). Data integrity is built in from the first planning of a business process, through the implementation and operation of the computerised systems that support it, to their retirement. The guide joins two lifecycles that are often managed apart: the system lifecycle, which validation teams know from GAMP 5, and the data lifecycle, from creation to destruction.

Regulators ask for the same thing in their own words. The UK regulator, MHRA, expects organisations to “implement, design and operate a documented system that provides an acceptable state of control based on the data integrity risk” (2018, §3.4). The draft revision of EU GMP Annex 11, published for consultation in July 2025, asks that risks be reduced, “if possible, by modifying processes or system design” (§4.4).

Two lifecycles, one design. The system is planned, built, run and retired; the data it creates must stay readable and available until their own retention period ends, often years after the system has gone.
Two lifecycles, one design. The system is planned, built, run and retired; the data it creates must stay readable and available until their own retention period ends, often years after the system has gone.

Start from the process, not from the system

The usual order is to choose a system, configure it, and then write the procedures. That puts the data last. Designing for data integrity turns it round: describe the business process first, then how the data moves through it, and only then decide what the system must do.

Two pictures do most of the work. The first is a process map of the real activity, as it is done today and as it should be: who does what, where, with which equipment, and which decisions hang on the result. The second is a data flow diagram that follows each piece of data from its creation to its archive, showing every transfer between systems, every manual entry, calculation and copy, every place it is stored, and who can change it.

Both are now recommended in writing. The World Health Organization’s data integrity guideline (2021) recommends documenting data flows and data process maps to assess and control data integrity risks. PIC/S notes that a data flow map “may be useful in understanding the risks and vulnerabilities of computerised systems, particularly interfaced systems” (PI 041-1, §9.1.6). And the draft Annex 11 asks that requirements include “process maps and data flow diagrams” where relevant (§6.2).

The diagram is where the problems show up. Take a packaging line: a reject count travels from a sensor to a programmable logic controller (PLC), an operator panel, a historian (the database that stores process values over time) and a manufacturing execution system (MES) before it reaches the batch record. Each hop can lose, duplicate, round or re-time a value. Each hop is also somewhere a control can go.

Seven steps from the whiteboard to routine use. Each step leaves a document the next one uses; every later change goes back to the data flow diagram.
Seven steps from the whiteboard to routine use. Each step leaves a document the next one uses; every later change goes back to the data flow diagram.

Classify the data by the decision it supports

Not all data deserve the same effort, and the guidance says so openly. The effort “should be commensurate with the risk and impact of a data integrity failure” (MHRA 2018, §3.6), and WHO asks for data integrity risk assessments that consider data criticality (2021, §5.1).

The practical test is the decision the data supports. A value that releases a batch, confirms a stability result or closes a deviation is critical; a value used to plan maintenance is not. Intended use also decides what the original record is (for a system that creates electronic data, usually the electronic record, not its printout), and so what has to be protected, reviewed and kept.

Remove the risk before you control it

Once the weak points are on the diagram, the design choice follows a simple order. First remove the risk by changing the process. Then prevent it with a technical control. Only after that, detect it with a procedure, with training and behaviour supporting all three. A second-person check of a transcribed value is a detection control. Connecting the balance so that nobody transcribes anything is a design decision.

The guidance points the same way. The draft Annex 11 asks that critical data moved between systems go through “validated interfaces rather than on manual transcriptions” where possible (§10.2). WHO asks for processes designed “to avoid the unnecessary transcription of data” (2021, §9.3). MHRA lists synchronised clocks, and records available where the activity takes place so that nothing is jotted down informally and copied later (2018, §5.1).

Weak pointWhat goes wrongDesign control (prevent)Fallback if it cannot be designed out (detect)
Manual reading and typingWrong or selective values; no originalDirect capture: interface, barcode or connected printerSecond-person check against the original
Instrument with local storageFiles deleted or overwritten on the PCAutomatic transfer to a secured server; no local write access for usersRegular reconciliation of files against runs
Shared or generic accountsActions cannot be attributedIndividual accounts; rights by role; segregation of dutiesPeriodic review of accounts and rights
Unsynchronised clocksTimestamps out of sequenceOne time source; users cannot change the clockPeriodic clock check
Re-processing resultsTesting into complianceEvery version kept; reason required; results locked after reviewAudit trail review focused on reprocessing
Exports to spreadsheetsEditable copies used for decisionsReports built in the system; calculations validatedControlled templates checked against the source
Interfaces between systemsValues lost, duplicated, re-timed or convertedValidated interfaces with buffering and reconciliationInterface alarms reviewed every day
Printouts of electronic dataPaper treated as the original; electronic data lostElectronic record as the original; electronic signaturesProcedure linking each printout to its record
Where data integrity is lost, and the design answer. Illustrative weak points of laboratory and production data flows.

Write it into the requirements, then prove it

A design only exists once it is written where the supplier and the validation team will read it. PIC/S expects data management and integrity requirements to be considered at the first stages of procurement and written into the user or functional specifications, and GMP-critical equipment to be assessed for its data integrity controls before purchase (PI 041-1, §9.3). The draft Annex 11 lists data integrity among the requirements a specification must cover (§6.2).

A user requirements specification (URS) written this way carries three kinds of requirement. There is what the process needs, the functions. There is how the data must be protected along their lifecycle: access, audit trail, time stamps, signatures, storage, backup, archive. And there is how the system sits in its environment, for instance a terminal close enough to the line for entries to be made at the time of the activity. How to write requirements that drive the tests is covered in Writing a URS that actually drives the qualification.

Validation then tests the controls as well as the functions. Try to delete a result, change the clock, reprocess without a reason, sign for someone else. Every attempt that succeeds is a design gap found before it turns into an inspection finding. What has to travel with each value is covered in Metadata: the part of the record that makes the number mean something.

Plan the end at the start

The data usually outlive the system. EU GMP keeps batch documentation for one year after the batch expires or at least five years after its certification, whichever is longer (Chapter 4, §4.11), and some records far longer. The system that created them may be replaced more than once in that time. So before go-live, someone has to decide how long each record type is kept and who signs off its destruction.

Format comes next. A raw data file is useless without a version of the application that can open it, so the question is which format stays readable, and with which software. Then where and how the records are archived and protected; a backup is not an archive, and which backup for which system explains the difference.

Retirement needs a plan too: migrate the data with a verified migration, or keep a validated way of reading them, such as a virtual machine of the old application. And when a third party holds the data (a contract laboratory, a cloud provider), the regulated company is still the one answering for them.

Owners, not only administrators

Every data flow needs an owner who understands the process. That is usually a process or data owner in the business, not the IT system owner who keeps the platform running. PIC/S expects data governance to address data ownership throughout the lifecycle (PI 041-1, §5.2.1). The data owner decides who may create, change and delete, has the audit trail reviewed where it matters, and approves changes to the data flow.

In operation, keep the design honest

A design decays. Accounts pile up, a new instrument turns up with local storage, an interface gets patched, a spreadsheet quietly reappears on someone’s desktop. Three routines keep it honest.

Review access regularly: remove leavers and rights nobody uses, and check that nobody can both create and approve the same record. Review audit trails by risk, looking first at deletions, reprocessing, changes after review and entries at odd hours rather than reading every line. And put the data flow under change control, so that every new interface, instrument or report starts with an update to the data flow diagram.

The US Food and Drug Administration asks for the same mindset: firms should put in place “meaningful and effective strategies to manage their data integrity risks based on their process understanding and knowledge management” (Data integrity questions and answers, December 2018).

Ten questions for the design review

Before a system is bought or a change is approved, the review can be short.

  1. Is there a current data flow diagram, from creation to archive?
  2. Which data support a GMP decision, and where is their original record?
  3. Where is a value typed, copied or recalculated by hand, and can that step be removed?
  4. Does any instrument or PC keep data locally, and how do they reach a secured server?
  5. Does every user have an individual account, with rights matching the role?
  6. Are all clocks on one time source, out of users’ reach?
  7. Are the audit trails switched on, and is it clear who reviews what, and when?
  8. How are interfaces checked for lost, duplicated or converted values?
  9. How long is each record kept, in which format, and how will it be read after the system is retired?
  10. Who owns the data, including data held by a contract laboratory or a cloud provider?

Data integrity is cheapest on the whiteboard, before the system exists.

References

EUCALEXNotes from field experiencesTalk to us about this

EUCALEX

Have a project or a technical challenge?

Contact us: we will be pleased to discuss it with you, with no commitment.

Discuss your project with us

Stay informed

Receive new EUCALEX articles and technical insights by email.