Migrating Device Vigilance Off a Legacy Complaint Stack Without Losing the Reporting Clock

The reporting clock is the one part of a vigilance system you cannot retry. When you move from a monolithic complaint database to a decoupled pipeline for intake, triage, eMDR generation and submission, judge every design choice by one test: does the awareness date stay correct, visible and owned when a neighbouring component is down? Any budget line that cannot be tied to that property should be cut first.

What the old stack got right

The legacy system was ugly, but it was consistent. Awareness date, reportability decision and submission status sat in the same row and changed in the same transaction, so a crash left the record either fully updated or untouched. Once intake, triage and submission become separate services, that consistency turns into a distributed problem, and you pay for it with an event log and a transactional outbox in every service that changes the state of a report. The trade-off is easy to measure: each stage can now fail, scale and be revalidated on its own, and the price is that you have to prove consistency yourself through reconciliation jobs, where the old database gave it to you for free. If your complaint volume never strained the monolith, that price buys you very little, and the honest budget case rests on the failure handling below.

The failure that justifies the spend

The failure that matters is not a crashed service. It is a submission that looks finished but isn't. The FDA electronic gateway acknowledges in stages, and a transport receipt says nothing about whether the report was actually loaded into the agency database. The legacy workflow covered this gap with someone watching an inbox. Naive automation makes it worse: it either marks the report sent on the first receipt, or it retries on timeout and creates duplicate reports that later have to be explained to the agency. The EU side has the same shape, because availability of the vigilance module and the fallback to national competent authority channels both have to be modelled as explicit states, not exceptions. The design that holds up is a persisted submission state machine where only a received acknowledgment can move a report forward, each report version carries an idempotency key, and an escalation timer fires when the final acknowledgment has not arrived within 48 hours. That timer is the single most defensible cost in the programme, because it turns a silent miss of the statutory deadline into a visible queue item while time remains to act.

The rule for automation boundaries

Any component that cannot prove its output reached the regulator must hand the report to a human queue with the remaining clock displayed, rather than retrying on its own.

The part that hurts

Running both systems in parallel is where the budget bleeds. Every reportable event gets triaged twice and compared, which by our estimate roughly doubles reviewer effort for one to two quarters. In return, you get the only evidence your validation package will accept that the new reportability logic matches the old decisions. Backfilling historical complaints hurts in a different way. By our estimate, a small single-digit percentage of legacy records will have awareness dates or product codes that the new schema rejects, and each one needs a documented human decision, not a mapping rule, because trend analysis inherits whatever you approve. Cut over intake first and submission last, so the riskiest component moves only after the state machine has proved itself against real acknowledgments. That leaves one decision open: keep the legacy system as a read-only archive for audits and keep paying its licence, or migrate its audit trail in full and take on a second validation effort to prove nothing was lost.

Why not cut over submission first, since that is where the manual effort is?

Submission is the only stage where an error reaches the regulator directly, so it should be the last to move. Intake and triage can run in parallel and be compared at no external cost, while a faulty submission path creates duplicate or missing reports that have to be corrected with the agency.

Back to DeviceVigilance · Domains

← Back to DeviceVigilance
Engineering & Architecture Brief

Migrating Device Vigilance Off a Legacy Complaint Stack Without Losing the Reporting Clock

The reporting clock is the one part of a vigilance system you cannot retry. When you move from a monolithic complaint database to a decoupled pipeline for intake, triage, eMDR generation and submission, judge every design choice by one test: does the awareness date stay correct, visible and owned when a neighbouring component is down? Any budget line that cannot be tied to that property should be cut first.

What the old stack got right

The legacy system was ugly, but it was consistent. Awareness date, reportability decision and submission status sat in the same row and changed in the same transaction, so a crash left the record either fully updated or untouched. Once intake, triage and submission become separate services, that consistency turns into a distributed problem, and you pay for it with an event log and a transactional outbox in every service that changes the state of a report. The trade-off is easy to measure: each stage can now fail, scale and be revalidated on its own, and the price is that you have to prove consistency yourself through reconciliation jobs, where the old database gave it to you for free. If your complaint volume never strained the monolith, that price buys you very little, and the honest budget case rests on the failure handling below.

The failure that justifies the spend

The failure that matters is not a crashed service. It is a submission that looks finished but isn't. The FDA electronic gateway acknowledges in stages, and a transport receipt says nothing about whether the report was actually loaded into the agency database. The legacy workflow covered this gap with someone watching an inbox. Naive automation makes it worse: it either marks the report sent on the first receipt, or it retries on timeout and creates duplicate reports that later have to be explained to the agency. The EU side has the same shape, because availability of the vigilance module and the fallback to national competent authority channels both have to be modelled as explicit states, not exceptions. The design that holds up is a persisted submission state machine where only a received acknowledgment can move a report forward, each report version carries an idempotency key, and an escalation timer fires when the final acknowledgment has not arrived within 48 hours. That timer is the single most defensible cost in the programme, because it turns a silent miss of the statutory deadline into a visible queue item while time remains to act.

The rule for automation boundaries

Any component that cannot prove its output reached the regulator must hand the report to a human queue with the remaining clock displayed, rather than retrying on its own.

The part that hurts

Running both systems in parallel is where the budget bleeds. Every reportable event gets triaged twice and compared, which by our estimate roughly doubles reviewer effort for one to two quarters. In return, you get the only evidence your validation package will accept that the new reportability logic matches the old decisions. Backfilling historical complaints hurts in a different way. By our estimate, a small single-digit percentage of legacy records will have awareness dates or product codes that the new schema rejects, and each one needs a documented human decision, not a mapping rule, because trend analysis inherits whatever you approve. Cut over intake first and submission last, so the riskiest component moves only after the state machine has proved itself against real acknowledgments. That leaves one decision open: keep the legacy system as a read-only archive for audits and keep paying its licence, or migrate its audit trail in full and take on a second validation effort to prove nothing was lost.

Technical FAQ: Why not cut over submission first, since that is where the manual effort is?

Submission is the only stage where an error reaches the regulator directly, so it should be the last to move. Intake and triage can run in parallel and be compared at no external cost, while a faulty submission path creates duplicate or missing reports that have to be corrected with the agency.

Related Architecture Specifications (HEALTHVIGILANCE): materiovigilance.com · technovigilance.com · clinicalinfra.com

More Technical Articles on devicevigilance.com

Automated Root-Cause Analysis of Accelerated Battery Depletion in Pacemakers →Field Telemetry Monitoring Preventing Catastrophic Radiotherapy Overdosage →Migrating a Legacy Vigilance Stack Without Losing the Reporting Clock →Moving Device Vigilance Off the Nightly Batch Without Losing the Reporting Clock →