The scene
Viljandi has been live for eight months. Two wards record rounds, the lab runs its own analysers and sends specialised work to a partner in Tallinn, and the outpatient clinic has three months of visit notes. Nothing about the hospital's day is going to change today.
What changes is underneath. The platform is moving its storage from the engine it launched on to its own — the one that can answer the questions the old one could not: what shape was this record written under, convert it as it is read, export a tenant whole and put it back.
Elin, the deployment engineer who on-boarded them, is doing the move. Her contact at the hospital is the IT director, who has agreed to a Tuesday morning and has one question, asked twice: how will we know it all came across?
That question is the story.
Before: the report nobody has to trust
Elin runs the move in report-only mode first. It reads the tenant and writes down what it finds — how many of each kind of thing, how many carry a code of their own and how many were minted, what shape version each was written under. Nothing moves.
The report is not a reassurance; it is the thing the afterwards will be compared against. The IT director gets a copy. It says, among some hundreds of lines, that the hospital has 41 device definitions, 1,284 catalogue entries, 96 practitioners and rather a lot of observations.
She notices something in it: eleven catalogue entries carry minted codes rather than the international ones. That is not a fault — the platform mints a code where nothing authoritative exists — but it is worth knowing before rather than after, because those eleven are the ones a partner laboratory cannot match on. She raises it with the lab lead, who recognises them as local additions from March and agrees they should carry proper codes eventually. It goes on a list. The move proceeds.
During: it is allowed to be interrupted
The move runs. Partway through, the office loses power to the rack for four minutes — the sort of thing that is nobody's fault and happens on Tuesdays.
When it comes back, the move continues from where it stopped. It does not start again, and it does not double anything it had already carried across. Elin watches it finish, and the only trace of the interruption is in the log.
After: object by object, not row by row
The verification is the part the IT director actually cares about, and the part that only works because of a decision made long before this Tuesday: every object carries a code of its own, one that belongs to the thing rather than to the database it was sitting in.
So the check is not "there were 1,284 catalogue entries and there are 1,284 catalogue entries". It is: this entry, known by its own code, is present on the other side, and so is every other one. A count can match while the contents are wrong. A code-by-code check cannot.
Elin produces the comparison. Every object accounted for, each one identifiable as the thing it was. The eleven minted codes are still eleven minted codes — the move did not invent authority it did not have.
And the second half of the answer, which the IT director did not think to ask: the platform behaves exactly as it did on Monday. The same tests that prove the hospital's workflows — ordering, resulting, the ward round, the audit trail — pass against the new store with the same assertions and no special cases. The storage changed. Nothing else did.
The next morning
The lab sends an order to Tallinn. The partner quotes back the hospital's own order number, exactly as before, because that number was never the storage engine's to give.
Nobody at the hospital knows the move happened, which is the outcome.
What this story really demands
- A report before the move, in the operator's hands, that the afterwards is compared against — not a progress bar.
- A stable code per object, so verification is per object rather than per count, and so a partner's matching survives the move.
- Resumability, because a move long enough to matter is long enough to be interrupted.
- Behaviour proven unchanged, by the same tests with the same assertions against both stores — the claim "nothing else changed" is worth exactly as much as its evidence.
- Honesty about what was minted, because a synthetic code is a fine default and a poor secret.
Why this matters
A hospital's data outlives the software that wrote it, so a move is not an exceptional event but an eventual certainty — and the second one will be easier than the first only if the first is done in a way that leaves proof behind.
The alternative is the migration everybody has seen: a weekend, a frozen system, a count that matches, and a slow trickle of discoveries over the following month about things that did not come across correctly. That is not a technical failure. It is a failure to be able to answer the IT director's question, asked twice, on the Tuesday morning she asked it.