OpenEMR upgrades with custom and third-party modules

Custom modules, core edits and third-party integrations are where most OpenEMR upgrades slow down. This page explains how to inventory them, get compatible versions and retest before go-live.

On this page

Why OpenEMR upgrades with custom modules need a plan before the version change

If your practice or health system runs custom modules, edits to OpenEMR core files, or third-party integrations, the upgrade is not only a version change. Those pieces have to move to a newer release, and none of them is covered by the official upgrade steps. OpenEMR is a free and open-source electronic health records and practice management application licensed under the GNU GPL v3.0, so you can read, change and redistribute the code, but the responsibility for keeping your changes working after an upgrade sits with you, your developers or your partner.

Start with the prerequisites. OpenEMR 8.3.0 was released on August 18, 2026, 8.4.0 on September 13, 2026 and 8.4.1 on September 20, 2026, and recent releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database. Every custom module, template or script that you run must be checked against those minimums before you schedule the change. A module that depends on an older PHP function, an older database engine or a library the new PHP build no longer ships can fail even when the core upgrade succeeds. Confirm each component's supported PHP and database versions with its developer, and record the results in your change plan.

The version-specific upgrade guides define the supported path from your current release to the target release, including database and PHP steps. They do not test or adapt your code. A core edit in a file the release changed, or a custom module that calls a function the release removed, will not appear in those guides. Before you change the version, list every custom module, core file you have modified, and third-party integration, then decide for each one whether it will be updated by its developer, rebuilt by your team or retired. That decision, not the upgrade itself, determines how long the change takes.

What changes in recent OpenEMR releases and what it means for custom code

This table maps the recent OpenEMR release facts to the custom code they can affect, so you can see which areas need review, which runtime needs testing and which deployment paths need deliberate handling. Read each row as a question to answer before the upgrade: what changed, what could break in your modules, and what you must do. Confirm module-level impacts against the release notes and with each module developer, since the release facts do not describe specific breaking changes.

ChangeImpact on custom codeAction needed
8.3.0 and 8.4.0 security fixesFixes touched FHIR APIs, the patient portal, billing, the fax and SMS module and the fee sheet. Custom code in these areas may depend on behavior that was changed for security reasons.Review custom code in these areas against the release notes, and retest the affected workflows after the upgrade.
8.4.1 patch releaseA later patch in the 8.4 line that follows the 8.4.0 security fixes. Custom modules built against 8.4.0 may need a check against the patch.Confirm with each module developer whether the module has been tested on 8.4.1, and record the version you deployed.
PHP 8.3 or later requirementRecent releases require PHP 8.3 or later. Custom modules that were written or tested only on older PHP may fail to load or behave differently.Run every custom and third-party module on the target PHP version in a staging copy before the production change.
MySQL or MariaDB compatible databaseRecent releases run on a MySQL- or MariaDB-compatible database. Custom SQL, schema changes and table additions made by modules must work on the database version you choose.Check custom queries and module schema changes on the target database, and back up the database before running any upgrade step.
Docker deployment optionsContainerized installs keep custom code in the image or in mounted volumes. Modules placed outside the sites directory are not carried over automatically, so they can be lost on image changes.Inventory every custom file and mount, and copy modules and core edits into the new deployment deliberately.

What to inventory and back up before touching the upgrade

Four preparation items decide whether an OpenEMR upgrade can be rolled back and whether your customizations survive it. Each one produces a document or a restorable copy that the upgrade team uses during the change window. Complete them before anyone runs an upgrade script on the production system.

Full database and sites backup

Take a complete database dump and a copy of the entire sites directory before any change, and store both outside the server being upgraded. The sites directory holds per-site configuration in sqlconf.php, documents, and any local files, so a database-only backup cannot restore a working install. Test the restore on a separate host so you know the copy is usable, not just present. Confirm that the backup set matches the exact code version you are leaving, since a rollback to mismatched files will fail.

Securing OpenEMR guide

Custom module and core edit inventory

List every custom module, every file changed inside the OpenEMR core tree, and every local template or hook added to the codebase. Compare the installed tree against the upstream release you are running, for example with a file diff or a version-controlled fork, so core edits are visible rather than remembered. Record the file path, the reason for the change, and the author. Overwritten core edits are the most common silent loss during an upgrade, so this list is the baseline for every later check.

Per-site configuration record

Document the settings that differ between sites or between the global configuration and the install: database connection values, document and edi paths, enabled modules, and ACL settings. In a multisite install, each site carries its own configuration, so one site's setting can be missed when the others are correct. Export or screenshot the Administration Globals values, and note any setting you changed by hand in the database. Keep this record with the inventory so the upgrade team can verify each value after the change.

Administration Globals wiki

Third-party developer and version register

For each third-party module, record the developer, the OpenEMR versions it claims to support, the license, and the date of its last release. Ask each developer in writing whether a build exists for the target 8.x release and what PHP and database versions it needs. Some modules will not have a release for your target, which changes the upgrade schedule or forces a fork. Treat a module with no written support statement as an open risk to resolve before the upgrade date, not after.

Production-matched test environment

Build a test system that matches production on PHP version, database engine and version, web server, and the Docker image or package used. Recent OpenEMR releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database, so the test server must use the same engine and version family as production, not a newer one. Load a recent copy of the database and sites directory, then run the upgrade and your module tests there first. A test environment that differs from production can pass every check and still fail on the live server.

Where custom modules and core edits usually break

Most custom OpenEMR work breaks in one of three ways: a core edit disappears when the codebase is replaced, a module calls an internal function whose signature or behavior changed, or a module assumes an older PHP or database version than the release now requires. Core edits are the most dangerous because they often fail silently. A change to a file under the OpenEMR tree is lost when the new release is laid over the old one, and nothing in the upgrade reports it. Before the upgrade, list every file you have changed outside the module directories and every template, hook or override you rely on. Then confirm for each one whether the change still exists in the new release, or whether the same behavior can be rebuilt as a module.

Modules written against internal APIs are the next risk. OpenEMR's internal functions, globals and database tables are not a stable interface for third-party code, so a module can load without error and still fail on a specific form, report or billing screen. Ask each module developer which OpenEMR version they tested against, whether they have a version for the target release, and which core functions, globals and tables the module touches. Also confirm the PHP version and database engine the module supports. Recent releases require PHP 8.3 or later and a MySQL- or MariaDB-compatible database, so a module that has not been tested on those versions will need work before the upgrade can go ahead. Check the target version's exact prerequisites in the OpenEMR releases page before you request the developer's confirmation.

The Carecoordination C-CDA service is a separate failure point because it runs as Node.js processes outside the PHP application. After an OpenEMR or Node.js update, the node processes must be stopped and npm install --production rerun in the ccdaservice directory, or the service can keep running old code or fail to start. If your deployment uses custom C-CDA templates or an interface that depends on that service, confirm with your developer and your integration partner that the output still validates after the reinstall. Treat the C-CDA check as a separate test step, not a side effect of the module retest.

How to sequence the upgrade with module updates and the C-CDA reinstall

This sequence keeps custom and third-party modules working through an OpenEMR upgrade by fixing the order of backups, compatibility checks, prerequisite upgrades, code changes and the C-CDA service reinstall, so each stage has a verified state to return to.

  1. Freeze changes and take a full backup

    Stop new custom development and configuration changes on the production system, then take a full backup of the database, the sites directory (including documents, edi, era and letter_templates), the codebase and the web server configuration. Restore the backup into a separate test environment and confirm that the test copy logs in, opens a patient chart and shows the same data as production. Record the backup timestamp and the current OpenEMR version as your baseline. Check: a restore test completed on a copy that matches production, not just a backup file that exists.

  2. Inventory custom modules and core edits

    Build a list of every custom or third-party module under the interface directory, every template or form added outside it, and every change made to core files. Compare the running codebase against the release tag you started from, so direct edits to core files show up as a diff rather than being remembered from memory. Note each module's version, source, author and license, and which features depend on it. Check: a written inventory that the people who maintain the system have reviewed, with each item marked as keep, replace, retire or port.

  3. Obtain compatibility statements from each developer

    For each item that is not part of OpenEMR core, ask its developer or vendor for a version that supports your target OpenEMR release, and a written statement of the PHP and database versions it has been tested against. Ask whether the module depends on any changed core API, database table or JavaScript library in the target release. If a developer cannot confirm compatibility, mark the module as a blocker and decide whether to rebuild, replace or remove it before cutover. Check: a compatibility answer on file for every module, with a named owner for each unresolved item.

  4. Upgrade the database and PHP in the test environment

    Apply the database server and PHP upgrades that the target OpenEMR release requires, in the test environment first, using the version requirements listed in the OpenEMR release notes for that release. Confirm the server versions against the release notes before you start, since the minimums differ by release. Run the standard OpenEMR database upgrade and check that core functions, such as login, scheduling and encounter creation, still work before you touch any custom code. Check: a test system running the new PHP and database versions on the unmodified upgraded core, with no custom errors in the PHP and web server logs.

  5. Apply the OpenEMR upgrade and port custom changes

    Deploy the target OpenEMR codebase in the test environment, then reapply or port each custom module and core edit in the order your inventory lists them. Prefer re-creating a change through supported extension points over copying old core files back in, and document each edit you keep so the next upgrade can repeat the process. Run the database upgrade for each affected site if you run multisite, and check per-site ACL upgrades before users log in. Check: every item marked keep is running on the target version, and the diff against the new release contains only the documented changes.

  6. Stop node processes and reinstall the C-CDA service

    After any OpenEMR or Node.js update, stop the running node processes for the Carecoordination C-CDA service, change into the ccdaservice directory and rerun npm install --production. Restart the service only after the install completes without errors, and confirm the Node.js version on the host matches what the service expects. Repeat this step on production during the cutover, because the service dependencies are not refreshed by the core upgrade alone. Check: the service starts cleanly, and a test C-CDA document can be generated and processed from the Carecoordination module.

  7. Retest workflows, interfaces and reports

    Run a retest plan covering each custom module, each third-party interface, the C-CDA exchange, the reports your practice relies on, and the core workflows that use the changed code paths. Include user roles and access controls, since permission changes between releases can hide or expose features. Log every failure with its module, expected result and actual result, and do not sign off until each failure is fixed or accepted by the business owner in writing. Check: a signed test record that covers every inventory item marked keep, with no open high-impact defects.

  8. Define the rollback point before production cutover

    Before you change production, set a rollback point that names the backup from step one, the previous OpenEMR and PHP versions, the previous database server version, and the previous Node.js and ccdaservice state. Confirm that the team can restore that point within the outage window they agreed, and decide in advance which failures trigger a rollback. Schedule the production cutover only after the rollback steps have been rehearsed on the test environment. Check: a written rollback runbook that someone other than the person who wrote it has walked through, and a go or no-go decision recorded with its owner.

How the upgrade phases and rollback points fit together

The diagram starts with inventorying custom modules and core edits, then moves through developer updates, a test upgrade and retesting before a production window. Each gate has a rollback path to the pre-upgrade backup, so a failed check returns the system to its last known good state. Confirm that the backup is restorable, including the database and the sites directory, before any gate is passed.

Phase gates for an OpenEMR upgrade, each with a rollback path to the backup.

What drives effort and cost, and what the upgrade needs from your team

How long does an OpenEMR upgrade with custom modules take?

No supplied fact gives a duration, so the honest answer is that the timeline depends on how much custom code you run and how far the upgrade jumps. The main drivers are the number of custom and third-party modules, how many core files you have edited, whether the jump crosses a PHP or database requirement change, and how many interfaces and reports need retesting. A small install with one or two well-maintained modules is a different project from a multisite deployment with edited core templates. Ask any partner or internal team to break the estimate into inventory, module updates, the upgrade itself and retesting, so you can see which part is driving the schedule.

Do module developers have to update their modules for an OpenEMR upgrade?

Often yes, but it depends on the module and the version gap. A module that uses only stable core APIs may run unchanged, while one that hooks into changed code, uses removed functions or depends on a specific PHP version will need a new release from its developer or an internal fix. Before you upgrade, ask each module's author whether a version exists for the target OpenEMR release and what it changed. For modules with no active maintainer, budget for internal or partner work to port them, and decide whether the function is still needed at all.

What does the upgrade need from our internal staff?

Your staff must own decisions that no vendor can make for you. Expect to need someone who knows the clinical and billing workflows well enough to define acceptance tests, a system administrator who can manage the server, database and PHP changes, and a named owner for each custom module who can approve its update. Staff time is recurring in the sense that every future upgrade needs the same inventory and retest, so document the module list and test scripts as you go. Confirm who has administrator access to the production database and who signs off before cutover.

Can our own team upgrade OpenEMR with custom modules without a partner?

Yes, if your team has the skills and capacity to do the work, and many organizations do. The questions to answer honestly are whether anyone has done a version jump before, whether you have a staging environment that mirrors production, and whether the custom code is documented well enough for someone other than its author to change it. A partner is most useful when the module inventory is incomplete, when core files were edited without a record, or when the team cannot spare the people for the retest. DeployOpen implements and upgrades self-hosted open-source platforms inside the client's own infrastructure, so the work can run under your team's supervision either way.

What should we ask for in a written quote for an OpenEMR upgrade?

Ask for a written scope that lists each deliverable, not just a total. A useful quote states the module and core-edit inventory it is based on, which modules are in scope for porting and which are excluded, the target OpenEMR and PHP and database versions, the staging and backup steps, the retest plan, and who performs each step. It should also say which costs are one-time, such as the upgrade and module ports, and which recur, such as patch support or a retainer. Ask what happens if the inventory reveals more custom code than expected, and how changes to scope are priced and approved. DeployOpen does not publish a price list, and quotes follow from the written scope.

Does retesting after the upgrade cover interfaces and reports?

It should, and you should confirm that it does in the written test plan. Retesting for an OpenEMR upgrade with custom modules goes beyond logging in and opening a chart. It should cover the custom modules and forms, the billing and claim workflows, any reports used for operations or regulatory submissions, and every interface that sends or receives data, including the C-CDA service and any FHIR API clients. Note that the Carecoordination C-CDA service needs its node processes stopped and npm install --production rerun in the ccdaservice directory after OpenEMR or Node.js updates, so test document generation explicitly. Keep the test scripts so the next upgrade repeats the same checks.

What costs are one-time and what costs recur after an upgrade?

The one-time costs are the module inventory, module ports or updates, staging setup, the upgrade rehearsal, the production cutover and the initial retest. Recurring costs come from the next patch and version releases, ongoing module maintenance, staff time for reviewing release notes, and any support retainer you choose. The recurring share grows with the number of custom modules, because each one needs its own compatibility check at every release. Ask a partner or your own team to estimate both categories separately so you can plan the budget for year one and for later years.

Which customizations make the upgrade longer

This table compares the customization and environment factors that most often lengthen an OpenEMR upgrade, and how each one changes the work. Read each row as a question to answer about your own system before asking for a quote. The main takeaway is that the count of custom modules matters less than whether each one has a maintained version for the target release and whether it touches core files.

DriverEffect on effortWhat to confirm
Number of custom modulesEach module needs its own compatibility check, code review and test pass against the target versionFull list of modules in the interface directory, with owner and the OpenEMR version each was built for
Core edits versus module-only changesCore file edits are overwritten or conflict on upgrade and must be re-applied and retested by handDiff of the installed tree against the stock release of your current version, listing every changed core file
Third-party modules with no active maintainerNo one may publish a version for the new release, so the module must be rewritten, replaced or droppedVendor or author contact, date of last release, and whether a supported version exists for the target 8.x release
Interface and FHIR or C-CDA dependenciesChanges to the API, scopes or the Carecoordination C-CDA service must be tested with each external systemWhich interfaces, FHIR clients and C-CDA exchanges are live, and which partners must sign off on testing
Data volume for the database upgradeLarger schemas take longer to migrate and back up, and custom tables may need their own migrationDatabase size, custom tables or columns added by modules, and a tested backup and restore time
Number of sites in a multisite installEach site needs its own documents, sqlconf.php settings and database upgrade, so module checks multiplySite count, whether modules differ by site, and whether any site shares code or settings with another

Retesting after the upgrade by area

Custom forms, templates, decision rules and encounter workflows are the customizations clinicians notice first, and they often depend on core templates or database fields that changed between versions. Retest them with scripted clinical scenarios that a clinical lead signs off, not only with a login check. Focus on the places where custom code meets core data.

  • Custom forms and layouts: Open each custom form, enter representative data, save, reopen and print or export it. Confirm that every field still stores and displays.
  • Decision rules and alerts: Trigger each rule with a known input and confirm the expected alert or action fires, and that no rule fires on the wrong patients.
  • Encounter and visit documentation: Walk one encounter from scheduling through documentation to close, using the custom templates the practice relies on.
  • Translations and labels: Check that custom language files still load and that user-facing text has not reverted to defaults.

Keep dated screenshots, the test script with the tester's name, and the sign-off from the clinical owner for each workflow.

How DeployOpen scopes and delivers an OpenEMR upgrade with custom modules

DeployOpen plans OpenEMR upgrades around the customizations you depend on, starting from a written inventory of custom modules and core edits. The work runs inside your own infrastructure, with each module's upgrade path confirmed, the C-CDA service reinstalled and the affected workflows retested before cutover.

How we scope

  • The written scope lists every custom module, third-party module and core file edit found in your installation.
  • Each item is marked with its owner, its source, and whether a developer has confirmed compatibility with the target version.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any upgrade work starts.

How we build

  • Upgrades run on a staging copy of your system in the infrastructure you control, with backups taken first.
  • Custom modules are reapplied or replaced using updated versions from their developers, and core edits are rebuilt as documented changes.
  • The Carecoordination C-CDA Node.js service is stopped, reinstalled with npm install --production, and restarted before testing.

How we hand over

  • You receive a module register that records version, source, owner and the change made for each customization.
  • Test results cover the clinical, billing and interface workflows your team confirmed as critical, with failures logged and fixed.
  • Runbook notes explain how to repeat the module check at the next OpenEMR release, including the reinstall steps for the C-CDA service.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial upgrade is complete.
  • A retainer can cover re-checking custom modules when new OpenEMR patch or minor releases are published.
  • Ask us to confirm which developer updates you still depend on before any retainer scope is set.

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.