Switch off a legacy EHR on a date without losing a chart, a proxy, or a payment — a permanent identity crosswalk, a discrete history load reconciled count for count per patient and data class, an immutable archive launched in patient context from the new chart, portal cutover that re-evaluates adolescent proxy access, legacy balance runout routed by date of service, release-of-information over archived records, and a decommission checklist the compliance owner signs.
Tags: healthcare, provider, ehr-conversion, data-migration, archive, patient-portal, revenue-cycle, release-of-information, identity-matching, api-led, process-api, system-api, epic, fhir, hl7v2, c-cda
EHR Conversion: Legacy Archive, Portal Cutover, and Balance Runout
Review the regulatory requirements before implementing. The regulatory details in this blueprint are general guidance, not legal or compliance advice — rules change, and many vary by state, payer, or contract. Before you build, have the HIM director and the privacy officer confirm:
- Step 3: archived content is treated as part of the designated record set and returned for right-of-access and release-of-information requests.
- Prerequisites and step 7: retention periods per record type under state law, and legal-hold handling before any purge.
- Step 4: adolescent confidentiality and proxy access rules, which vary by state.
- Step 5: how residual legacy balances are handled at runout end — collections or adjustment — under billing and collection rules.
Deliverable: A conversion and archive Mule application — legacy EHR and practice-management System APIs, a permanent identity crosswalk, a reconciled discrete-history loader into {target_ehr}, an immutable archive launched in patient context, a portal cutover flow, and a legacy balance runout — so the legacy platform can be switched off on a date, and nobody loses a chart, a proxy relationship, or a payment.
Objective: Moving to a new EHR gets planned as a go-live and discovered as a tail. On cutover day the legacy portal goes read-only, but clinicians still need years of notes, patients still owe balances for services billed in the old system, parents expect their proxy access to follow them, and release-of-information requests still name records only the old system holds. Organizations keep the legacy EHR licensed for years because nobody can prove it is safe to turn off. Working looks like every legacy patient mapped to a target MRN, the agreed history loaded discretely and reconciled count for count, everything else archived and viewable from inside the new chart, legacy balances collected through a runout that ends on schedule, and a decommission the compliance owner signs.
What's Getting Built
- Legacy EHR (System API) — bulk and per-patient extraction of demographics, clinical history, documents, and future appointments ·
GET /legacy/patients, GET /legacy/patients/{legacyId}/clinical?type=, GET /legacy/patients/{legacyId}/documents
- Identity crosswalk (Process API) — matches legacy patients to target MRNs and holds the permanent cross-reference ·
POST /crosswalk/match, GET /crosswalk/{legacyId}, GET /crosswalk/exceptions
- Discrete history loader (Process API) — loads the signed-off data classes into
{target_ehr} and reconciles per patient per class · POST /conversion/batches, GET /conversion/batches/{id}/reconciliation
- Archive (System API) — write-once, content-addressed store with an index by target MRN, date, and document type ·
PUT /archive/objects/{hash}, GET /archive/patients/{mrn}/index
- Archive viewer launch (Experience API) — opens archived content from the new chart in patient context ·
GET /archive/launch, GET /archive/patients/{mrn}/documents/{id}
- Portal cutover (Process API) — invitation waves, delegate relationships, and message history handoff ·
POST /portal/invitations, POST /portal/proxies, GET /portal/proxies/exceptions
- Legacy balance runout (Process API) — routes payments and statements by date of service until legacy A/R closes ·
GET /legacy-ar/guarantors/{id}/balance, POST /legacy-ar/payments, GET /legacy-ar/aging
- Release of information (Experience API) — adds archived content to records-request packages ·
POST /roi/requests, GET /roi/requests/{id}/package
Prerequisites
- Anypoint Platform org with a deployment target that can reach the legacy database or the vendor's export endpoint.
- Data export rights in the legacy vendor contract — the bulk export format, fees, and the date the vendor stops supporting it. This is the item that stalls conversions.
{target_ehr} inbound interfaces for historical data (HL7v2, C-CDA, or FHIR), built and tested by the target EHR team, plus an in-context launch mechanism — SMART on FHIR EHR launch per End-User Authentication, or the target EHR's equivalent activity link.
- Object storage for the archive with write-once retention (
{archive_store}) and a documented retention period per record type under state law.
- Conversion scope signed by clinical leadership: which classes load discretely and how far back — typically problems, allergies, medications, immunizations, and a results window — and what is archive-only.
- Named owners: the HIM director for the legal medical record and ROI, revenue cycle for the runout, and a compliance owner who signs the decommission.
Choose your path
- Convert and archive — Choose when clinicians need history as discrete data in the new chart for decision support and medication reconciliation. Load the agreed classes, archive everything else.
- Archive only — Choose when the history is short, the go-live date is fixed, or legacy data is too inconsistent to load safely. Everything lands in the archive, clinicians open it from the chart, and reconciliation happens at the next visit.
Both paths share the crosswalk, archive, portal cutover, and runout; the loader is the only difference. Most programs convert a narrow set and archive the rest.
Architecture
1. Identity crosswalk first
- Match every legacy patient to a target MRN before loading anything: deterministic keys first (a prior MRN registered at cutover), then probabilistic demographic matching above a threshold, then a human queue.
- Resolve legacy duplicates and unfinished merges before matching. A legacy merge chain nobody cleaned up becomes two target patients, or one patient with two histories.
- The crosswalk is permanent. The archive index, ROI, and runout all resolve through it for as long as the retention period runs.
2. Discrete history load
- Load only the classes clinical leadership signed off, mapped to target code systems — RxNorm, SNOMED CT, LOINC, CVX. An unmapped code loads as text with a flag rather than being dropped.
- Mark every converted item with its source and conversion date, so clinicians can tell history they did not document from history they did.
- Reconcile per patient per class: legacy count in, loaded, rejected with reason. A batch is not complete until that report balances.
- Convert future appointments separately and first — they are the one class that is operational on day one.
3. Archive and in-context access
- Write documents and extracted data to write-once storage keyed by content hash, indexed by target MRN, encounter date, and document type.
- Launch the archive viewer from the new chart with patient context. Clinicians should never search the archive by name.
- Treat the archive as part of the designated record set: patient right-of-access and ROI requests must return archived content, and the index is how you prove completeness.
4. Portal cutover
- Invite active portal users to the new portal in waves keyed on the crosswalk, and carry forward delegate relationships the new platform's policy permits.
- Re-evaluate proxy access for adolescents against the new platform's confidentiality rules instead of copying it. A parent's full access to a 15-year-old's record in the old portal may not be allowed in the new one.
- Export message history to the archive; do not try to recreate old threads as live conversations.
5. Legacy balance runout
- Route by date of service: payments and statements for services before
{cutover_date} go to the legacy practice-management system, everything after to the new one. The date of service is the key, not the payment date.
- Keep self-pay working for legacy balances. A payment link in the new portal can post to the legacy ledger through the runout API, so the old portal does not have to stay alive for bill pay.
- Track legacy aging weekly and plan the end: on
{runout_end_date}, transfer residual balances to collections or adjust them per policy, then freeze the legacy ledger.
6. Decommission
- Decommission is a checklist, not a date: crosswalk exceptions at zero, every batch reconciled, archive index verified against the legacy document count, runout closed, and ROI tested against archive-only patients.
- Preserve legacy exports under any active legal hold; everything else retires with the license.
7. Security and compliance
- Encrypt legacy extracts, archive objects, and crosswalk tables at rest; extracts never sit on shared drives between steps.
- Archive objects are immutable for the retention period, and every access is logged per patient and per user to support accounting of disclosures.
- Grant conversion staff minimum-necessary access and remove it at decommission.
- Honor legal holds before any purge. Complete the shared Healthcare integration configuration checklist.
Configure with your own values: {legacy_ehr}, {target_ehr}, {archive_store}, {cutover_date}, {runout_end_date}.
Sample payload — per-patient conversion reconciliation
{
"batchId": "CONV-B-0147",
"legacyId": "L-0093318",
"targetMrn": "E2201457",
"crosswalk": { "method": "DETERMINISTIC_PRIOR_MRN", "confidence": 1.0 },
"classes": [
{ "type": "ALLERGY", "legacyCount": 3, "loaded": 3, "loadedAsText": 0, "rejected": 0 },
{ "type": "MEDICATION", "legacyCount": 11, "loaded": 11, "loadedAsText": 1, "rejected": 0 },
{ "type": "IMMUNIZATION", "legacyCount": 14, "loaded": 13, "loadedAsText": 0, "rejected": 1,
"rejections": [{ "legacyItemId": "IMM-88120", "reason": "DUPLICATE_OF_TARGET_RECORD" }] },
{ "type": "RESULT", "legacyCount": 212, "loaded": 212, "loadedAsText": 0, "rejected": 0, "window": "LAST_36_MONTHS" }
],
"archive": { "documents": 87, "indexedAt": "2026-03-28T04:12:09Z" },
"portal": { "invited": true, "proxies": [{ "relationship": "PARENT", "carried": false, "reason": "ADOLESCENT_POLICY_REVIEW" }] },
"legacyBalance": { "guarantorId": "G-55120", "amount": 142.60, "route": "LEGACY_PM" }
}
Deterministic checks
POST /crosswalk/match is deterministic: the same legacy record against the same target registry state always yields the same match or the same exception.
- Every reconciliation satisfies
legacyCount = loaded + rejected per class per patient; a batch that does not balance cannot be marked complete.
- The loader is idempotent on legacy item ID; re-running a batch never duplicates an allergy, medication, or result in the target chart.
- Archive writes are content-addressed — the same document written twice yields one object — and no API modifies or deletes an object inside its retention period.
POST /legacy-ar/payments with a date of service on or after {cutover_date} is rejected with 422 and never posts to the legacy ledger.
- MUnit suites cover crosswalk thresholds, per-class reconciliation, runout routing by date of service, and adolescent proxy evaluation.
Testing and validation
- Mock-convert a full production copy at least twice before go-live; the second run's reconciliation must match the first exactly.
- Seed legacy duplicates and a merge chain; confirm one target patient with one history.
- Open the archive from the new chart for a patient with archive-only history; confirm it launches in context without a search.
- Pay a pre-cutover balance through the new portal and confirm it posts to the legacy ledger and the next legacy statement reflects it.
- Run an ROI request for a patient whose only records are archived and confirm a complete package.
Phased rollout
Phase 1 — Connect
- Stand up the legacy System API against a production copy, build the crosswalk, and work the exception queue down before anything loads.
Phase 2 — Map and validate
- Mock-convert, reconcile, and review converted charts with clinicians; load the archive and verify its index against legacy counts.
- Test portal waves and adolescent proxy rules with a pilot group.
Phase 3 — Production
- Convert at cutover, start the runout, invite portal users in waves, and review exceptions daily for the first month.
- Execute the decommission checklist and retire the legacy license.
Success metrics
- Legacy license and hosting retired on the planned date rather than extended.
- Reconciliation balanced for 100% of converted patients, and crosswalk exceptions at zero before decommission.
- Legacy A/R collected through the runout versus adjusted off, against revenue cycle's forecast.
- Archive launches per week trending down as converted history takes over — but never zero in year one, which would mean it isn't reachable.
- Platform: loader throughput and batch failure rate per mock conversion.
Troubleshooting
- Clinicians can't find an old note — Likely cause: documents indexed under the legacy identifier only. Fix: index by target MRN through the crosswalk, and reindex as crosswalk exceptions resolve.
- Duplicate allergies after a rerun — Likely cause: the loader keyed on patient and code instead of legacy item ID. Fix: key on legacy item ID and reconcile before retrying.
- Legacy balances paid into the new ledger — Likely cause: routing keyed on payment date. Fix: route on date of service and move misapplied payments with an audit trail.
- Parents lose portal access and call the contact center — Likely cause: delegate relationships dropped wholesale. Fix: carry permitted relationships in the first wave and send targeted notices only for adolescent records under review.
- Decommission keeps slipping — Likely cause: no definition of done. Fix: gate on the step 6 checklist and report it weekly to the compliance owner.