Upgrading from Medplum 4 to Medplum 5

Crossing from Medplum 4 to Medplum 5 on a self-hosted server means reviewing breaking changes, updating application code first, and stepping through every 5.x minor in order. This page explains the path and what drives the effort.

On this page

Upgrading from Medplum 4 to Medplum 5 starts with the supported path, not the latest release

A self-hosted team running Medplum 4 that needs to reach Medplum 5 should plan a sequenced crossing: move through each 5.x minor in order, and update application code before the server reaches the new major. Self-hosted Medplum must be upgraded through each minor version in sequence, so the target is not simply the latest release. The latest release at research time was 5.2.5, but the path to it still runs through every intermediate minor, and the application changes for the major boundary come first.

The reason to act now is the support calendar. Under Medplum's version policy, Medplum 4 is moving to maintenance, Medplum 5 is the active line through 2026, and Medplum 6 sits on the main branch as unstable. A team that stays on 4 will receive fewer routine fixes over time, and Medplum's policy targets security patches within 7 days for critical vulnerabilities and 14 days for high ones, so confirm which tier of support your version and contract actually cover. Also check the Medplum versions and release policy for the current dates before you set a schedule.

This page covers planning and sequencing, not a particular deployment method. Whether you run the AWS CDK stack, a Helm chart or a Docker-based install, the decisions are the same: which application code changes the major requires, which minors form your stops, and where each stop is tested. Confirm with Medplum which 5.x minor your current 4.x release can reach safely, and use the Medplum upgrading guide as the reference for each step. Deployment-specific procedures are covered in the sibling pages.

What changes at the 4 to 5 boundary and what each change requires

This table compares what changes when a self-hosted Medplum deployment crosses from the 4 line to the 5 line, and what each change asks of your team. Read each row as a planning input, then fill the breaking-change rows from the 5.x release notes and the upgrade guide before scheduling work. The main takeaway is that support status, sequencing and data migration timing shape the plan as much as code changes do.

ChangeImpactAction needed
Support statusMedplum 4 is in maintenance and Medplum 5 is in active support, according to the version policy chart.Confirm your running 4.x version is still receiving security patches, then set a target 5.x minor and date with your security owner.
Release cadenceMajors ship annually in Q4, minors two to three times a year, and patches weekly, so the 5.x line will keep moving during your project.Record the latest patch per minor on the day you plan, and re-check the releases page before each stop in the path.
Sequential minor upgradesSelf-hosted servers must pass through each minor in order. Skipping minors can cause startup failures.List every 5.x minor between your start and target version, and plan one deployment per stop.
Post-deploy data migrationsSome minors run data migrations after deploy that can take hours or days on large datasets.Measure your dataset size in staging, confirm migration duration with Medplum support, and reserve time before moving to the next minor.
Security patch targetsMedplum targets patches within 7 days for critical vulnerabilities (CVSS 9.0 or higher) and within 14 days for high ones (CVSS 7.0 to 8.9).Agree on an internal window for applying 5.x patches that fits these targets, and assign an owner for monitoring releases.
ONC certified versionMedplum's ONC disclosure lists Medplum version 5 as certified on December 31, 2025, so the certified baseline is the 5 line.If you rely on the certification, confirm which Medplum version and configuration your certification scope covers before changing anything.
Breaking API and config changesEach 5.x release note and the upgrade guide list changes that can break application code, bots, or server configuration. This table does not list them.For each item, record the affected endpoint, bot, or setting, the owning team, the fix, and the test that proves it works.
Application code updatesClient applications and bots built on Medplum 4 SDK behavior may need changes before the server moves.Update and test application code against Medplum 5 in a non-production environment before changing the production server.

Which Medplum line to target and how long each one stays supported

Every Medplum major version gets one year of Active support followed by one year of Maintenance, and an Enterprise extension adds 12 more months of security patches, for 36 months in total. For a self-hosted server still on Medplum 4, the practical meaning is that security patches keep arriving after the line moves to Maintenance, but feature work and fixes for non-security issues stop. The date that matters is therefore the end of Medplum 4's support window on the Medplum versions and release policy page, not the end of your own project plan. Confirm the current dates on that page before you set a deadline, and record which support tier your contract or internal policy relies on, since the Enterprise extension changes the end date.

Medplum ships a major version once a year in Q4, and the version policy chart shows Medplum 5 as the active line through 2026, with Medplum 6 on the main branch marked unstable. Do not target the unstable line. The newest release at research time was 5.2.5, published October 15, 2026, so your target is the latest stable 5.x patch that has passed your own staging tests, not the latest number on the releases page. Patch releases ship weekly, so pin the exact version you test and decide in advance who approves moving to a newer patch before cutover. Ask your team to note the date of the target release, because a patch published during a long project may change the security fixes you inherit.

Choosing 5.x as the destination also sets the path you must walk. Self-hosted Medplum has to pass through each minor version in sequence, so the stops between your current 4.x release and the 5.x target are part of the plan, and they are covered in the upgrade path section. Keep the support dates and the stop list in one document so the business can see when Medplum 4 leaves Maintenance and how much margin remains after your planned cutover. If the margin is thin, start the staging work now rather than after the code changes are finished.

What to prepare before touching the Medplum 4 server

Each card below names an output you should have in hand before any Medplum 4 server change. Together they let you roll back, test the 5.x path against real data, and assign who changes application code when the major boundary arrives.

Full database backup and tested restore

Produce a complete PostgreSQL backup of the Medplum 4 database and a restore log showing it loads into a separate instance. A backup that has never been restored is an assumption, not a rollback option. Record the backup timestamp, the Medplum server version it came from, and who can run the restore. Confirm the restore time with your own data volume, because restoring a large dataset can take far longer than the upgrade itself.

Inventory of Medplum 4 API consumers

Produce a written list of every custom Bot, Subscription, access policy, and client application that calls the Medplum 4 API. For each item, record the owning team, the Medplum SDK or raw FHIR calls it uses, and whether it depends on behavior that the 5.x changelog may alter. This list drives the application work that must be finished before the server moves across the major boundary.

Staging environment matching production

Produce a staging Medplum 4 stack that uses the same deployment method as production, whether AWS CDK, Helm, Ubuntu, Docker or another route, and holds a copy of production-scale data. Document the differences that remain, such as instance sizes or secrets sourced differently. Staging is the only place where post-deploy migration duration and major-boundary startup behavior can be observed before production is affected.

Snapshot of configuration and secrets

Produce an export of current server configuration, environment variables, identity provider settings, and secret references, stored in your secrets manager with restricted access. Record the exact server image tag and chart or stack version in use. Without this snapshot, a rollback can restore data while leaving the server pointing at the wrong settings or an expired credential.

Post-deploy migration and rollback decision

Produce a written decision on whether post-deploy migrations will be deferred to open a rollback window, and for how long. Name the conditions under which you would roll back and the conditions under which you would proceed. Medplum's upgrade guidance notes that post-deploy migrations can run for hours or days on large datasets, so this decision shapes the schedule and the approval chain.

Upgrading guide

Named owner for application changes

Produce a named owner, with a backup, who is accountable for the application code changes that the Medplum 5 changelog requires. The owner signs off on a dated plan that lists each affected Bot, Subscription, and client and the test that proves it works. Without a single owner, application updates tend to slip past the server cutover and leave integrations broken in production.

How to step from Medplum 4 to Medplum 5 without skipping a minor

This sequence moves a self-hosted Medplum deployment from the 4.x line to a 5.x target one minor at a time, so each database migration finishes and each check passes before the next version starts. The result is a staging server and application code that have been verified on every stop, and a production plan built from the same steps.

  1. Record the current version and target 5.x release

    Confirm the Medplum 4.x version running in production, the 5.x target you intend to reach, and the full list of minor versions between them. Record the server image or package version, the database engine version, and the Redis version in a shared upgrade log. Confirm each version against the release list on GitHub rather than from memory, and note the latest patch of each minor. This step is done when the log lists every stop in order and the owner has signed off on the target. Rollback point: nothing has changed yet, so the production system is untouched.

  2. Review changelogs and upgrade notes for every minor

    Read the release notes and the upgrade guide for each minor between your current version and the target, and log every breaking change, removed or renamed API, changed default, and required configuration key. Assign each item an owner in the application and platform teams. The Medplum version policy describes the 4 and 5 lines and their support status, which helps you judge how long each stop will matter. This step is done when every breaking change has an owner and a decision recorded. Rollback point: still no system changes.

  3. Update and test application code in staging first

    Before touching any server, change your application code, Bots, SDK calls, and integrations to match the breaking changes in the log, then run them against a staging Medplum server still on the 4.x version where possible. Keep the code changes in version control so they can be reverted independently of the server. Run your automated test suite and fix failures. This step is done when the test suite passes against the target SDK and the team has reviewed the diff. Rollback point: revert the code commit, since production still runs 4.x.

  4. Upgrade staging to the first 5.x minor

    Deploy the first 5.x minor to a staging server with a copy of production-scale data, starting from the restored state of the 4.x database. Do not jump to the latest 5.x release. Watch the server logs for startup errors and confirm the server becomes healthy. Then wait for every post-deploy data migration to finish, checking the async job admin page and AsyncJob records, because migrations on large datasets can run for hours or days. This step is done when the server is healthy and no migration jobs remain in progress or failed. Rollback point: redeploy the prior 4.x image and restore the staging database snapshot taken before the upgrade.

  5. Run smoke tests on data reads and writes

    On the staging server at this minor, run your smoke tests covering authentication, a sample of FHIR reads and searches, creation and update of representative resources, Bot executions, and any integration endpoints. Compare results with the expected outcomes in your test plan, and check that migrated records look correct, not just that they exist. Record any unexpected behavior in the upgrade log. This step is done when every smoke test passes and each defect is either fixed or formally accepted by the owner. Rollback point: restore the pre-upgrade snapshot and return to the prior minor.

  6. Repeat the upgrade for each subsequent minor

    Apply the same cycle, in order, to each remaining 5.x minor: deploy, wait for startup and post-deploy migrations to complete, then run smoke tests before moving on. Never skip a minor, because the upgrade guide warns that skipping versions causes startup failures. Use the latest patch of each minor as the stop unless the release notes say otherwise. Update the upgrade log with the completion time and any migration issues at each stop. This step is done when staging has reached the final 5.x target and the log shows a passed gate for every minor. Rollback point: at any stop, return to the previous minor using its snapshot.

  7. Schedule production with the same gated steps

    Once the final 5.x target passes in staging, plan the production upgrade using the same sequence, with the same checks and the same rollback points. Confirm with the vendor or your support channel what the recommended production path is for your deployment type, and confirm the backup and restore procedure with a tested restore before the first production change. Agree on a change window that allows time for every migration to finish, and name the people who approve each gate. This step is done when the change record lists each minor, its gate, its rollback point, and an approver. Rollback point: the production system remains on 4.x until the first approved gate passes.

The 5.x minors are crossed one gate at a time, with rollback at each stop

The path starts on a running Medplum 4 server, where breaking changes are reviewed and application code is updated and tested in staging before any server change. Each 5.x minor is then applied in order, and no step moves forward until its post-deploy migration has finished and tests pass. Every gate has a rollback branch, so a failed minor can be reverted before the next one starts. The final 5.x line is promoted to production only after the last gate passes.

Each 5.x minor passes a migration and test gate, with rollback before the next step.

What makes a Medplum 4 to 5 upgrade take longer

This table lists the factors that stretch a Medplum 4 to 5 upgrade on a self-hosted server and what to check for each. Read it before estimating the work, since most delays come from custom code, data volume and the number of environments rather than from the server image itself. Use the What to check column to turn each driver into a count or a decision your team can record before the change window.

DriverWhy it mattersWhat to check
Custom Bots and SubscriptionsBots and Subscriptions that depend on changed behavior must be retested against 5.x before any production traffic moves.Count every Bot and Subscription, note which ones call changed APIs, and confirm who owns the retest.
Client applications on the SDK or React componentsEach app built on the Medplum SDK or React component library must be rebuilt and tested against the 5.x packages.List each app, its SDK and component package versions, and whether its build pipeline pins those versions.
Dataset size and post-deploy migrationsPost-deploy migrations can run for hours or days on large datasets, which lengthens the window before the next step.Check the size of your resource tables and ask Medplum which migrations apply to your path, then rehearse them in staging.
Number of 5.x minors on the pathSelf-hosted Medplum must move through each minor in sequence, so every extra minor adds a deploy, a validation and a wait.Confirm the current 5.x line and the target, then list each minor and its post-deploy migration notes from the upgrading guide.
Deployment method and environmentsEach environment, such as development, staging and production, is promoted separately, and infrastructure changes can add a second track.Identify your method (CDK, Helm, Terraform or other) and the order in which code, infrastructure and configuration move through each environment.
Tested rollback windowWithout a rehearsed rollback path, each minor becomes a one-way step and teams often hold back until the final stop.Confirm whether a rollback has been tested in staging and which migrations, if any, block returning to the previous version.
Compliance evidence for the change recordRegulated teams need dated records of what changed, who approved it and how it was tested before release.Ask your compliance lead which evidence the change record needs, such as release notes reviewed, test results and approvals per environment.

Questions teams ask before upgrading Medplum 4 to 5

How much does a Medplum 4 to 5 upgrade cost?

No price can be stated from the research available, and DeployOpen does not publish a price list. Cost follows from a written scope, and the main drivers are the number of environments, the number of custom Bots, integrations and application code paths that change at the major boundary, the size of the dataset that post-deploy migrations must process, and how many minor versions sit between your current release and the target. Ask any partner, including DeployOpen, to separate one-time work (inventory, application changes, staging runs, cutover) from recurring work (retainers for patches and upgrades) and to state which environments and test cycles are included.

How long does the upgrade take?

The duration depends mostly on how many steps the path contains and how long each data migration runs. Self-hosted Medplum must be taken through each minor version in sequence, and skipping minors causes startup failures, so the path from your current 4.x release through the 5.x minors is the core of the schedule. Post-deploy data migrations can run for hours or days on large datasets, which means a small database may move quickly while a large one needs a longer window. Ask for a written timeline that lists each minor, the staging soak period before the next step, and the change windows the plan assumes.

What does the upgrade need from our team?

The upgrade needs named owners on your side more than it needs extra headcount. Plan for an owner for the platform and infrastructure, an owner for each application that calls the FHIR API, a security or compliance reviewer for the changes, and someone who can approve production change windows. Staging access that mirrors production configuration is required before the first step, and each application code owner must review the breaking changes that touch their code. Write these owners and approval steps into the scope so that delays are traceable to a named person.

Can our in-house team do the upgrade alone?

An in-house team can do the upgrade alone if it has engineers who know the self-hosted deployment, the Medplum server configuration and each custom integration, and if it has time for staging rehearsals. The work that most often exceeds internal capacity is reviewing the changelog against every Bot, Subscription and client application, then repeating the minor-by-minor path in staging until the post-deploy migrations behave as expected. Teams that lack this capacity usually bring in a partner for the planning and rehearsal stages and keep production change control in house.

Can we skip Medplum 5 and go straight to a later major?

Skipping a major boundary is not a supported path in the sources reviewed, and the upgrade guidance requires stepping through each minor version in sequence. Medplum 5 is the version that holds active support at the time of research, while Medplum 4 has moved to maintenance, so staying on 4 means running a line that is closer to the end of its support window. Confirm the current support status of each line in the version policy before deciding, and ask any partner to show the exact path from your running version to the target.

What happens to security patches if we delay the upgrade?

Security patches for a line depend on where that line sits in the support policy. Medplum targets fixes for critical vulnerabilities within 7 days and for high vulnerabilities within 14 days, but those targets apply to supported releases, and a version in maintenance or past its support window receives a narrower set of fixes. Under the Enterprise extension, a major version can receive security patches for 36 months in total. Ask your vendor or partner which patches your current line will receive, through which date, and what you must run to receive them.

Do the upgrade and the compliance evidence stay aligned?

Yes, if the upgrade plan records the version in use at each step and the test evidence for each change. Medplum states that compliance is a shared responsibility between Medplum and its customers, so your team owns the configuration, change records and access reviews that run on the deployment. Medplum's ONC certification disclosure names Medplum version 5, certified on December 31, 2025, which is relevant if your product relies on that certification. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications, so confirm the certification scope with your assessor.

How DeployOpen scopes and delivers a Medplum 4 to 5 upgrade

DeployOpen plans, builds, tests and documents a Medplum 4 to 5 upgrade on a self-hosted server inside your own infrastructure. Each engagement starts from a written scope that sets the application changes, the 5.x minors to step through and the handover materials your team receives.

How we scope

  • Inventory your running Medplum 4 version, server image, database and any Agent hosts before agreeing the path
  • Review the Medplum 5 changelog against your own Bots, clients and custom code to list breaking changes
  • Agree in writing which application changes, minor stops and test environments are in scope and who owns each

How we build

  • Update application code first and run it against a Medplum 4 server to confirm compatibility before the server moves
  • Step through each 5.x minor in sequence in a staging environment that mirrors your production configuration
  • Record the post-deploy migration behavior and timing observed at each minor so production runs follow a tested sequence

How we hand over

  • Deliver a written runbook with the exact version order, configuration changes and verification checks for each stop
  • Document rollback decisions, including the conditions under which a step can be reversed and the ones that cannot
  • Walk your platform and application teams through the runbook and leave them with the records needed for later upgrades

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial upgrade is complete
  • Track the Medplum release policy so your team knows when Medplum 5 leaves active support and what comes next
  • Confirm support terms, response expectations and any retainer scope in writing before work starts

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.