The challenge

A hepatitis B screening and treatment study needed clinical, laboratory and follow-up data that already existed in hospital systems. Re-entering it would duplicate work and add errors, and the hospital's systems had to stay under local control.

Our approach

  • Designed the data flow with the hospital IT team: hospital records → local secure extraction zone → authenticated API → REDCap → quality and reconciliation checks.
  • Built a Python pipeline that keeps the field mapping in a separate, maintained file, so dictionary changes don't need code changes.
  • Added a dry run that compares incoming fields with the mapping and flags mismatches before any data is loaded.
  • Kept a snapshot of every extract, so each transfer can be traced back to what was received.

The outcome

Connectivity and extraction were proven against live test endpoints, and records are moving into controlled mapping and reconciliation. Hospital teams don't re-enter data, and local systems stay under local control.

Planning a multi-country study?

Tell us about your protocol, sites and systems, and we'll show you how we'd run the data.

Discuss a study