Blog

    How to Avoid EHR Data Lock-In

    By GauravNovember 26, 20268 mins read
    On this page

    Lock-in rarely comes from a vendor refusing to hand over data. It comes from the day you try to leave and discover the export is missing scanned documents, audit history, appointment notes or the templates your clinicians rely on.

    This post is the engineering side of avoiding that: what to inventory, what to test while you are still happy with the vendor, and how to plan the archive. The contract and legal rights side is covered in our EHR data ownership post.

    How do you avoid EHR data lock-in?

    Planning an EHR exit or a second system?

    Our EHR integration services cover exports, interfaces and the cutover between systems.

    You avoid EHR data lock-in by knowing every place your data lives, running a full export long before you need it, checking that export against the live system, and keeping a plan for the data the export cannot carry. Agnotic Technologies treats this as a recurring test, not a clause you read once at signing.

    A tested export is the difference between a migration project and a hostage negotiation.

    What rules help you get data out?

    Two federal rules help buyers get data out, though neither replaces a tested export.

    The information blocking regulations restrict practices by health care providers, certified health IT developers and health information networks that interfere with access, exchange or use of electronic health information.

    ONC certification criterion 170.315(g)(10) requires certified EHRs to offer a standardized API for patient and population services based on HL7 FHIR.

    A FHIR API covers a defined data set. Much of what a practice depends on, such as scanned documents, billing history and configuration, can sit outside it.

    Which data stores should you inventory?

    List every store the EHR uses, not only the clinical chart. Lock-in usually hides in the stores nobody thought of as data.

    • Clinical record: problems, medications, allergies, results, notes and orders.
    • Documents: scanned paper, faxes, outside records and images attached to the chart.
    • Scheduling: appointment history, recalls, waitlists and visit notes from the front desk.
    • Billing: charges, claims, remittances, balances and payment plans.
    • Audit history: who viewed and changed what, which you may need for investigations.
    • Configuration: templates, order sets, user roles and interface mappings.

    When should you test an export?

    Test it in the first year, while the relationship is good and the vendor team still answers quickly. Then repeat it on a schedule, and after every major upgrade.

    • Pick a sample: a set of patients with long histories, many documents and open balances.
    • Run the export: use the same method you would use to leave, not a special one-off.
    • Compare: check counts and spot-check content against the live screens.
    • Record gaps: list what is missing, in what format, and who would fix it.

    What do exports usually miss?

    Structured clinical data usually exports well. The gaps tend to be in everything around it.

    • Document metadata: files without the date, author or patient link that made them findable.
    • Free text: notes split from the visit they belong to.
    • Local codes: internal codes with no mapping to a standard terminology.
    • History: only the current value of a field, not the changes over time.

    How do you check documents in an export?

    Check them separately from structured data, because documents fail in different ways. A clean count of files can hide files that will not open, files with no patient link, or an index that points to the wrong place.

    • Index first: confirm the export includes a manifest that ties each file to a patient, a date, a document type and an author.
    • Open a sample: pick documents from different years and sources, open each one, and compare it with the live chart.
    • Formats: list every file type found, and note any that need a vendor viewer to read.
    • Multi-page files: check that long faxes and scanned packets arrive whole and in page order.
    • Orphans: count files the manifest does not reference and records that point to missing files.

    If the export cannot carry document metadata, record that as a gap with high priority. A folder of unnamed files is not a usable chart.

    How do you make the export test repeatable?

    Script it. A test that depends on one person remembering the steps will not run again after that person leaves.

    Keep the export request, the load into a test store and the comparison queries in version control. Run them in an isolated environment with the same access controls as production, because the export holds real patient data.

    Delete the test copy when the report is done, and record the deletion. A forgotten export on a shared drive is a privacy problem created by a lock-in exercise.

    Who should own the exit plan?

    Name one business owner and one technical owner. The business owner keeps the plan on the leadership agenda; the technical owner runs the tests, keeps the inventory current and knows the export methods.

    Write down the vendor contacts, the export request process and the accounts involved, and review that list when people change roles. Lock-in often turns out to be lost knowledge rather than missing data.

    Architecture choices that reduce lock-in

    If you build or extend your own EHR, some design choices make leaving any single vendor easier.

    • Own the identifiers: keep your own patient and encounter ids alongside the vendor's.
    • Standard terms: store LOINC, SNOMED CT and RxNorm codes where they exist, not only local codes.
    • Your own copy: replicate the data your product depends on into a store you control.
    • Open formats: keep documents as standard files with metadata, not inside a vendor blob.

    What about the data you cannot migrate?

    Some data will not fit the new system's model. Plan a read-only archive for it rather than forcing it in.

    The archive needs search by patient, the same access controls as the live record, an audit log and a retention plan. Clinicians should be able to open it from the new chart, or they will keep asking for the old system.

    Decide early who answers record requests from the archive, such as a patient asking for a copy or a lawyer asking for a full chart. The archive must be able to produce that output without the old vendor's help, or the vendor stays in your life for years.

    What should an export test report contain?

    A short report that someone outside the project could read and act on. It turns a vague worry about lock-in into a list of specific gaps with owners.

    • Scope: the patients sampled, the export method used and the date it ran.
    • Counts: records per data type in the export compared with the live system.
    • Spot checks: a handful of charts compared screen by screen, with any differences listed.
    • Format notes: file types, encodings and code systems found in each part of the export.
    • Gaps: what is missing, how serious it is, and whether the vendor, your team or nobody can close it.
    • Effort: how long the export took to run and to check, which tells you how a full exit would go.

    Keep each year's report. Comparing them shows whether gaps are closing or growing as your use of the system changes.

    How do you plan the cutover when you do leave?

    Plan it backwards from the day the old system becomes read-only. Everything that must be in the new system on that morning has to be extracted, mapped, loaded and checked before it.

    • Freeze: agree a date after which no new configuration is added to the old system.
    • Bulk load: move historical data early and check it, leaving only recent changes for the final weekend.
    • Delta load: move what changed since the bulk load during the cutover window.
    • Parallel access: keep the old system or the archive available to clinicians for lookups.
    • Close out: confirm the vendor's return or destruction of data under the contract, in writing.

    Our EHR data migration post covers the migration project itself. The point here is that a team which has run export tests for years starts the cutover already knowing where the problems are.

    Mistakes that create lock-in

    • No export until exit: the first full export happens during the move, under a deadline.
    • One owner: only one person knows how the data is structured.
    • Custom fields everywhere: years of local fields with no documentation.
    • Accounts in the vendor's name: hosting, domains or interfaces registered to someone else.

    What are best practices for avoiding EHR data lock-in?

    Inventory every store, test exports yearly and after upgrades, map local codes to standards, keep your own identifiers, and design the archive before you need it. Treat the export test report as a document your leadership reviews, like a disaster recovery test.

    How Agnotic can help

    Agnotic runs export tests, builds data replicas and archives, and plans migrations between EHRs. Many engagements start with a single export test against a sample of patients, which shows quickly where the real gaps are.

    Test your EHR exit with Agnotic

    We run the export, compare it with the live record and write down the gaps.

    Related reading on Agnotic

    Ownership rights, migration and IP for custom builds.

    Sources

    Frequently Asked Questions

    It is when moving to another system is impractical because data, documents, history or configuration cannot be exported completely or in a usable form.

    Talk to an engineer about your project

    Send us your EHR's export options. We will plan a test against a sample of patients.