01
Why legacy health software is hard to change
The business logic is usually the asset and the problem. Years of customer-requested behavior sit in stored procedures, UI code and undocumented settings. A rewrite that omits a rule discovered in 2014 will be discovered by a customer in week two.
Clinical and operational continuity limit the options. You cannot take a scheduling or results system offline for a weekend migration and hope. Clinics need it Monday at 7 a.m., and a failure during cutover can delay care.
Technical debt shows up as business problems: new customers cannot get SSO, a security review flags unsupported libraries, an EHR upgrade breaks an interface, and hiring engineers for the old stack gets harder every year.
Finally, the product may carry regulatory baggage. If it is a regulated device, design controls and change records apply to the modernization itself, and changes need to be assessed against the existing documentation.
02
What a modernization engagement can include
Assessment and modernization roadmap
Codebase and runtime inventory, dependency and vulnerability audit, data model review, interface catalog and a prioritized plan with options and costs.
Strangler-pattern re-architecture
New services built around the old system, with routing that moves functions across one at a time. Each step is reversible.
Database and data migration
Moving from on-premises SQL Server or Oracle to managed cloud databases, with reconciliation reports that prove nothing was lost.
UI refresh
Replacing desktop or older web clients with accessible web or mobile interfaces, shipped by workflow so users learn one change at a time. See healthcare UI/UX design.
Interface and API modernization
Wrapping proprietary or file-based interfaces with FHIR APIs and moving HL7 v2 point-to-point connections onto a managed interface engine.
Security and platform uplift
Supported runtimes, SSO, audit logging, secrets management and CI/CD, usually the quickest wins.
03
Modernization architecture: the strangler approach in practice
We put a routing layer, an API gateway or reverse proxy, in front of the legacy application. Requests for migrated functions go to new services; everything else goes to the old system. Over months the legacy footprint shrinks until it can be retired.
Data is the harder part. For a time, both systems need the same truth. We use change data capture or event publishing from the legacy database to feed new services, and an anti-corruption layer that translates legacy concepts into a cleaner domain model. Writes are moved to the new service one bounded area at a time, such as scheduling before billing.
The trade-off is temporary complexity. For a while you run two systems and a bridge. We accept this because the alternative, a single cutover, concentrates risk in one weekend. For small, stable products with few integrations, a direct rewrite can still be the better choice, and we say so after the assessment.
04
Security gains and regulatory care during modernization
Modernization often improves security more than any single new feature. Unsupported operating systems, outdated TLS configurations, shared service accounts and missing audit trails are common legacy findings, and each is fixable within a modernization plan.
During migration, PHI is moved between environments. Under HIPAA, the same safeguards apply to migration copies as to production, so we use encrypted transfers, restricted access, documented retention and secure deletion of intermediate data, and we update the risk analysis to reflect the new architecture. If the product is a medical device, changes should be assessed against your quality system and FDA change-control expectations by your regulatory team. This is general information, not regulatory advice.
05
Keeping legacy interfaces alive while moving to modern APIs
Customers rarely let you change an interface they have validated. We preserve existing HL7 v2 feeds, flat files and SOAP services at their current contracts while building FHIR R4 equivalents beside them. Each customer then migrates when ready.
We also use interface engines to make behavior visible, with message logging, replay and field-level transformation tests. Many legacy surprises appear here: a Z-segment nobody documented, or a receiving system that depends on a non-standard character encoding. See HL7 integration services and FHIR integration services.
06
How we plan and run a modernization
- Assess (3-6 weeks): inventory, risk and dependency analysis, quick wins, three options with costs.
- Stabilize: add monitoring, automated tests around critical flows (characterization tests), backups and a CI pipeline before touching logic.
- Carve out: pick the first slice for low risk and high value, often authentication, notifications or reporting.
- Migrate in slices: parallel run, reconciliation, feature-flag cutover per customer or site.
- Retire: decommission legacy modules with data archived under your retention policy.
- Handover: documentation, architecture records and training for your engineers.
07
Typical modernization scenarios
- An ambulatory practice management product moving from a hosted Windows server to a cloud-native web platform.
- A lab or imaging workflow tool that needs FHIR APIs so new customers can integrate without custom work.
- A patient portal stuck on an end-of-life framework that fails accessibility reviews.
- A care management system whose reporting database times out as customer volume grows.
- A product acquired through M&A that must be brought onto the parent company's identity and cloud platform.
08
Modernization cost and schedule factors
The following ranges are planning estimates, not quotes. Code quality, test coverage, number of customers and integration count dominate cost.
| Scope | Typical timeline | Main cost drivers |
|---|---|---|
| Assessment and roadmap | 3-6 weeks | Codebase size, documentation, access to original engineers |
| Targeted module modernization | 3-6 months | Business rules complexity, data coupling, customer migration |
| Full platform re-architecture | 9-24 months | Number of modules, integrations, regulated status, parallel running |
09
When to rewrite instead of modernize
A rewrite can be right if the product is small, the domain rules are well understood and documented, the technology cannot be run securely, or the business is pivoting to a different model. Rewrites fail when teams underestimate the hidden rules in the old system, so we require a characterization test suite before committing to one.
Frequently asked questions
How do you modernize without downtime?
We use routing and feature flags to shift functions to new services gradually, run old and new in parallel for reconciliation, and keep rollback paths open. Cutovers are planned around clinic hours and customer change windows.
Should we rewrite or refactor?
It depends on code health, domain knowledge, security posture and business direction. We run an assessment and present options with costs. Incremental modernization is the default because it limits risk.
Can you work on a codebase with no tests?
Yes. We first add characterization tests around critical behaviors and set up CI, so every later change is checked. This is slow at the start and pays back quickly.
Will our customers need to change anything?
Usually not at first. We preserve existing interfaces and file formats, and offer new APIs alongside them. Customers migrate on their own schedule.
What about data migration risk?
We reconcile record counts and checksums, run dry runs on masked copies, and keep the source system read-only but available until sign-off. Migration data receives the same safeguards as production PHI.
Sources and further reading
This page is general information, not legal or regulatory advice. Requirements depend on your product, data and organization; consult qualified counsel for your situation.