How to run a legacy data migration: the short answer
A legacy data migration moves the data you still need from aging systems into your go-forward EHR or an active archive. To run one, automate extraction, mapping, and validation, group systems into waves, and integrate through HL7 or FHIR interfaces. Then secure data at every hop, cut scope with retention rules, and govern the work through formal sign-off and source system decommissioning.
A few terms first. A legacy data migration pulls records out of old clinical, financial, or ERP systems and loads them where you can keep using them. Your go-forward EHR is the electronic health record your organization will run on from now on, such as Epic.
An active archive is a secure, searchable repository that keeps legacy data available after the old system shuts down. Not every record needs to live in the new EHR. Much of it can live in the archive instead.
This guide is about execution. If you still need the strategic case, start with our guide to legacy clinical data migration best practices. If you’re past that point and ready to run the project, read on.
Ready to turn a long list of legacy systems into a plan you can actually run?
How to automate legacy data migration
Automation turns repeatable work into scripts, so every test load and final load runs the same way. That consistency is what makes data migration from legacy systems predictable.
Humans still own the judgment calls. The goal is to let scripts handle volume while your experts handle meaning.
Automate extraction from each source system
Start with scripted, repeatable extracts for every source system. A script you can rerun on demand lets you pull fresh data for each test cycle and for the final load without starting over.
Native export tools often fall short on older platforms. MediQuant, for example, extracts data directly from legacy system backups using Oracle when a system’s own tools can’t deliver what you need.
Data migration automation works best when extraction scripts are versioned, logged, and owned by a named person. If you want a partner to build and run those extracts, explore MediQuant’s healthcare data migration services.
Use rules-based mapping and reusable crosswalks
Mapping tells each piece of source data where it belongs in the target system. Write those decisions down as rules, so a script applies them the same way on every load.
Code sets need special care. A crosswalk is a lookup table that translates one code into another, such as an old lab code into the one your new EHR expects. Build a crosswalk for each code set:
- Lab and result codes
- Medication and allergy codes
- Diagnosis and procedure codes
- Provider, location, and department IDs
When a value doesn’t match any rule, log it as an exception automatically. That log becomes your work queue for analysts.
Automate reconciliation and validation reports
Reconciliation checks that what left the source system arrived in the target. Run the same checks on every load:
- Counts: the number of patients, encounters, and results match.
- Totals: dollar amounts and balances tie out.
- Referential checks: every result links to a valid patient and encounter.
Depth matters here. MediQuant’s validation protocols, for example, use more than 650 distinct exception-test scripts. MediQuant’s ArkLoad toolkit also includes built-in validation and visualization, so your team can see problems instead of hunting for them.
Where human review still matters
Scripts can prove data arrived. Only clinicians can confirm it makes sense. Ask clinical reviewers to verify allergies, medications, problem lists, and immunizations, because errors there can affect patient safety.
Use side-by-side review, comparing the legacy screen with the new one for the same patient. In MediQuant’s sample project plan, reviewers check at least 5 patients with 2 encounters each across multiple years. That review takes about 4 hours per patient record, and customer side-by-side validation runs about 4 weeks.
Which parts of your migration still depend on manual effort that a script could repeat?
How to scale legacy data migration across many systems
Large health systems, especially after mergers and acquisitions, may have dozens or hundreds of source systems. Heroic weekend pushes won’t get you through that many. Repeatable patterns will.
Scaling a legacy system data migration means planning the order, grouping similar work, and reusing what you’ve already built.
Plan migration waves
A wave is a group of systems you migrate together on a shared timeline. Waves keep a huge program in manageable pieces.
Sequence your waves using four factors:
- Go-live dependencies: what the new EHR needs on day one
- Contract end dates: systems with expensive renewals coming up
- Support status: platforms the vendor no longer supports
- Risk: systems with known security gaps or failing hardware
Group systems by data type and complexity
Similar systems behave in similar ways. Group them by data type, such as clinical, financial or patient accounting, and ERP (enterprise resource planning) systems.
Then split each group by data structure. Discrete data sits in defined fields, like a lab value or a charge amount. Non-discrete data includes scanned documents, PDFs, and images, which need a different handling path.
Run parallel workstreams
Separate teams for extraction, mapping, and validation can work at the same time on different waves. While one team validates wave one, another can extract wave two.
Give every team one shared issue log. A single log keeps defects from getting lost between teams and shows leaders where the backlog sits.
Build reusable mapping templates
Many health systems run several copies of the same vendor platform, often inherited through acquisitions. Once you map one, save that map as a template for the next.
Each reuse saves analysis time and lowers risk, because the rules have already been tested. You can see how a repeatable load and validation cycle works in MediQuant’s legacy data conversion process.
How many of your legacy systems share a vendor platform you could map once and reuse?
How to integrate migrated data with the go-forward EHR
Integration decides whether clinicians can actually use migrated data. A perfect load does little good if no one can find the records during a visit.
Plan integration early, alongside mapping. Your interface choices and your EHR-versus-archive split shape everything else.
Choose HL7 and FHIR interfaces
HL7 (Health Level Seven) is a long-standing set of standards for sending health messages between systems. FHIR (Fast Healthcare Interoperability Resources) is a newer HL7 standard that shares data through modern web APIs.
In 2024, 9 in 10 hospitals integrated data from third-party technology into their EHR for at least one clinical purpose, according to ASTP hospital API data from the Assistant Secretary for Technology Policy (ASTP). The same ASTP survey found that “most of this data sharing occurs via non-standards-based APIs (e.g. proprietary EHR APIs) and/or non-API-based methods (e.g. HL7 interface.)”
The takeaway for you is simple. Plan for both FHIR and traditional HL7 interfaces, and confirm which ones your go-forward EHR supports for each data type.
Decide what moves to the EHR versus an active archive
Moving everything into the new EHR adds cost and clutter. Epic best practice limits conversion to 3 to 5 years of recent clinical data, according to MediQuant’s conversion guidance.
The rest of the record can live in an active archive, where it stays secure and searchable. Learn how that works in MediQuant’s guide to active healthcare data archiving.
Give clinicians in-workflow access
Busy clinicians rarely log into a separate system in the middle of a visit. Legacy history needs to appear where they already work.
MediQuant’s DataArk integrates with Epic through single sign-on, so clinicians can view legacy history from inside their Epic workflow. That spares them a second login.
Can your clinicians reach legacy history today without leaving the EHR?
How to secure legacy data during migration
PHI (protected health information) is any health data that can identify a patient. PHI is most exposed while it moves, so build controls into every phase.
The risk is real. According to the HHS Office for Civil Rights HHS 2024 breach report, hacking/IT incidents were the largest category of 2024 breaches affecting 500 or more individuals, “comprising 81% of such reported breaches.”
Encrypt data in transit and at rest
Encrypt PHI while it travels between systems and while it sits in staging areas, backups, and the target. Treat every extract file as a target for attackers.
The bar may rise. In December 2024, the HHS Office for Civil Rights published proposed HIPAA encryption requirements that would “Require encryption of ePHI at rest and in transit, with limited exceptions.” This is only a proposed rule, and the current HIPAA Security Rule remains in effect. Building to the higher standard now can still save you rework later.
Lock down access and log everything
Give each person only the access their role needs, an approach called role-based access control. Require multi-factor authentication (MFA) for anyone who touches migration data.
Log every query, export, and import, along with who ran it and when. For a deeper look at these controls, read MediQuant’s guide to healthcare data extraction security.
Maintain chain of custody
Chain of custody is a written record of where data goes and who handles it. Document every hand-off, every staging location, and every deletion of temporary files.
Sign a business associate agreement (BAA) with every vendor that touches PHI. A BAA is the HIPAA contract that spells out how a partner must protect your data.
Verify vendor certifications
Secure data migration depends on your partners as much as your own team. Ask every vendor for proof of independent security reviews:
- HITRUST r2 certification
- SOC 2 Type II audited facilities
- FIPS 140-2 validated encryption
MediQuant holds HITRUST r2 certification, runs in SOC 2 Type II and HITRUST certified facilities, and uses FIPS 140-2 encryption in transit and at rest. See the details on our MediQuant security and compliance page.
Would your current migration vendors pass that checklist today?
How to optimize migration speed and cost
The cheapest data to migrate is the data you don’t need to move. Every record you leave out is one you never have to map, test, or secure.
Speed and cost improve together when you shrink scope, clean data early, and avoid doing the same work twice.
Cut scope with retention rules
Retention rules set how long you must keep each type of record. For hospitals that participate in Medicare, the CMS five-year record retention rule in the Conditions of Participation states: “Medical records must be retained in their original or legally reproduced form for a period of at least 5 years.”
That federal rule is a minimum. Your state law may require longer, especially for minors, so have HIM and compliance confirm each retention period before you set scope.
Cleanse data before transfer
Profile your source data before you move it. Look for duplicate patients, invalid codes, and blank required fields.
Separate source defects from conversion defects. A source defect existed in the old system, while a conversion defect was introduced by the migration. Tracking them apart keeps your team from chasing problems the migration didn’t cause.
Avoid rework after cutover
A “lift-and-shift” copies everything as-is, with little cleanup or planning. It feels fast, but someone often has to re-extract data from the legacy system later. Sometimes that happens after its support contract has ended.
Plan conversion and archiving as one project instead. When MediQuant clients convert and archive together, they’ve saved hundreds of thousands of dollars by avoiding duplicate extraction and mapping.
Which systems on your list could you archive instead of converting?
Managing the legacy data migration lifecycle
The migration isn’t finished at go-live. It ends when the source system is retired.
Lifecycle management covers who decides, how you prove the data is right, how you handle open balances, and how you shut old systems down safely.
Assign governance roles
Name an owner for every decision before the first load. Typical roles include:
- Executive sponsor: sets priorities and clears roadblocks
- Data owners: decide what data matters and how long to keep it
- Application owners: know how each legacy system works
- Clinical and revenue cycle reviewers: validate data their teams will use
- HIM, compliance, and security: confirm retention, privacy, and controls
- Target system owner: accepts data into the go-forward EHR
Get formal validation sign-off
Sign-off proves that the business accepted the data before go-live. In MediQuant’s sample project plan, customers sign a Migration Sign Off document before go-live.
Log any accepted anomalies in that document. If an auditor or clinician asks later, you’ll have a clear record of what was known and approved.
Manage retention after cutover
Financial work keeps going after clinical go-live. According to MediQuant’s conversion guidance, legacy accounts receivable (A/R) often runs 12 to 18 months past go-live.
You don’t have to keep the old system running for that whole stretch. MediQuant research shows an active archive lets hospitals retire legacy financial systems 2 to 3 years earlier.
Decommission the source system
Decommissioning means turning off the legacy system for good, once its data is safely migrated or archived. MediQuant’s guide to healthcare application decommissioning walks through the steps.
Wipe the old storage media before disposal and keep proof. Guidance from the National Institute of Standards and Technology in its NIST media sanitization guidelines (SP 800-88 Rev. 2) says “a certificate of sanitization … should be completed for each ISM that has been sanitized.” ISM stands for information storage media.
NIST SP 800-88 is guidance and is voluntary for private organizations. Still, it gives you a clear, defensible standard.
The savings can be large. Regional One Health saved about $1.4 million in four years with MediQuant, according to its CIO.
How many retired-in-name-only systems are still running in your data center?
Migration execution checklist
Use this checklist to track each phase of your legacy data migration. Every row names an owner and the evidence that proves the task is done.
| Phase | Task | Owner | Validation evidence |
|---|---|---|---|
| Discover | Inventory every legacy system and its data types | Application owners | Signed system inventory |
| Scope | Apply retention rules and pick EHR vs. archive targets | Data owners, HIM, compliance | Approved scope document |
| Map | Build mapping rules and code crosswalks | Data conversion lead | Reviewed mapping specs and exception log |
| Extract and transform | Run scripted, repeatable extracts | Extraction team | Extract logs and record counts |
| Validate | Run reconciliation scripts and clinician side-by-side review | Validation team, clinical reviewers | Reconciliation reports and review results |
| Secure | Confirm encryption, access controls, BAAs, and audit logs | Security officer | Access review and chain-of-custody log |
| Integrate | Test HL7 and FHIR interfaces and in-workflow access | Target system owner | Interface test results |
| Cut over | Load final data and confirm go-live readiness | Executive sponsor | Signed Migration Sign Off document |
| Retain | Keep legacy data accessible for A/R and retention periods | Revenue cycle, HIM | Archive access and retention schedule |
| Decommission | Shut down source systems and sanitize media | Application owners, security | Certificate of sanitization |
Ready to put this checklist to work? Contact MediQuant to plan your next legacy data migration with a partner that has done it many times before.
FAQ
How to integrate legacy data migration?
Integrate migrated data through HL7 or FHIR interfaces your go-forward EHR supports, and keep older history in an active archive. Give clinicians single sign-on access so they can see legacy records inside their normal workflow.
How to scale legacy data migration?
Group systems into waves by dependency, contract date, support status, and risk. Run extraction, mapping, and validation in parallel, and reuse mapping templates for systems on the same vendor platform.
How to optimize legacy data migration?
Cut scope with retention rules, clean data before you move it, and convert and archive in one project. This avoids moving records you don’t need and re-extracting data later.
How to automate legacy data migration?
Script your extracts, mapping rules, and reconciliation checks so every load runs the same way. Keep clinicians in the loop to review high-risk data like allergies and medications.
How to secure legacy data migration?
Encrypt data in transit and at rest, limit access by role, require MFA, and log every action. Keep a chain-of-custody record and sign BAAs with every vendor that touches PHI.
How to manage legacy data migration lifecycle?
Assign clear governance roles, get formal validation sign-off before go-live, and manage retention after cutover. The lifecycle ends when you decommission the source system and document media sanitization.
How long does a legacy data migration take?
Timelines depend on how many systems you have, how complex the data is, and how much you choose to convert. Planning in waves and cutting scope with retention rules helps keep the schedule under control.
Should legacy data be archived or deleted after migration?
Archive data you still must retain under federal and state rules, and delete it only after retention periods end. Document any deletion with a certificate of sanitization.

