Switching behavioral health EHRs: certified EHRs must export all patient records, information blocking penalties up to $1 million, six to ten week switch, 5 to 10 year retention

What happens to your patient records when you switch behavioral health EHRs?

When a behavioral health practice switches EHRs, the patient records stay the practice’s legal responsibility, the outgoing vendor must provide an electronic export of all electronic health information for all patients (a requirement of ONC certification since December 31, 2023), and the practice decides, record type by record type, what to migrate into the new system, what to keep in a read-only archive, and what to export as files. Nothing is lost if the switch is planned around retention law and the contract’s exit terms. Records are lost when the practice discovers the export fee, the format, or the 90-day access cutoff after cancellation. (If the old vendor has shut down rather than been replaced, see our guide on what to do when your EMR goes out of business.)

The rules behind that answer are federal and recent. ONC’s certification criterion 170.315(b)(10) requires certified EHRs to let a user export a single patient’s or the whole patient population’s electronic health information in a computable format, at any time, without the developer’s help. The 21st Century Cures Act information blocking rule makes it unlawful for a certified health IT developer to interfere unreasonably with access to that information, with civil penalties of up to $1 million per violation. A vendor that says “we don’t do exports” or quotes a fee designed to keep you from leaving is describing a practice the law now reaches.

What are your legal rights to your data when leaving an EHR vendor?

A practice leaving an EHR vendor has three sources of rights: the ONC certification criteria that require an EHI export, the information blocking rule that prohibits unreasonable interference by developers and networks, and the contract, which governs fees, formats, and timing within the limits the first two set. The practice also keeps its HIPAA obligations throughout, because it is the covered entity and the vendor is its business associate.

RuleWho it bindsWhat it means when you switch
ONC 45 CFR 170.315(b)(10), EHI exportDevelopers of certified health IT (required by December 31, 2023)You can run a single-patient or all-patient export of all EHI the system stores, in an electronic, computable format, with a public link to the format’s documentation, without developer assistance.
Information blocking, 45 CFR Part 171Certified developers, HIEs/HINs, and providersDevelopers may not unreasonably interfere with access, exchange, or use of EHI. OIG may impose civil monetary penalties up to $1 million per violation on developers and networks (enforcement began September 2023). The fees exception does not cover fees for exporting EHI to switch systems.
HIPAA business associate rules, 45 CFR 164.504(e)The practice and its vendorAt termination, the BAA should require the vendor to return or destroy PHI, or to extend protections for as long as it is kept. Keep the BAA in force until the archive is closed.
HIPAA right of access, 45 CFR 164.524The practicePatients can request their records during and after the transition; the 30-day response clock does not pause for a migration.
Your contractBoth partiesNotice period, export fees, data format, how long you can log in after cancellation, overlap licensing, and archive access. Negotiable at signing, much less so at exit.

One practical point: the (b)(10) export gives you the data, not a migration. It arrives as a bulk file set in the vendor’s documented format, often a mix of structured data, C-CDA documents, and attachments. Turning that into usable charts in the new system is the migration project, and it is the part the new vendor does, not the old one.

How long do you have to keep behavioral health records?

HIPAA requires that policies, procedures, and compliance documentation be retained for six years (45 CFR 164.316(b)(2)), but HIPAA does not set a retention period for medical records themselves; that comes from state law and licensing boards, and for behavioral health it commonly runs five to ten years for adults, longer for minors. Whatever system holds the records during that period, the practice is responsible for producing them.

RequirementPeriodNotes
HIPAA documentation (policies, risk analyses, BAAs, authorizations, disclosure logs)6 years from creation or last effective date45 CFR 164.316(b)(2). Not the medical record itself.
State record retention, adults (behavioral health licensees)Commonly 5 to 10 years from last contactNew York: at least 6 years (8 NYCRR 29.2(a)(3), psychologists, social workers, mental health practitioners). Texas: 7 years after services end (22 TAC 465.22 psychologists, 681.36 LPCs, 801.48 LMFTs). California: 7 years from termination (Bus. & Prof. Code 2919 psychologists; 4980.49, 4993, 4999.75 for LMFTs, LCSWs, LPCCs). Florida: 7 years after last contact (64B4-9.001 for LCSW, LMFT, LMHC). New Jersey: 7 years for physicians; check the relevant professional board for other licenses.
State record retention, minorsLonger of the adult period or a set time past the age of majorityNew York: 6 years and until 1 year after the client turns 21. Texas (psychologists, LPCs, LMFTs): 5 years after the client reaches the age of majority if that is longer. California: 7 years after the client turns 18. Confirm with your licensing board.
Psychotherapy notes (45 CFR 164.501)State law; no federal periodKept separate from the record; decide explicitly whether they migrate, archive, or are destroyed under policy.
42 CFR Part 2 SUD recordsState law for retention; Part 2 governs disclosureThe migration itself is a disclosure to the new vendor as a business associate or qualified service organization; confirm agreements are in place before data moves.
Medicare and Medicaid documentationCommonly 6 to 10 yearsPayer contracts and state Medicaid rules set audit look-back periods; keep claims support available for the longer of the two.

The retention table is the reason “just migrate the active clients” is incomplete. A client discharged in 2021 is still inside most retention windows in 2026 and can request records, be subpoenaed, or be included in a payer audit. Every record inside its retention period needs a home after the switch: the new EHR, a read-only archive, or an organized export the practice can search.

What migrates cleanly, and what does not

Structured data (demographics, insurance, diagnoses, medications, allergies, appointments, outcome scores) migrates cleanly; documents migrate as files attached to the chart; and the behavioral-health-specific content (treatment plans with goals and objectives, psychotherapy notes, group notes, e-signatures, audit logs, and billing history) is where migrations lose fidelity unless the plan addresses each one.

Record typeHow it typically arrivesMigration resultRecommendation
Demographics, insurance, contactsStructured export (CSV, C-CDA)Clean, with field mappingMigrate; validate a sample of 50 charts
Diagnoses, medications, allergiesC-CDA or structured exportClean if codes (ICD-10, RxNorm) come throughMigrate active problems; archive the full history
Appointment historyStructured exportUsually clean; attendance status may be lostMigrate 2 to 3 years; archive the rest
Progress notesPDF per note, or structured textReadable, not searchable as data if PDFMigrate as documents; keep archive for text search
Treatment plansPDF or proprietary structureGoals and objectives rarely map to the new plan modelAttach old plans as documents; rebuild active plans at the next review
Psychotherapy notesOften excluded or mixed into notesFidelity risk; separation can be lostDecide by policy before export; keep separate
Outcome measures (PHQ-9, GAD-7)Structured if the old system stored scores as dataClean when structured; lost if stored as PDFsMigrate as data so trend lines continue
Scanned documents, consents, releasesFiles with limited metadataAttached to chart; indexing may be lostMigrate with document type and date mapped
E-signatures and audit logsUsually not exported, or exported as reportsSignature validity lives in the old system’s logExport signed PDFs with signature blocks; retain audit log report in the archive
Claims, payments, A/RReports, ledger files, 837/835 filesOpen balances need manual entry; history does not migrateRun out A/R in the old system; migrate open balances only
Phone notes, memos, messagesOften not in the exportLost unless requested specificallyAsk for them by name in the export request

Migration behavior by record type compiled from vendor migration guides including mdhub (October 2026) and Bonami Software (October 2026), and from Medi-EHR implementation experience.

Migrate, archive, or export: how to decide

Migrate what clinicians need at the point of care for active clients (demographics, active problems, medications, allergies, active treatment plan, recent notes, outcome scores); archive the complete legacy record in a read-only system that is searchable by patient and document type; export anything that fits neither category as organized files the practice controls. Migrating everything is the most common mistake, because it turns a six-week switch into a months-long data conversion and brings over the old system’s errors.

Migrate

Active clients and a defined look-back, usually two to three years of structured data and notes. Validate with a chart-by-chart sample before go-live.

Archive

Everything inside its retention period, including discharged clients, full note history, billing history, and audit logs. Read-only, searchable, with its own BAA and access controls. Priced per month or as a one-time load; often far cheaper than keeping the old EHR license alive.

Export and hold

The raw (b)(10) export and any PDFs, kept in encrypted practice-controlled storage as the backstop. Verify you can open and read it before the old vendor’s access ends.

Our guides on archiving old EHR records and on retiring eClinicalWorks without losing record access cover the archive side in more depth. Keeping the old vendor’s license running as the archive is the expensive version of this plan. It works for a short overlap of two to four weeks while the new system is validated. It fails as a long-term archive because the subscription continues, the access cutoff eventually arrives anyway, and the old system remains a second place PHI lives.

The switch, step by step

Most group practice switches run six to ten weeks from export to go-live once the contract with the new vendor is signed. The sequence:

1. Read the exit terms (week 0)

Notice period, renewal date, export fee and format, turnaround time, and how long logins and exported files stay available after cancellation. Give notice in writing on the date the contract requires.

2. Request the full export (weeks 1 to 2)

Ask by name for every record type in the table above, including phone notes, audit logs, and e-signature PDFs. Request the data dictionary. Confirm the files open and the patient count matches.

3. Map and load (weeks 2 to 5)

The new vendor maps fields, loads a test batch, and the practice validates a sample of charts across clinicians, programs, and payers. Fix mappings, then load the full migration set.

4. Stand up the archive (weeks 3 to 5)

Load the complete legacy record into the archive and test searches for a discharged client, a subpoenaed record, and a payer audit request.

5. Run out billing (weeks 4 to 8)

Submit remaining claims from the old system, post remittances, and move only open balances. Switch payer EDI and ERA enrollment to the new clearinghouse; this takes two to six weeks per payer and should start early.

6. Go live with a short overlap (weeks 6 to 10)

New visits documented in the new system from the cutover date. Keep old-system read access for two to four weeks, then close it, confirm return or destruction of PHI under the BAA, and record the date.

Contract terms that decide whether the switch goes well

Export fees are legal; export fees that prevent a practice from leaving are not, and the difference is often a negotiation. One widely used practice platform publishes export charges of $250 for clinical data, $1,000 for billing data, and $2,000 for notes and documents up to 20,000 files, with a 30-business-day turnaround and exported data kept for three months. Those numbers are manageable if you know them in week 0 and a problem if you learn them after giving notice. Put the following in every EHR contract you sign, including the next one: the export format and price, the turnaround time, the post-termination access window, the archive option and its price, the overlap license price, and a statement that the vendor’s (b)(10) export is available at any time without additional fees beyond those stated.

Medi-EHR is an ONC-Certified, cloud-based EHR platform built on AWS for behavioral health practices and managed care organizations. Incoming migrations use the (b)(10) export from the previous system, C-CDA import, and custom API and HL7 FHIR interfaces where the old vendor supports them, with a validated sample review before full load. The platform’s own EHI export is available to the practice as the certification criterion requires, and exit terms are stated in the agreement rather than discovered at termination. Medi-EHR’s certification and cost disclosures are published on its ONC Certification and Costs page.

Key takeaways

  • ONC-certified EHRs have been required since December 31, 2023 to provide a single-patient and all-patient export of all electronic health information in a computable format, without developer assistance (45 CFR 170.315(b)(10)).
  • The information blocking rule prohibits certified developers from unreasonably interfering with access to EHI, with civil monetary penalties up to $1 million per violation; the fees exception does not cover charges for exporting data to switch systems.
  • HIPAA requires six-year retention of compliance documentation but does not set a medical record retention period; state law commonly requires 5 to 10 years for adults and longer for minors.
  • Structured data migrates cleanly; treatment plans, psychotherapy notes, e-signatures, audit logs, and billing history are the record types most often lost or degraded without a specific plan.
  • Migrate active clients and two to three years of data, archive the complete legacy record in a searchable read-only system, and keep the raw export as a backstop.
  • A typical group practice switch runs six to ten weeks; payer EDI re-enrollment takes two to six weeks per payer and should start first.
  • Published export fees at one major vendor run $250 to $2,000 per data type with a three-month retention of exported files; read exit terms before giving notice.

Frequently asked questions

Can an EHR vendor refuse to give me my patient data when I switch?

Not if the vendor’s product is ONC-certified. Since December 31, 2023, certified EHRs must provide a user-run export of all electronic health information for a single patient or all patients in a computable format (45 CFR 170.315(b)(10)). The information blocking rule also prohibits certified developers from unreasonably interfering with access to EHI, with civil penalties up to $1 million per violation. Reasonable, disclosed fees are allowed; refusal or fees designed to prevent switching are not.

How long do I have to keep therapy records after switching EHRs?

HIPAA requires compliance documentation to be kept for six years, but medical record retention periods come from state law and licensing boards: commonly 5 to 10 years for adults from the last encounter, and until the age of majority plus several years for minors. Records inside their retention period must remain producible after the switch, whether in the new EHR, a read-only archive, or an organized export.

Should I migrate all patient records to the new EHR?

Usually no. Migrate active clients and a defined look-back of two to three years of structured data and notes, archive the complete legacy record in a searchable read-only system, and keep the raw export as a backstop. Migrating everything lengthens the project, brings over old data errors, and rarely improves care, since discharged clients’ records are needed for requests and audits, not for daily charting.

What happens to e-signatures and audit logs when you switch EHRs?

They usually do not migrate as live data. Signature validity depends on the old system’s audit log, so export signed notes and consents as PDFs that show the signature block and date, and export the audit log as a report into the archive. The new system’s signatures and logs begin at go-live.

How long does it take to switch behavioral health EHRs?

Six to ten weeks from export to go-live is typical for a group practice once the new contract is signed, with about a month of active mapping and validation work. Payer EDI and ERA re-enrollment takes two to six weeks per payer and is often the longest single item, so it should start as soon as the new clearinghouse is known.

Does switching EHRs count as a HIPAA disclosure?

Moving PHI to the new vendor is a disclosure to a business associate, permitted under HIPAA when a business associate agreement is in place. For substance use disorder records under 42 CFR Part 2, the new vendor must be covered as a business associate or qualified service organization before data moves. At termination, the old vendor’s BAA should require return or destruction of PHI, or continued protection for anything retained.

Switch without losing a record

Medi-EHR imports from your current system’s EHI export, C-CDA, and HL7 FHIR interfaces, validates a chart sample with your team, and states exit terms in the agreement up front. Request a demo, or see the behavioral health EHR overview first.

Sources and references

Written by the Medi-EHR Clinical Technology Research Team and reviewed by Matthew D’Alessandro, Founder, Medi-EHR, November 2026. Payer rules, statutes, and vendor pricing change; verify against the primary sources above before relying on a figure for a compliance or purchasing decision.

Previous Post
Starting a Behavioral Health Practice: EHR, Billing, Credentialing, and Intake