Why a phased cutover and dual write suit a Medplum adoption
A clinical or operational system that is still in production cannot usually be switched to Medplum in one step without risking an outage, lost writes or charts that disagree. A phased cutover assigns write authority to one store at a time, keeps the legacy store running as a fallback, and moves reads to Medplum only after measured parity between the two. Dual write and backfill are the mechanics that let both stores stay current while that happens, so each phase can be reversed without losing clinical data.
Effort depends less on a fixed duration than on the shape of the legacy path. The main drivers are the number of interfaces feeding the legacy system, the Bots and Subscriptions that currently react to its events, the volume of reconciliation work needed to prove parity, and how many phases the organization can actually run and staff. Ask any partner to size the work from an inventory of those four items, not from a generic timeline. Before the first phase, confirm which systems are authoritative for each data domain, because that decision sets every later step.
This page assumes a documented import path exists: a source export, a mapping, and a loader that can write into Medplum repeatably. How to build that path is covered in the sibling topics on planning, FHIR mapping, pipelines, load order and validation, and this page starts from the point where those pieces are ready to run in production alongside the legacy store.
Which legacy write paths map cleanly to Medplum and which do not
This table compares the legacy capabilities that usually sit in front of production writes with their Medplum equivalents and marks which ones need redesign before dual write or cutover. Read each row as a question to answer in your own environment, because a mapping that works on paper often breaks on conditional logic, ordering or error handling.
| Legacy capability | Medplum equivalent | Maps cleanly or needs redesign |
|---|---|---|
| REST or FHIR endpoints that accept writes | FHIR R4 API with conditional create and conditional update, plus transaction bundles | Maps cleanly for resource shape. Confirm search parameters your callers rely on and how they handle version conflicts. |
| HL7 v2 inbound interfaces (ADT, ORU, ORM) | Medplum HL7 server and Bots, with the Medplum Agent for on-premises connections | Needs redesign. Acknowledgment modes, segment-to-resource mapping and retry behavior must be rebuilt and tested per interface. |
| Scheduled jobs that write or reconcile records | Bots triggered on a schedule or run from your own orchestrator such as Apache Airflow | Needs redesign. Confirm job timing, overlap rules and whether a job assumes a single writer. |
| Database triggers or stored procedures that fire on write | Subscriptions that notify on resource changes, executed by Bots | Needs redesign. Triggers run inside the database transaction; Subscriptions are asynchronous and can fire after the write completes or more than once. |
| Event notifications to downstream systems | Medplum Subscriptions and Bot-driven outbound messages | Needs redesign. Confirm delivery guarantees, ordering and duplicate handling with your downstream consumers before dual write starts. |
| Row-level or role-based access rules | Medplum access policies, projects and SMART scopes | Needs redesign. Access models rarely translate one to one; test each role against expected reads and writes. |
| Audit trails written by the legacy database or application | AuditEvent resources and Medplum's audit logging | Confirm. Check that the fields your auditors require are captured, and keep the legacy audit store in parallel through validation. |
Choosing a write authority model for each phase
In this model the legacy system remains the only place where clinicians and staff create or change records. Medplum receives a copy of each change, so it can be tested against real traffic while the legacy store stays authoritative. The team builds a change capture path from the legacy system, a replay process that writes into Medplum, and a reconciliation job that compares the two stores. This is usually the lowest-risk starting point because a failed copy never blocks a clinician.
- Change capture: Decide whether changes come from database triggers, an application event feed, or an interface engine, and confirm the legacy system can emit them reliably.
- Idempotent replay: Write copies with conditional updates so a retried message does not create duplicates.
- Divergence risk: Medplum lags or misses changes silently unless reconciliation runs continuously, so drift can build up unnoticed.
- Read path: Users still read from legacy, so Medplum data is not yet exercised by live workflows.
- Best fit: Teams that need to prove data fidelity and load performance before any user depends on Medplum.
Confirm with your legacy vendor whether change feeds are supported and how deletes and merges are represented.
In this model each resource type, clinical domain or site has exactly one system of record at a time. Medplum takes writes for a defined subset, such as Patient and Observation for one clinic, while legacy keeps everything else. The main design task is the ownership matrix: every resource type and site needs a named authority, and the boundary between owners must be explicit. Cross-boundary references are where most failures occur.
- Ownership matrix: Record which system owns each resource type and site, and who approves a change to that assignment.
- Reference bridging: Build identifier mapping so a Medplum resource can point to a legacy-owned record and the reverse.
- Routing: Direct user actions and interface messages to the correct owner, including for shared screens.
- Divergence risk: Two systems can edit the same patient through different owners, so the boundary must be enforced rather than documented.
- Best fit: Organizations with separable sites or domains where a partial move reduces exposure.
Ask whether your workflows can be cleanly partitioned before committing to this model, because shared patient charts often cross the line.
In this model Medplum becomes the single write authority, and the legacy system is kept in read-only mode as a fallback. Users create and change records in Medplum, and the legacy store stops accepting writes. This removes the two-way divergence problem but concentrates risk in Medplum, so the team must be confident in its operations. The legacy system remains available to read and, if needed, to roll back to.
- Write freeze: Build a controlled switch that disables writes in legacy and confirms that no integration still writes to it.
- Fallback reads: Keep legacy readable for a defined period and document what a clinician can and cannot see there.
- Back-fill check: Confirm every change made before the switch is present in Medplum before writes are accepted.
- Divergence risk: Changes made after the switch exist only in Medplum, so rolling back means deciding how to replay them.
- Best fit: Teams that have passed earlier validation and can operate Medplum with confidence.
Decide in advance how long the fallback remains readable, since that choice governs when the legacy store can be retired.
Documented APIs and paths for backfill and dual write
Medplum documents several ways to move data in, keep two stores in step and react to changes. Each path has a different role in backfill, dual write and interface cutover, so choose them per phase rather than one tool for everything.
FHIR R4 REST API for writes
The FHIR R4 REST API is the primary write path for both backfill and dual write. Conditional create and conditional update let a loader retry the same resource without creating duplicates, provided the search criteria match a stable source identifier. Design the identifier scheme before the first write, because changing it later means re-keying every record already loaded. Confirm the current conditional update behavior in the Medplum API documentation for your version.
Self-hosting docsTransaction and batch bundles
Bundles group several writes into one request. A transaction bundle succeeds or fails as a unit, which suits a parent encounter and its child observations, while a batch bundle processes entries independently and reports each result. Use transactions only for resources that must stay consistent together. Confirm the current bundle size and transaction limits in the Medplum self-hosting and upgrade documentation before designing batch sizes for a cutover load.
Bulk FHIR export from the source
Where the legacy FHIR server supports Bulk FHIR export, it can supply the backfill file set without paging through search results. The export is only a source-side option, so confirm with the source vendor which resource types, ordering and output formats it provides. Record the export timestamp, because records changed after it must be captured by dual write or a delta pass before switching reads.
Subscriptions for change capture
Medplum Subscriptions notify a receiver when resources in Medplum are created or updated, which is how a legacy system or downstream consumer can stay current during the dual write window. Each subscription needs a receiver that handles retries and duplicate notifications, since delivery must not be treated as exactly once. Test subscriptions against the write patterns your loaders produce, and confirm delivery behavior for your deployment.
Bots for server-side logic
Bots run server-side code triggered inside Medplum, which makes them the place to enforce write rules, derive fields or mirror changes back to the legacy store during the transition. A Bot that writes to the legacy system can create loops with Subscriptions, so each side needs a clear origin marker. Keep Bot secrets, execution backend and deployment under the same change control as the loaders, and check the Bots documentation for your version.
Medplum Agent and HL7 interface traffic
Interface traffic from HL7 v2 feeds does not travel through the REST API. The Medplum Agent and HL7 client and server carry those messages, so each interface needs its own cutover decision, acknowledgment mode and parallel run window. Inventory every feed before dual write begins, because an unlisted interface will keep writing to the legacy store after reads have moved. Confirm agent and HL7 requirements in the Medplum documentation for your deployment.
How dual write and backfill keep both stores consistent
The dual write has to live in one of three places, and the choice decides how much of the failure handling you own. In the application layer, the service that saves a record writes to the legacy store and to Medplum in the same request path. In the interface engine, the channel that already fans out HL7 or API traffic adds a Medplum destination. In an outbox pattern, the legacy system records each change in a table or queue, and a separate forwarder reads it and writes to Medplum. The outbox is usually the safest option when the legacy store is a database you can change, because the change record and the business write commit together. Whichever you pick, every Medplum write should be idempotent. Use a stable identifier from the source system, carried in identifier with a system you control, and write with a conditional update (an If-None-Exist or ifMatch style request) so a retried message updates the same resource instead of creating a duplicate. Confirm the exact conditional update syntax against the Medplum FHIR API documentation for your version before you build on it.
Backfill and live writes will touch the same resources, so define the winner before the first load runs. Record a version or source timestamp on every write, and set one rule per resource type: either the write with the higher source version wins, or the most recent source modification wins. Either way, a backfill row must never overwrite a newer live write, so the backfill should read the current Medplum meta.versionId or compare the source timestamp before it updates. Run the backfill in batches that are small enough to restart from a checkpoint, and keep the historical load on a path separate from the live path so a slow load does not hold up patient-facing writes. The load mechanics are covered in the pipeline sections, but the conflict rule belongs to this design and must be agreed with the clinical data owner.
A failed dual write must be queued and retried, never dropped. Store each failed write with its identifier, payload reference, error and attempt count, then replay it until Medplum accepts it or a person resolves it. Reconciliation finds what the retry queue misses, but it runs later and should not be the only safety net. Test the chosen approach with fault injection before any production traffic moves: stop the Medplum server during writes, return errors from the database tier, duplicate messages, reorder them, and kill the backfill mid-batch. Check that counts converge, that no record is duplicated, and that the older value never replaces the newer one. Record the results, because the cutover decision in the next phases depends on them.
Sequencing the parallel run, read switch and cutover
This sequence moves write authority from the legacy store to Medplum one resource group and one cohort at a time, so each step has a measured exit before the next begins. The result is a legacy store that is read-only and archived, with Medplum holding every write path.
Inventory every write path and side effect
Your integration, data engineering and clinical application owners list every process that creates, updates or deletes records in the legacy store, including batch jobs, interface feeds, user screens and reports that write back. For each path, record the side effects it triggers, such as outbound HL7 messages, notifications, billing events and downstream sync jobs. The step is done when every path has an owner and a named replacement or a documented decision to retire it, reviewed with the business owner of each resource group.
Stand up a matching non-production Medplum environment
Deploy a non-production Medplum environment that matches the target production configuration in server version, PostgreSQL and Redis setup, authentication, access policies and Subscription and Bot settings. Confirm the version and deployment method against the Medplum self-hosting documentation before you begin, and record the exact version so later upgrades can be planned against it. The step is done when a smoke test of each write path succeeds in this environment and the configuration is under version control.
Run backfill and shadow dual write with reconciliation
Load the historical data with your restartable pipeline, then mirror live writes from the legacy store into Medplum in shadow mode. Legacy remains the system of record, and Medplum writes are compared against it by a reconciliation job that reports mismatched counts, missing references and field-level differences. Set the exit criteria for this phase in writing, including the mismatch categories you will accept and the ones that block progress. The step is done when reconciliation stays inside those criteria for the agreed observation window.
Switch reads for one cohort or site
Route read traffic for a single cohort, site or user group to Medplum while writes still go to legacy, so read errors surface on a limited population. Clinical and operational users confirm that the data they see matches what they expect, and the team watches query latency and error rates against the baseline. Define the rollback trigger for this read switch before it starts, so the decision to revert is not made under pressure. The step is done when the cohort has used Medplum reads through its exit criteria without an open defect.
Move write authority per resource group
Transfer write authority for one resource group at a time, starting with groups that have few dependencies, and keep the reverse feed in place so legacy consumers still receive updates. Confirm that Subscriptions, Bots and outbound interfaces fire exactly once for each write after the move, and that no duplicate messages reach downstream systems. Load order matters here, so groups with references are moved after the resources they point to. The step is done when each group has run under Medplum write authority through its exit criteria and its side effects are verified.
Run a parallel period with defined comparison
After every resource group has moved, keep the legacy store running in read-only comparison mode for a defined parallel period. Compare Medplum and legacy outputs on the reports, extracts and interface messages that users and partners depend on, and log every difference with an owner and disposition. Confirm the exit criteria in advance, since the length of the period depends on your data volume, change rate and regulatory obligations and is not a fixed figure. The step is done when the comparison shows no unexplained differences and the business owners sign off.
Retire legacy writes and keep read-only archive access
Disable all remaining write paths to the legacy store, remove its scheduled jobs and interface feeds, and revoke write credentials. Keep the legacy store available for read-only archive access under documented access controls, retention rules and audit logging that your compliance team has reviewed. Confirm with your records and compliance owners which retention obligations apply before you decide how long the archive stays online. The step is done when a write attempt against legacy is rejected, all side effects originate from Medplum, and the archive access procedure is documented.
Handling Subscription and Bot side effects during cutover
The main risk in a phased cutover is that a Medplum Subscription or Bot fires on a resource that was never meant to trigger work in the new system. During dual write and backfill, every write that lands in Medplum can notify a subscriber, run a Bot, or start a message, order or billing action. If the legacy system already produced that action, the patient hears twice, a refill is ordered twice, or a claim is submitted twice. Treat side effects as a separate inventory item before the first backfill batch runs, listing each Subscription and Bot, what it does downstream, and which phase it belongs to.
Use a gate that the pipeline controls rather than relying on people to remember. One common pattern is to stamp migrated and dual-written resources with a tag or meta value that your Subscription criteria and Bot logic check before acting, so backfill traffic is skipped by default and only live writes proceed. Verify that the tag reaches the Subscription criteria you actually deploy, because a tag set in the loader but absent from the criteria does nothing. Where a Bot must run during the transition, make its execution conditional on the write authority of the current phase, and record each suppressed event so the team can later confirm nothing was silently dropped.
Disable the legacy side of every Bot-equivalent behavior before Medplum takes write authority for that resource type. Interface engine routes, scheduled jobs and downstream listeners that duplicate a Medplum Bot must be paused in a named change record, or the same event executes in both systems. Confirm Subscription behavior in your exact Medplum version rather than from memory, using the release notes and the Medplum upgrading guide for your version path, and test a canary resource in a non-production project to see which events fire, how often retries occur, and what the payload contains. Bot execution, secrets and CI/CD are covered in the Medplum Bots and automation group.
Rollback triggers that justify reverting write authority
Each phase of a cutover needs signals that tell the team to stop trusting Medplum with a given write path. The cards below cover the signals most likely to appear during dual write and read switching, what to do when they fire, and who makes that call. Every threshold is set by your team and agreed in writing before the phase starts, not during an incident.
Reconciliation mismatch rate
Track the share of records where the legacy store and Medplum disagree after each reconciliation run, broken down by resource type and source feed. When the rate crosses the agreed threshold for two consecutive runs, freeze the phase and stop advancing write authority. The migration lead decides on the pause, and the data owner for each resource type confirms whether the mismatch is a mapping defect or a true divergence before any rollback.
Dual-write queue backlog
Failed or unacknowledged writes to the secondary store accumulate in a retry queue. Set a maximum queue depth and a maximum age for any entry. When either limit is exceeded, the integration owner should pause new writes to the secondary path and keep the primary as the authority until the backlog is drained and replayed. Confirm with your engineers how the queue is persisted, since an in-memory queue lost on restart is a silent data gap.
Duplicate Subscription and Bot effects
During dual write, a single clinical event can fire a Subscription or Bot twice, for example once from the legacy interface and once from a replayed Medplum write. Look for duplicate messages sent to downstream systems, repeated notifications to clinicians, or doubled charge or task creation. Disable the affected Bot or Subscription at once, and let the integration owner decide whether to reverse the side effects. Confirm the idempotency behavior of each Bot in your own environment before go-live.
Read latency or error regressions
When reads move to Medplum, watch response time percentiles and error rates for the search and read endpoints the applications use. A sustained regression beyond the agreed limit points to capacity, index, or query-pattern issues rather than data problems. The platform engineering lead should decide whether to route reads back to the legacy store, scale the database, or tune indexes. Compare results with the load measured in rehearsal, not with an idle system.
Clinical discrepancy reports
Clinical users often notice a wrong allergy, a missing medication, or a misattributed encounter before any automated check does. Route each report to a named clinical reviewer, sample the affected charts, and compare them against both stores. If the sample review finds errors above the agreed tolerance, the clinical safety lead decides whether to return read and write authority to the legacy store. Record each report so that patterns can be traced to a mapping rule or load step.
Access policy divergence
A record that is visible to a user in one system but hidden in the other is both a privacy incident and a clinical risk. Compare access policies, project membership, and SMART scopes against the legacy role model before each phase, and check a sample of restricted patients after each switch. If divergence appears, the security officer should suspend the affected client or user path and decide whether a rollback or an access fix comes first. Confirm the exact policy behavior with the Medplum access control documentation for your version.
Medplum authentication docsWhat drives the effort and timeline of a phased cutover
This table lists the factors that most change the cost and calendar of a phased Medplum cutover, and whether each one raises cost, lengthens the schedule, or both. Read each row against your own inventory of write paths, Bots, Subscriptions and legacy feeds, then ask the partner to price each driver separately in the written scope.
| Driver | Effect on cost and timeline | What to ask for in a quote |
|---|---|---|
| Number of write paths and interfaces | Raises cost and lengthens duration. Each system that writes to a resource type needs its own dual-write logic, failure handling and parallel-run checks. | A list of every write path per resource type, with the owner and the planned authority change for each phase. |
| Bots and Subscriptions with side effects | Raises cost and lengthens duration. Each Bot or Subscription that fires on create or update must be disabled, replayed or made idempotent during dual write. | An inventory of Bots and Subscriptions with the side effects each one triggers and the phase in which it is switched on. |
| Volume of historical data and measured load throughput | Lengthens duration. Backfill speed sets how long a dual-write window must stay open, and large datasets can extend post-load work. | Throughput measured on a representative load in your own environment, and a backfill schedule derived from that measurement. |
| Number of phases and cohorts | Raises cost and lengthens duration. Each phase needs its own exit criteria, rollback plan and sign-off, and cohort splits add routing rules. | The proposed phase count, the cohort definition for each, and the exit criteria that move work to the next phase. |
| Reconciliation depth | Raises cost and lengthens duration. Count checks are quick, while semantic and whole-chart review needs clinical reviewers and repeated runs. | The checks included in scope, the sample sizes agreed in writing, and who performs and signs each check. |
| Identity and access policy parity | Raises cost and lengthens duration. Access policies, SMART scopes and client credentials must match the legacy model before users can read from Medplum. | A parity matrix mapping each legacy role to Medplum access policies, and a test plan covering denied access as well as granted access. |
| Team availability for clinical sign-off | Lengthens duration. Read cutover and rollback decisions wait on clinical owners, so their calendar often sets the pace. | Named sign-off owners, their time commitment per phase, and the escalation path when a sign-off is delayed. |
| Number of legacy systems feeding the same resource types | Raises cost and lengthens duration. Several sources writing to one FHIR resource type need precedence rules and conflict handling before dual write starts. | The authority matrix showing which source wins for each field, and the conflict cases the partner will test. |
What usually goes wrong during a dual write cutover
Dual write cutovers rarely fail in one dramatic step. They fail through quiet divergence, duplicated side effects and decisions made before anyone checked the data. The cards below name the risks that most often appear when production traffic moves to Medplum in phases, with a prevention step for each.
Silent divergence between stores
When the legacy system and Medplum both accept writes, a failed secondary write can leave the two stores disagreeing without any error reaching the user. Each write path should record its outcome in a reconciliation log, and a scheduled comparison should count resources by type and by source identifier in both stores. Check that a failed mirror write creates a retry item rather than being dropped. Confirm the divergence threshold that pauses the next phase before the first production write is mirrored.
Duplicate side effects from Bots and Subscriptions
A Subscription or Bot that fires on every Medplum write can send a notification, create a task or call an external system once for each mirrored write, and the backfill can trigger it again for historical data. Before enabling dual write, list every Subscription and Bot, mark which ones are allowed to run during migration, and gate the rest behind a flag. Replays from the backfill should be excluded from outbound effects. Test each gated path in a staging project with a counter on the external system.
Upgrade guideIdentifier mismatches creating duplicate patients
If the legacy system's medical record number is not carried into Medplum as a stable identifier, the same person can be created twice once both systems take registrations. Patients entered during dual write may have no matching identifier in the other store, so the backfill matches them incorrectly. Store the legacy identifier with its system URI on every mirrored Patient, and run the matching rules from the migration plan against both directions. Ask the source system owner which identifiers are reused or reassigned.
Backfill overwriting newer live writes
A backfill that copies a legacy record into Medplum after a clinician has already edited that record in Medplum can overwrite the newer value with older data. Use conditional updates keyed on the source identifier and compare the source last-modified time with the Medplum version before writing. Records changed during the backfill window should be queued for a second pass rather than applied directly. Ask the vendor or your own engineers to confirm how the loader handles version conflicts before the first full run.
Skipped rollback drills
Teams often document a rollback path but never run it against production-sized data, so the first real rollback is also the first test. A drill should flip read authority back to the legacy store, confirm that writes made in Medplum during the window are preserved or exported, and time how long the switch takes. Record the rollback triggers and the people authorized to call them. Repeat the drill after each phase change, since the data written during each phase differs.
Retiring the legacy store too early
Turning off the legacy system once reads move to Medplum can remove the only copy of audit trails, retention-bound records or data that the mapping did not carry over. Before retirement, confirm with compliance and records owners which data must be kept, in what form and for how long, and whether the legacy system's audit logs must be exported. Keep the legacy store in read-only mode through an agreed period and document where each retained dataset lives. The retention schedule should be signed off before the decommission date is set.
Medplum compliance docsRetiring the legacy store without losing records or audit trail
Do not switch off the legacy store until it passes a written retirement gate that covers five checks: final reconciliation, archive of legacy data, proof that no interface still writes to legacy, decommissioning of legacy Bots and credentials, and preservation of audit history. Treat the gate as a sign-off with named owners for each check, not as a clean-up task that follows the cutover. The reconciliation should compare the final legacy extract against Medplum counts and sampled charts using the acceptance criteria agreed before cutover, and the result should be recorded in the same manifest used for earlier phases.
Confirm the archive design before anything is deleted. Decide what is kept, in what format, for how long and who may read it, and confirm those retention obligations with your compliance owner, since the period depends on your jurisdiction, record type and contracts. Store the archive under access controls that match the legacy system's sensitivity, and test that a restore is possible. Interface inventories are the usual gap: list every HL7 channel, integration account, scheduled job and Bot that touched the legacy store, and confirm each one points at Medplum before you revoke its legacy credentials. Retire legacy Bots and client credentials in the same step, so no forgotten process can write back to the old system.
Medplum's compliance documentation states that compliance is a shared responsibility between Medplum and its customers, so the retirement gate is where your organization accepts its share. Ask your compliance owner to confirm which audit logs must survive the legacy shutdown, where Medplum's AuditEvent history covers the migrated period, and which entries exist only in the legacy system and must be exported with the archive. Plan that export before decommissioning, because some legacy audit trails stop being queryable once the platform is switched off.
Questions buyers ask about phased cutover to Medplum
How much does a phased cutover to Medplum cost?
No price is published for this work, and DeployOpen does not estimate prices, so the cost comes from the written scope. The main drivers are the number of legacy stores and interfaces that must keep running, how many resource types need dual write and backfill, the volume of historical data to load, and how many Subscriptions and Bots have side effects that must be paused, duplicated or moved. Ask for the quote to separate one-time work (mapping, pipeline build, parallel-run validation, cutover rehearsal, retirement) from any recurring support or retainer, and to state which hosting option is assumed. If you self-host, the infrastructure and staffing for two systems during the parallel run are your costs and should appear as assumptions in the quote.
How long does a phased cutover take?
Duration depends on the scope, so it is set out in the written plan rather than assumed. The longest phases are usually the backfill of historical data, the period in which both stores run in parallel, and the validation that proves the two agree before reads move. Those depend on record volume, the throughput you measure in a test load, the number of interfaces that need parallel running, and how many clinical teams must sign off on each stage. Ask for a timeline built from measured load rates in your own environment, with a named go or no-go checkpoint at the end of each phase. A timeline that cannot show the throughput it assumes should be treated as unverified.
What does the phased cutover need from our clinical and IT teams?
The work needs decisions from clinical owners and operational access from IT, and both are on the critical path. Clinical leads must confirm which system is the source of truth for each data type in each phase, approve mapping decisions for codes and unsupported fields, and take part in whole-chart review samples. IT must provide network paths, identity configuration, credentials for the legacy store, a place to run pipelines, monitoring, and a change window for cutover. Security and compliance staff should review access policies and audit logging before any user reads from Medplum. Confirm in the scope who owns each of these items and how quickly sign-off is expected, because delays in clinical approval are a common reason parallel runs last longer than planned.
Can our own team run a phased cutover to Medplum?
Yes, if your team has the skills and capacity to own each part of the work, and a partner is optional. The skills include FHIR resource modeling, writing restartable loaders, reconciling counts and references, operating PostgreSQL and Redis, and handling Medplum upgrades, which must pass through each minor version in sequence. Teams that run it themselves often underestimate the parallel-run period and the on-call load while both systems are live. A written scope from a partner can serve as a checklist even if your team does the build. Compare the internal estimate with the same list of phases, owners and checkpoints before deciding.
Can we avoid dual write during a move to Medplum?
Sometimes, but only when the data and workflows allow one system to be the sole writer for a period of time. A single-writer approach works when a resource type has no active writes during the change window, when read-only access to the legacy store is acceptable, or when a short downtime is agreed with clinical leaders. Where clinicians write continuously, some form of dual write or change capture is usually needed to keep both stores current until reads move. Each approach trades data currency against risk and effort. Decide per resource type, record the decision in the authority matrix, and check how Subscriptions and Bots will behave if writes happen on only one side.
How does rollback work after write authority moves to Medplum?
Rollback depends on whether the legacy store still receives the changes made after cutover. Before write authority moves, rollback is simple because the legacy system remains the source of truth. After it moves, you need a reverse path that copies Medplum changes back, or a defined period in which the legacy store is kept current, and the team must agree in advance which changes can be replayed. Define rollback triggers in advance, such as count or reference mismatches above an agreed threshold, failed Subscription deliveries, or clinical reports of wrong data, and record who may invoke rollback. Test the reverse path in a rehearsal, because an untested rollback is not a plan. Side effects already sent to external systems cannot be recalled by the database, so list them in the scope.
How are self-hosted Medplum upgrades handled during a parallel run?
Upgrades during a parallel run should be planned as a separate change with its own rollback window, not slipped in between phases. Medplum requires self-hosted deployments to move through each minor version in sequence, because skipping versions causes startup failures, and post-deploy data migrations can run for hours or days on large datasets. Those migrations also change how fast your backfill and validation run, so the upgrade calendar must be set against the migration plan. Freeze the target version during each validation window, confirm security patch timing against Medplum's policy, and test each step in a staging copy before production. Ask the partner or your team to show how loaders, Bots and Subscriptions behave on the version in use at each phase.
How write authority, dual write and reads move across phases
The diagram starts with the legacy store as the only write authority and shows the write router sending changes to both stores during dual write. A backfill job loads history into Medplum, and a reconciliation check decides whether each phase gate passes. Only after reconciliation succeeds does the read switch move consumers to Medplum, and the rollback path returns reads and writes to the legacy store if a trigger fires. Check that every gate has a named owner and written criteria before the next phase starts.
Phase gates that move write authority and reads from the legacy store to Medplum.
How DeployOpen scopes and delivers a phased Medplum cutover
DeployOpen approaches a phased Medplum cutover as a written, fixed-scope engagement with explicit write authority for each phase, dual-write and backfill controls, and rollback triggers agreed before any production traffic moves. The work is delivered inside infrastructure you control, so your team keeps ownership of the running system after handover.
How we scope
- We list every legacy system that writes clinical or administrative data and record which one is the write authority in each phase.
- We define which resource types dual write, which are backfilled only, and which Subscriptions and Bots must be paused or replayed.
- We agree rollback triggers, owners and decision points in writing, and state which items your clinical and compliance teams must approve.
How we build
- We build the dual-write path and idempotent backfill loaders, then test them against copies of production-shaped data before any live use.
- We configure read switching per application or interface, with feature flags or routing so each consumer can move independently.
- We inventory Subscription and Bot side effects and test duplicate-trigger handling, so downstream systems do not receive repeated messages.
How we hand over
- We document the phase plan, write-authority matrix, reconciliation reports and rollback runbook in a form your operations team can run.
- We walk through each cutover rehearsal with your team and record the results, including any unresolved exceptions and their owners.
- We set out the steps for retiring the legacy store, including retention, export and access controls your compliance team must confirm.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, covering Medplum releases and any later phase changes.
- Medplum's security patch targets and upgrade sequence are planned into the support scope so your team knows what to expect.
- Before any retainer starts, we confirm with you which compliance responsibilities sit with your organization and which sit with Medplum.

