Data quality and health database preparation
Before analysing a database, you need to know what it contains and what you can trust
What it is
A quality audit of a health database and its preparation for reproducible analysis: assessment of consistency and completeness, detection of implausible values, review of outliers, study of missing data and harmonisation of different sources into a documented, traceable analytical structure.
It is the starting point that conditions the validity of everything that follows. The work is not just cleaning: it is recording what the database contains, where its limits lie and what was decided in each case.
Objectives
- Assess the quality of the database before drawing any conclusion from it.
- Detect inconsistencies and implausible values, including those that only become implausible when variables are cross-checked.
- Assess outliers according to the internal logic of the dataset and define a documented handling strategy, not one applied by default.
- Study the pattern of missing data and define a handling strategy suited to the type of variable and the missingness mechanism.
- Harmonise heterogeneous sources into a coherent, documented and traceable analytical structure.
Quality and plausibility audit
- Assessment of completeness and internal consistency: plausible ranges, coherence between related fields, duplicates.
- Detection of conditional implausibility: a value that is admissible for one variable stops being so in the light of another (e.g. a BMI that is possible in an adult but impossible at a given age, or dates that are inconsistent with each other).
- Documentation of the data dictionary, with each variable's definition, coding and rules, and of traceability from the raw database to the analytical database.
Outlier assessment and handling
- Identification of outliers according to the actual distribution of the dataset, not generic thresholds applied by default.
- A strategy tailored to the case: retention, review, justified exclusion, winsorisation or advanced imputation when the data and the analysis justify it.
- A distinction between the outlier that is a recording error and the one that is a legitimate extreme value, with the decision documented.
Missing data and missingness patterns
- Assessment of how plausible different missingness mechanisms are (MCAR, MAR, MNAR) and whether the missingness itself may be informative.
- A missing data strategy defined by the nature of the data and the planned analysis: complete-case analysis, missingness indicators, sensitivity analysis or multiple imputation where justified.
- Documentation of the assumptions, without replacing the clinical decision on which data can be recovered.
Harmonisation and integration
- Merging databases with different codings, formats or vocabularies into a common structure.
- Record linkage across sources using documented deterministic or probabilistic rules.
- Standardisation of variables to a consistent framework, with the mappings recorded.
What it is for
- Know, before analysing, what the database contains, where its limits lie and which data cleaning decisions have been made.
- Turn several scattered sources, such as registries, encounters, laboratory or follow-up data, into a single coherent analytical database.
- Reach the analysis with a documented, reproducible database, so that any later result can be traced back to the source data.
A flawless analysis of an unaudited database can produce a result that is convincing and wrong.
The quality of any analysis is capped by the quality of the database behind it. Undefined variables, values that are possible separately but impossible together, outliers handled carelessly or uncharacterised missingness propagate silently all the way to the final result. Auditing and preparing the database is not a preliminary formality: it is the part that decides whether the analysis means anything.
We catch what a range check misses
Checking that each variable falls within its range is the baseline. We also detect conditional implausibility: the value that is correct in its column but impossible when cross-checked against age, sex or date. That is where the errors that survive a superficial review hide.
Outliers assessed from the data, not from a template
An extreme value may be a recording error or the most relevant finding in the study. Telling them apart means looking at the internal logic of the dataset, not applying a generic threshold. We choose the treatment (from the classic criterion to winsorisation or advanced imputation) according to what the data and the analysis justify.
We study why missing data are missing
Most workflows stop at how much is missing. We study the pattern of missingness and whether that missingness is informative in itself, because a value missing not at random can bias the analysis even when standard techniques are applied. The missing data strategy comes out of that study, not the other way round.
Several sources, one analytical database
Clinical registries, laboratory systems, follow-up data and administrative databases rarely speak the same language. We harmonise codings and formats and integrate them into a single structure, with the data dictionary and mappings documented as an asset for your team.
What working with us looks like
We apply our D²I (Data to Insights) methodology to every service. A structured, iterative and transparent process that turns complex data into actionable knowledge.
01
Kick-off and problem definition
We meet with you to understand the clinical problem, the data available and the objectives of the project. We agree on deliverables, timelines and communication channels, and we sign whatever confidentiality agreements you need to protect your data.
02
Data review and preparation
We assess the quality of your data, identify inconsistencies and limitations, and structure the data for analysis. If critical information is missing, we tell you before going any further. We document every cleaning decision so that the process is traceable and reproducible. This service is, in itself, an exhaustive phase 02: we audit completeness, consistency and conditional plausibility, handle outliers according to the actual distribution, study the pattern of missing data and harmonise the sources into a single, traceable analytical database.
03
Analysis and modelling
We apply the statistical methodology that fits your questions. We work iteratively: we share preliminary results with you, discuss the findings and adjust the approach where needed. We do not work in the dark until the final delivery. Here the analysis is diagnostic before it is inferential: we quantify the quality of the database, assess missingness patterns to define the missing data strategy and leave the preparation pipeline under version control, so that it can be reproduced on future updates of the database.
04
Communicating results
We turn the findings into the format you need: a technical report, tables and figures for publication, an interactive dashboard or an executive presentation. We always include the clinical interpretation, not just the figures.
05
Impact review session
30 days after delivery we meet with you again for a 60-minute strategy session. By then you have had time to present the results internally, the real implementation questions have come up and you can assess the impact of the work with some perspective. We answer your questions, adjust interpretations where necessary and agree together on the way forward.
This is our general process. If you want to understand how we apply it technically to each type of analysis, see our full D²I methodology.
Have a data project on your hands?
Tell us about your case and we will work out together how to approach it.
Book a sessionFrequently asked questions
Why do I need to audit and prepare the database before analysing it if the data have already been collected?
Because the quality of any analysis is capped by the quality of the database behind it, and a flawless analysis of an unaudited database can produce a result that is convincing and wrong. This applies to any study that starts from data already collected, such as registries, encounters, laboratory or follow-up data, before conclusions are drawn. Undefined variables, values that are possible separately but impossible together, outliers handled carelessly or uncharacterised missingness propagate silently to the final result, where they can no longer be told apart from sound data. Auditing and preparing the database is not a preliminary formality: it is the phase that decides whether the analysis means anything. The work also leaves the database documented and traceable, so that any later result can be traced back to the source data. It is the difference between analysing on firm ground and analysing on untested assumptions.
What exactly do you do that a basic range check would not catch?
As well as checking that each variable is within its range, we detect conditional implausibility: a value that is admissible in its column but incompatible or clinically implausible when cross-checked against another. This applies to health databases, where the most persistent errors are not the ones that show up in a single variable but the ones that only emerge when fields are related to each other. For example, a BMI that is possible in an adult but impossible at a given age, or dates that are valid separately but inconsistent with each other. The work covers completeness and internal consistency, coherence between related fields, duplicates, and documentation of the data dictionary, with each variable's definition, coding and rules, together with traceability from the raw database to the analytical database. It is there, where variables cross, that the inconsistencies that survive a superficial review tend to appear. Checking ranges is the minimum; conditional implausibility is what sets a real audit apart.
I have extreme values in my data. Should we remove them?
Not by default: an extreme value may be a recording error or the most relevant finding in the study, and telling them apart means looking at the internal logic of the dataset, not applying a generic threshold. This applies whenever outliers appear, where the automatic decision, removing whatever falls outside a standard cut-off, can erase errors and legitimate information alike. Outliers are identified according to the actual distribution of the dataset, and the strategy is tailored to the case: retention, review, justified exclusion, winsorisation or advanced imputation when the value is judged unreliable and the analysis justifies it. The key distinction is between the outlier that is a recording error and the one that is a legitimate extreme value, and the decision is documented either way. Removing an outlier without understanding where it comes from turns an analytical decision into cosmetic cleaning. What you receive is a justified, traceable treatment, not a template-driven trim.
How are missing data handled? Do you just "fill them in"?
They are not simply "filled in": first we study why what is missing is missing, and the handling strategy comes out of that study, not the other way round. This applies to almost any real database, where dropout, missed visits or incomplete fields are the norm, not the exception. We assess how plausible different missingness mechanisms are (MCAR, MAR, MNAR) and whether the missingness itself may be informative, because data missing not at random can bias the analysis if they are handled with techniques that do not respect that mechanism. Depending on the nature of the data and the planned analysis, the strategy may be complete-case analysis, missingness indicators, sensitivity analysis or multiple imputation where justified. Imputation is a documented technique with explicit assumptions, not an invention of data the client did not collect, and it does not replace the clinical decision on which data can be recovered. Studying the pattern of missingness is what stops a standard technique from masking a bias instead of correcting it.
My data are spread across different sources (registry, laboratory, follow-up). Can you bring them together?
Yes, when the sources can be linked on defensible criteria: harmonisation and integration into a single analytical database are a core part of the data quality and health database preparation service. This applies when the data sit in systems that rarely speak the same language: clinical registries, laboratory systems, follow-up data and administrative databases with different codings, formats or vocabularies. The work merges those databases into a common structure, links records across sources using documented deterministic or probabilistic rules, and standardises variables to a consistent framework, with the mappings recorded. The result is a coherent analytical database with its data dictionary and mappings, which remains an asset for your team, not an opaque merge that cannot be audited afterwards. What determines the scope is the quality of the identifiers that allow the sources to be linked. When the link between records is ambiguous, that limitation is documented and handled explicitly.
Does preparing and auditing the database also include its statistical analysis?
No: the data quality and health database preparation service leaves the database audited, prepared and documented; the statistical analysis that answers the research question is the next phase and is covered by its own service. The boundary is worth clarifying because preparing and analysing are two different jobs, even though they are linked. Here the analysis is diagnostic before it is inferential: the quality of the database is quantified, missingness and outlier patterns are characterised, and the preparation pipeline is left under version control and reproducible on future updates. From that prepared database, biostatistical analysis, a predictive model, clinical registry analysis, RWE or any other downstream analysis follows as a later phase, with the advantage of starting from reliable, traceable data. The two can be commissioned in sequence, preparation first and then analysis, or separately if the client only needs the database put in order. Keeping the phases separate protects validity: an analysis of an unaudited database carries forward the issues this phase resolves.
What do you bring, and what do I decide about my own data?
In data quality and health database preparation, the client collects, owns and decides on the original data; the service audits, characterises, treats and documents. This applies to the whole service, because the boundary protects both the client and the validity of the work. The service identifies inconsistencies, assesses outliers and missingness, proposes and applies treatment strategies and documents everything. But decisions that depend on clinical knowledge or context, such as which value can be recovered, which record is valid or which inclusion criterion applies, are taken by whoever knows the data and where they come from. Imputation, exclusion and harmonisation are applied as justified, traceable techniques, not as silent changes to the client's database. The client keeps the raw database at all times, along with traceability to the analytical one. What you receive is a better-characterised, documented database with every decision in plain view, not an altered version you have to accept blindly.
What do you deliver at the end, and why does it matter that it is reproducible?
We deliver the prepared analytical database together with the version-controlled preparation pipeline, the data dictionary, the log of data cleaning decisions and the traceability from the raw database to the final one. This applies to anyone who needs their later analysis to be defensible, because a result is only as auditable as the preparation behind it. Reproducibility matters for two concrete reasons. It lets any conclusion be traced back to the source data and the decision that treated them, and it lets the preparation be re-run on an updated version of the database without redoing the work by hand. The documented pipeline turns data cleaning into a reusable asset for the team, not a series of one-off adjustments that cannot be repeated. What you receive is not just a clean database, but the full trail of how it was reached, which is what makes it defensible to reviewers, committees or internal audits.
Shall we talk?
Tell us what you are working on and we will give you a straight answer on how we can help.