Building restartable Medplum migration pipelines

A migration loader that cannot be safely rerun will corrupt a Medplum load the first time a network call fails. This page explains how to build loaders that retry, resume and reconcile cleanly.

On this page

Why a Medplum migration pipeline must be restartable

A migration team has mapped its source data and now has to load it into a self-hosted Medplum server. The loader will fail partway through at some point: a network drop, a database serialization error, a malformed record or a server restart. The design requirement is that rerunning the same batch must not duplicate or lose records. Idempotency is the property that decides whether a failed batch is a routine rerun or a manual cleanup project. Every write needs a stable identity from the source system, so the loader can ask Medplum whether a resource already exists before it creates one, for example with conditional create or conditional update keyed on a source identifier such as an identifier system and value.

On effort, the pipeline code is the smaller part of the work. Most of the time goes to three things: deciding the idempotency keys and checking that they are unique across every source, measuring throughput on a copy of realistic data so the cutover plan rests on evidence, and building reconciliation that proves each batch landed. A team should expect to spend more time on those three than on writing the loader itself. Ask any partner to show how each of them is scoped and priced, because a quote that lists only loader code leaves most of the risk unassigned.

This page covers the loader only: how the write path is built, how batches and bundles are sent, how failures are recovered and how files are read. Work that comes before it, including source inventory, scope rules, patient-matching rules and the mapping register, belongs to the planning and FHIR mapping topics. Load sequencing, validation and reconciliation, and cutover are covered by their own topics in this group. Read the Medplum upgrading guide before you start too, since a loader tested against one server version can behave differently after an upgrade.

How a restartable loader moves a batch from source to Medplum

The loader starts with a source extract, passes each record through the mapping, and records its source identifier in a load log before anything is written. Each item then goes to Medplum as a conditional create or update, inside a batch or transaction bundle. Failures go to an error queue, and reconciliation compares Medplum results against the log. A rerun reads the log first, so completed items are skipped and only failed or unsent items are retried.

Restartable loader flow from source extract to Medplum, with the load log driving retries.

Conditional updates, identifiers and idempotent writes

A conditional create sends a POST with an If-None-Exist header containing a search expression, such as an identifier query built from your source system's primary key. The server runs the search first. If no match exists, it creates the resource. If exactly one match exists, it returns that resource without creating a duplicate. If several matches exist, the request fails, which is a useful signal that your identifier scheme is not unique. Use this when a loader may replay the same record after a timeout and you cannot be sure whether the first attempt committed.

  • Identifier design: Put a namespaced system URI and the source key in every identifier before the first load, so search expressions are precise.
  • Source changes: A conditional create does not update an existing match. If the source record changed, the existing resource keeps its old content, so changed records need the update path.
  • Multiple matches: Treat a multiple-match response as a data defect to investigate, not a retry case.
  • Bundles: Conditional create also works inside transaction bundles, where it is evaluated as part of the atomic unit.
  • Confirm: Verify how your Medplum version handles the If-None-Exist header and which search parameters support the identifier query.

Before relying on this in production, run a test load with a replayed record and check that the resource count does not change.

Batch versus transaction bundles: which to use for which load

This table compares FHIR batch and transaction bundles on failure isolation, reference resolution, rollback and request size for migration loaders. Read each row against your load's data model: the main takeaway is that batch bundles suit independent resources that can fail one at a time, while transaction bundles suit groups that must commit together.

DimensionBatch bundleTransaction bundle
Failure isolationEach entry succeeds or fails on its own, so one bad resource does not stop the restAll entries succeed or the whole bundle fails, so one bad resource blocks the group
Reference resolution within the bundleEntries are processed independently, so references to other entries in the same bundle should not be relied onEntries can reference each other through temporary IDs such as urn:uuid values, which the server resolves
Rollback behaviorNo rollback of successful entries when another entry failsFailed transaction leaves no partial writes, which simplifies retry of the whole group
Retry strategyRetry only the failed entries, using their identifiers in the loader's manifestRetry the whole group after fixing the cause, with idempotent conditional updates
Best fitIndependent resources such as Patients or Practitioners with no cross-references in the same requestLinked resources such as an Encounter with its Observations, or Coverage with its Patient reference
Request sizeBundle size and entry limits apply; confirm the maximum entry count for your Medplum versionSame type of limits apply, and larger groups raise the chance of a whole-group failure
Throughput tuningBatches can be sized to your throughput tests, with smaller batches easier to diagnoseSmaller transactions reduce lock contention on busy tables, so measure before increasing group size
What to confirmPer-entry response handling, bundle size limits and error reporting in your Medplum versionTransaction semantics, temporary ID handling and size limits in your Medplum version and your own load tests

Asynchronous processing and the throughput limits that shape a loader

A loader's speed is set by more than its own code. Request handling, worker concurrency, database contention and server rate limits all bound how fast records can land, and they interact. Each card below names one of these limits and the check to run before setting a cutover window.

Asynchronous request handling

Some Medplum operations do not finish inside the original HTTP request. Post-deploy data migrations and bulk operations can run for hours or days on large datasets, so a loader must treat an accepted request as the start of work, not proof of completion. Confirm which of your calls return immediately and which return a status you must poll, and record that status in your run log so a restarted loader does not resubmit work that is still running. Poll before you resubmit.

Upgrading docs

Concurrency per worker

Each loader worker sends requests in parallel, and the number of parallel workers multiplies the load on the API and the database. Too many workers raise conflict and timeout rates, which then trigger retries that add more load. Start with a small number of workers, measure accepted records per minute and error rates, then raise the count only while error rates stay flat. Keep the concurrency setting in configuration so it can change between runs without code edits.

Database contention during bulk writes

Bulk writes hit the same PostgreSQL tables that serve live traffic, so heavy loads can cause lock waits, serialization errors and slow queries. Migration runs against a shared environment can degrade production reads and writes. Ask your platform team which tables are hot, whether a bulk load window is allowed, and what monitoring will show lock waits during the run. Index maintenance and transaction retry tuning for large imports are covered in the Medplum bulk load performance topic.

Self-hosting docs

Server rate limits

A self-hosted Medplum server applies limits that your loader must respect, and those limits are set in your deployment configuration, not by the loader. Read the configured values for your environment, then design the loader to back off on throttling responses instead of retrying immediately. Test against a copy of production-like data, because limits that look generous on an empty development database can be reached quickly under realistic record volumes and reference lookups.

Measured throughput, not estimates

Throughput figures from a small sample rarely predict full-volume runs, because indexes grow, reference lookups slow and contention rises with table size. Run the full loader against a copy of production-like data, record accepted records per hour, error counts by type and time spent in each load step, then use those measurements to set the cutover timeline. Ask every vendor and partner for their measured figures on comparable volumes and the configuration used to produce them.

Build sequence for a restartable loader

This sequence turns a one-off import script into a loader that can be stopped, retried and resumed without creating duplicates or losing track of what was loaded. Each step ends with a check you can run before moving to the next one.

  1. Define the source key and load log schema

    Before any loader code, agree on a stable source key for every record (the legacy primary key plus the source system and extract version) and a load log table that stores one row per source key and target resource: status, target resource ID, batch ID, attempt count, last error and timestamps. The migration engineer and the data owner sign off on the key rules, since a key that changes between extracts breaks every rerun. The check is a written key definition and a schema that can record a pending, loaded or failed state for a sample of 20 hand-picked source rows without any Medplum writes.

  2. Write idempotent loaders for each resource type

    For each FHIR resource type, the migration engineer writes a loader that uses a conditional create or conditional update keyed on the source identifier, so a retried request matches the resource it already created instead of adding a second one. Review how each search parameter behaves against your identifier system before relying on it. The check is that loading the same sample batch twice produces the same resource count and the same resource IDs both times.

  3. Add batch and error handling

    Group records into bundles and decide per use case whether a batch bundle (independent entries, partial success possible) or a transaction bundle (all or nothing) fits. Transaction bundles suit records that must commit together, such as an encounter and its dependent resources. Capture each entry's response status, map failures back to source keys in the load log, and set a retry policy that separates transient errors (such as write conflicts) from data errors that need a person. The check is a deliberately malformed row that is logged as failed with its source key while the rest of its batch still loads.

  4. Instrument counts and timings

    Emit counts per resource type and batch for attempted, created, updated, skipped and failed records, along with elapsed time per batch. Write these figures to the load log and to a run summary so they can be compared with source extract counts later. The check is a run summary whose totals match the load log exactly and match the source row count for the sample.

  5. Run a rerun test that kills the process mid-batch

    Start a load on a representative sample, terminate the process partway through a batch, then restart it using the same inputs and load log. Confirm that already-loaded records are skipped or matched rather than duplicated, that the interrupted batch is retried correctly, and that the final counts equal the source counts. Repeat the kill at a different point to check a second boundary. The check is zero duplicate resources by source identifier and a final reconciliation that matches the sample extract.

  6. Measure throughput on a production-like dataset

    Run the loader against a copy of the target environment sized like production, with the same PostgreSQL and Redis configuration, and record throughput per resource type under realistic concurrency. Watch for serialization errors and slow queries during the run, since these are the usual limits on bulk writes. Use the measured rate, not an assumed one, to decide batch sizes and worker counts. The check is a written throughput table per resource type, with the bottleneck identified for each.

  7. Schedule the full load only after the checks pass

    Once the rerun test and throughput measurements pass, schedule the full load with a fixed extract version, a named owner who can pause and resume it, and a rule for when to stop. Confirm the load window with the operations team based on the measured throughput, and keep the load log as the record of what ran. The check is a dress-run schedule where the operator can pause, resume and reconcile counts without touching the source system.

Loading files and recovering from partial failures

A restartable loader reads the source file in bounded chunks and writes a checkpoint only after every record in a chunk has an recorded outcome. Choose the checkpoint key deliberately. A byte offset is simple to resume but breaks if the file is re-exported or edited, while a record key from the source system survives re-exports but needs a unique, indexed key. Malformed rows (wrong column count, unparseable dates, invalid encodings) should never stop the run. Send each one to a quarantine file with the source line number, a reason code, and the raw text, so a data steward can correct and reprocess it later. Keep the quarantine separate from rejections returned by Medplum, because the fix for each usually belongs to a different team.

When a loader crashes mid-file, recovery starts from the last checkpoint, not from the top of the file. Records between the checkpoint and the crash may have been sent, so reprocessing must be safe. The load log should assign every attempted record one of three outcomes: accepted (the server returned a success response with a resource ID), rejected (the server returned a validation or business error, stored with its OperationOutcome), or unknown (a timeout or dropped connection left no clear answer). Unknown records must not be resent blindly. Search for them by source identifier first, then either confirm the existing resource or send it with a conditional update so the retry cannot create a duplicate. Test this path on a staging copy by killing the process at several points in one file.

Before you design the log around any bulk mechanism, confirm which bulk import and batch paths your Medplum version supports and how each reports per-entry results. Request behavior differs between a single resource write, a batch bundle where entries succeed or fail independently, and a transaction bundle where one failure rolls back the set. Your recovery logic depends on which one you use, so verify it against the Medplum upgrading guide and your own server version, not from memory. Measure throughput on staging with realistic file sizes and record it, because the cutover plan depends on that figure. Finally, keep the quarantine and rejection files versioned alongside the mapping register so a rerun after a fix can be traced to the exact change.

How long does it take to build a restartable Medplum loader?

What drives the time it takes to build a restartable Medplum loader?

The duration depends mostly on the number of source systems, the number of resource types you map, and how many exception rules the data needs. A loader for one clean table export is a very different job from a pipeline that reads three legacy stores, handles duplicate patients, and writes Encounters, Observations and DocumentReferences in dependency order. Other drivers include how many times the source data changes before cutover, whether the loader must run against a self-hosted server with a size and throughput target you have measured, and how much idempotency testing you want before the first full run. No duration is stated here because none has been researched for this work. Ask for a timeline in the written scope, built from your source inventory and your mapping register.

What does a Medplum loader project cost, and what is one-time versus recurring?

Most of the cost is one-time engineering: profiling the source, writing the loader and its retry logic, testing it against a non-production Medplum project, running rehearsals, and fixing exceptions. Recurring costs sit in the hosting you already pay for, such as the infrastructure running Medplum and its PostgreSQL and Redis components, and in any later reruns during dress rehearsals and cutover. Cost rises with the number of interfaces and resource types, with the number of rehearsal cycles, and with how much clinical review is needed. DeployOpen does not publish prices, so a quote follows from the written scope. Ask each bidder to itemize discovery, build, test, rehearsal and handover separately so you can compare them on equal terms.

Can our own engineering team build a restartable Medplum loader internally?

Yes, if the team has FHIR experience, can read Medplum's API documentation, and has someone who understands the source data well enough to write the mapping rules. The hard parts are rarely the HTTP calls. They are conditional updates for idempotency, deciding when to use batch versus transaction bundles, recovering after a partial failure, and proving the result with counts and reference checks. Check whether your team has run bulk loads before and whether it has time for several full rehearsals. Internal teams often underestimate the time spent on clinical review and exception handling, so budget for those separately from the code.

What do source system owners and clinical reviewers need to provide?

The loader depends on inputs from people who know the source data and the clinical meaning of it. Source owners need to provide schema documentation, data extracts or read access in a controlled environment, and a stable export window or change log. Clinical reviewers need to confirm code mappings, decide how ambiguous records are handled, and sign off on sample charts after each rehearsal. Ask for named owners, expected response times and a decision log before the build starts. Delays in these inputs are a common reason a pipeline schedule slips, even when the code is ready.

How do we ask a partner for a fixed-scope quote for a Medplum loader?

Send the partner a written scope that lists the source systems, the target Medplum version and deployment, the resource types in scope, the expected data volume, the throughput you have measured, and the acceptance criteria you will use. Ask for a quote that breaks the work into discovery, loader build, idempotency and recovery testing, rehearsal runs, cutover support and handover, with a named deliverable for each. Ask what is excluded, such as mapping approvals or clinical sign-off, and who provides test data. DeployOpen plans most engagements as fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, so the quote follows directly from that document.

What does ongoing support look like after a Medplum loader goes live?

Once cutover is complete, a loader is usually kept only for backfills, corrections and any late source extracts, so ongoing support is often lighter than the build. The support question is really about the Medplum platform underneath it. Self-hosted Medplum has to be upgraded through each minor version in sequence, and post-deploy data migrations can run for hours or days on large datasets, which can affect any loader you still run. DeployOpen offers ongoing support, upgrades and continuous testing as retainers. Ask what the retainer covers, how upgrades are tested against your loader, and what response expectations are written into the agreement.

How do we know the loader is ready for production runs?

A loader is ready when it has passed repeated full runs against a non-production Medplum server, survived deliberate interruptions, and produced reconciliation results that match your acceptance criteria. Check that a rerun after a forced failure creates no duplicate resources, that conditional updates resolve to the same logical records, and that the reconciliation report lists every rejected row with a reason. Ask for the test evidence in writing, including the number of rehearsal runs and the failure scenarios covered. Treat the rehearsal log as a deliverable in the scope, not an informal result.

Which Medplum version should our loader target, and does that change the effort?

Target the Medplum version your production environment will run at cutover, and confirm it before you write the loader. Medplum publishes releases frequently, including weekly patch versions, and the most recent release at research time was 5.2.5, published on October 15, 2026. A loader built against one version can need changes after an upgrade, so the effort depends on how far the target moves during the project. Ask the partner how they will handle a version change mid-build and whether the upgrade of the target server is inside or outside the quote. Medplum's release history is on its GitHub releases page.

What goes wrong in Medplum loaders and how to prevent it

Most failed Medplum migration loads fail quietly before they fail loudly. The problems below share one root cause: a loader that works on the first run but cannot safely repeat, split or report what it did. Each card names one failure mode and the check that prevents it.

Duplicate resources from non-idempotent creates

A plain POST creates a new resource every time it runs. When a job times out after the server commits but before the loader records success, the retry creates a second copy of the same patient, encounter or observation. Use conditional create or conditional update keyed on a source identifier so a rerun matches the existing record. Before the first full run, confirm that every source record carries a stable identifier and that your loader sends the identifier on every write.

Broken references when batches are split

A Patient can reference an Organization that lands in a different batch, or in a batch that failed. If the loader splits work by resource count instead of by dependency, references point at resources that do not exist yet. Load in dependency order, and in a transaction bundle, use temporary urn:uuid full URLs so the server resolves references inside the bundle. Confirm the load order against your reference graph before you size batches.

Serialization errors and slow queries under bulk writes

Parallel writers that touch the same tables and indexes can produce serialization errors, and a busy GIN index can slow every insert. A loader that treats these errors as fatal will stop mid-run with a partial dataset. Build transaction retry into the loader, cap concurrency, and measure throughput on a rehearsal copy before the cutover window. Ask your database team which index tuning and vacuum settings apply to your PostgreSQL version and load volume.

Silent rejection of malformed entries

A batch response can return HTTP success while individual entries carry error outcomes. A loader that checks only the top-level status will count a rejected Observation as loaded. Read the per-entry response in every bundle, write each rejection with its source key and the operation outcome to an exception log, and fail the run when rejections exceed the threshold agreed in your acceptance criteria. Validate sample records against the target profiles before the full run.

Rerun drift when source data changes

If the source system keeps changing between attempts, a second run can load a newer version of a record than the first run, or drop a record that was deleted at source. Reruns then produce a target that matches no single snapshot. Freeze an extract with a fixed date or export manifest, store the hash of each source file, and record the extract identifier in each resource's provenance. A rerun against a different manifest should stop and ask for approval.

What drives the cost and duration of loader work

This table compares the main drivers of loader effort, marking each as one-time build work or recurring rerun work, and lists what to ask for in a written quote. Read it to see which inputs move the estimate most and which ones to pin down before work starts.

DriverWhy it changes effortBuild or rerunWhat to ask for in a quote
Source volumeRow counts and file sizes set batch sizing, runtime per pass and the time each full load takesRerunAssumed row counts per resource type and the throughput basis used for runtime
Number of resource typesEach type needs its own mapping, conditional update keys and error handlingBuildLoader list by resource type with the matching identifier rule for each
Number of source systemsEach system adds extraction logic, identifier namespaces and duplicate handlingBuildPer-system scope, extraction method and who supplies source access
Identifier qualityWeak or missing business identifiers force fallback keys and manual match reviewBuild, then rerunMatching rules, expected duplicate handling and the review step's owner
File loadingBinary and document files need hash checks, resumable uploads and separate retry logicBuildWhether files are in scope, file size range and the storage target
Throughput targetTarget rates determine batch size, parallelism, transaction settings and index tuningBuild, then rerunMeasured throughput from a test load and the load window the plan assumes
Dress rehearsal rerunsEach rehearsal repeats the full pipeline, including fixes found in the prior runRerunNumber of planned rehearsals and what each one must prove before the next
Failure handling and recovery testsTesting retries, partial failures and restart from checkpoints adds work per resource typeBuildWhich failure scenarios are tested and the evidence each test produces

Documented import paths and APIs for Medplum loaders

A loader can write to Medplum through the FHIR REST interface, batch and transaction bundles, conditional operations, or the SDK clients that wrap them. Each path has different consequences for retries, partial failure and throughput, so the choice should be made per resource type before any pipeline code is written.

FHIR REST interface

Medplum exposes a FHIR R4 API, and each resource is created, read, updated or searched through standard HTTP operations. A loader that posts one resource at a time is easiest to reason about, because each response maps to one source record. The cost is round trips: at high volume, per-resource calls become the bottleneck. Check each response status and the returned resource identifier, and log both against your source key so a retry can be matched to the original attempt.

Medplum self-hosting docs

Batch bundles

A batch bundle sends several entries in one request, and the server processes each entry independently. One failed entry does not roll back the others, so the loader must read the response entry by entry and record which source records succeeded. This is the natural fit for loads where a partial result is acceptable and re-running the failed entries is cheap. Confirm the entry limit and error reporting for your deployed version before sizing batches.

Transaction bundles

A transaction bundle treats all of its entries as one unit: either every entry commits or none does. It suits a logically linked group, such as an encounter with its observations, because references inside the group resolve together. The trade-off is that a single bad entry fails the whole group, and large transactions hold locks longer and raise the chance of serialization errors under load. Keep groups small and test rollback behavior on your version.

Conditional create and update

Conditional operations carry a search criteria in place of a resource ID, such as an identifier match on the source system's record number. The server creates the resource only when no match exists, or updates the match, which makes a retried request safe to repeat. This is the core idempotency mechanism for restartable loads. Verify that your identifier systems are unique and stable, because a search that matches two records will fail or produce a duplicate.

Medplum SDK clients

The Medplum TypeScript SDK wraps the FHIR REST interface with typed calls for create, update, search and bundle submission, and handles authentication for client credentials. Using it keeps the loader close to the documented API while removing some boilerplate. Pin the SDK version to the same release line as your server, and confirm which methods your version exposes before building retry wrappers around them.

Asynchronous and bulk paths

Asynchronous request handling and bulk import mechanisms can reduce the load on the synchronous API, but they depend on the deployed version and their availability, limits and response handling vary. Do not design the loader around them until the official Medplum documentation for your version confirms the endpoint, status polling and failure reporting. Ask the Medplum team or check the release notes for changes before the cutover rehearsal.

Medplum releases

When a partner should build the loader and when your team can

A team can build the loader internally when it already has engineers who know FHIR R4, Node.js and TypeScript, and when the mapping register is finished and approved before code starts. In that case the loader is a bounded program: it reads approved mappings, writes resources through the FHIR API with conditional updates, and records every batch outcome. The internal team owns the retry logic, the checkpoint table and the reruns after each failed cycle, so it needs time to test those paths against a staging Medplum environment before any production data moves. If the mapping register still has open questions, the loader will keep changing, and an internal team will spend its effort rebuilding code rather than moving data.

A fixed-scope partner makes more sense when the volume is large, when auditors will ask how each record got into Medplum, or when the cutover date cannot move. Those conditions raise the cost of a loader that is wrong or hard to rerun, and they call for a written record of run identifiers, error categories and reconciliation output that a reviewer can follow. A partner should also be asked to show how it sizes the work against the throughput measured in your own staging environment, which tells you whether the schedule holds before the quote is signed. Ask for the loader design, the test plan and the recovery runbook as named deliverables, so the fixed scope covers them.

Whichever path you choose, the client provides the inputs that no loader can invent: read access to source systems and extracts, written approval of each mapping from the data owners, representative test data with known-good counts, and a staging Medplum environment sized and configured to match production. Confirm with your Medplum support contact which server version and database settings the staging environment will run, because loader behavior depends on them. A partner will not be able to estimate duration or risk until these inputs exist, so treat their delivery date as a dependency on your team's responsiveness.

Using the loader in parallel run, dress rehearsal and cutover

This sequence reuses one restartable loader across repeated dress rehearsals and the final load, so every run leaves comparable evidence that the cutover team can judge against agreed acceptance criteria and write-authority rules.

  1. Freeze the loader version and configuration

    Before the first dress rehearsal, tag the loader code, mapping register version, bundle size, batch or transaction choices, and retry settings in source control so each run can be traced to an exact build. The migration lead and the data engineer sign off on the tag. Done means every run record names the same tag, and any change after this point starts a new numbered rehearsal rather than silently altering an earlier one.

  2. Run the first dress rehearsal from a fresh target

    Load a full extract into an empty or freshly reset Medplum project in a non-production environment, using the same load order and ID mapping the cutover will use. The data engineer runs the loader and captures the load log, error queue, and resource counts by type. Done means the run completes or every failure is classified in the log, and the target project is recorded as disposable.

  3. Repeat the rehearsal with the same loader

    Reset the target and run the same tagged loader again, then compare the load logs and counts with the previous rehearsal. Also run the loader against a partially loaded target to confirm that restarts skip completed records without creating duplicates. Done means two consecutive runs produce matching counts and identifiers, and any difference has a documented cause and fix.

  4. Check results against validation acceptance criteria

    Apply the acceptance criteria and reconciliation checks from the validation topic to each rehearsal: resource counts, reference integrity, exception totals, and whole-chart review samples. The validation lead signs off on each run against the agreed thresholds. Done means each rehearsal has a recorded pass or fail decision that references the criteria version, not an informal judgment.

  5. Run the parallel load and confirm write authority

    During the parallel run, keep the legacy system as the write authority and load copies into Medplum on the cutover schedule so the teams can compare outputs. Follow the phased cutover plan for which system accepts writes in each phase, and confirm Subscription and Bot side effects are disabled or isolated in the target. Done means the cutover owner has documented write authority for every resource type and the side-effect controls are verified.

  6. Execute the final load with the same loader

    At cutover, run the tagged loader against the production project using the same configuration that passed the last rehearsal. Operations staff monitor throughput and the error queue, and any stop triggers from the cutover plan are followed without ad hoc code changes. Done means the final run finishes with the load log complete and the reconciliation checks reported.

  7. Retain the load log as cutover evidence

    Archive the load logs, error queues, tagged loader version, mapping register version, and reconciliation reports from every rehearsal and the final load in a controlled, access-restricted store. Ask your compliance lead which retention period applies to migration records in your jurisdiction. Done means an auditor or reviewer can trace any migrated record back to the run that created it, with the approval decisions attached.

How rehearsal and cutover loads reuse one pipeline

The diagram starts with discovery inputs such as the source inventory, scope rules and mapping register, which feed a single loader build. The same loader runs first as a pilot on a subset, then as a full rehearsal, and each run ends in reconciliation. A failed reconciliation sends the team back to the mapping or to loader fixes, not forward to cutover. Only a clean rehearsal leads to the cutover load and, later, decommissioning of the legacy source, so the team checks that every run used the same loader version.

One loader runs through pilot, rehearsal and cutover, with reconciliation gating each step.

How DeployOpen works on this

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For Medplum migration pipelines, that means agreeing the loader design, retry rules and recovery steps in writing before code is written, then delivering them in the client's own cloud account, data center or air-gapped network.

How we scope

  • Engagements are fixed-scope, with pipeline scope, deliverables and timelines agreed in writing before work starts.
  • The written scope lists source systems, resource types, load steps and which retry and recovery behaviors are in or out.
  • Ask for the scope to name the Medplum version and self-hosting target, since the upgrade path affects the loader's environment.

How we build

  • Loaders are built to use conditional updates so a rerun after a failure does not create duplicate resources.
  • Batch and transaction bundle choices are documented per resource type, with failure handling defined for each.
  • Throughput tests run against a representative data volume in the client's environment before the pipeline is accepted.

How we hand over

  • Deliverables include pipeline code, configuration, a runbook for restarts, and documented recovery procedures.
  • Operators receive instructions for reading load logs, identifying partial batches and resuming from a checkpoint.
  • Knowledge transfer sessions cover how to rerun a load safely and how to confirm counts after each run.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • A retainer can cover pipeline updates when the Medplum server or database version changes during a migration.
  • Confirm with DeployOpen during scoping which support hours, response expectations and escalation paths the retainer includes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.