When a health system, practice group or digital health company pays an outside team to build a custom EHR, most assume they own what they paid for. Often they do. Sometimes they own less than they think: a licence instead of the code, a product that depends on the vendor's private framework, or cloud accounts registered to someone else.
This guide explains custom EHR IP ownership in practical terms: who owns code by default, how ownership is transferred, what background IP and open source mean for you, and what to agree before the first line of code is written. It is written from the engineering side and is not legal advice. Have your counsel review any contract before you sign it.
What is custom EHR IP ownership?
Planning a custom EHR build?
Agnotic builds custom EHR software and integrations, and walks through ownership and handover before work starts.
Custom EHR IP ownership is the question of who holds the rights to the code, designs, documentation and other work created when an outside team builds an EHR for you. The development contract settles it: what is assigned to you, what the vendor keeps and licenses to you, and which third-party and open source parts it uses.
Patient data is a separate question, covered by different rules and agreements. This guide is about the software itself.
Who owns code written by a contractor by default?
In the United States, code written by an outside contractor does not automatically belong to the client. Ownership depends on copyright law and on what the contract says.
- Work made for hire: The US Copyright Office's Circular 30 explains that a work made for hire is one created by an employee within the scope of employment, or a specially commissioned work in certain listed categories with a signed written agreement. For a work made for hire, the employer or commissioning party is the author.
- Transfers need writing: Under 17 U.S.C. 204(a), a transfer of copyright ownership is not valid unless it is in writing and signed by the owner of the rights conveyed or their authorized agent.
Custom software often does not fit the listed commissioned categories, which is why development contracts usually include an express written assignment of rights to the client. Ask your counsel how this applies to your contract and your jurisdiction.
Why does custom EHR IP ownership matter now?
It matters because an EHR is a long-lived asset. You will extend it, move it between vendors, perhaps certify it, raise money on it or sell the company that owns it, and every one of those depends on clear ownership.
- Changing vendors: Without ownership and complete source code, a new team cannot take over.
- Investment and sale: Investors and buyers check IP ownership during due diligence.
- Certification: If you plan to certify the product, you need control of the code and its documentation.
- Security and compliance: You need the code and access to fix vulnerabilities quickly.
Ownership problems rarely show up while the original vendor is doing good work. They appear when you want to change vendors, bring development in-house or answer an investor's due diligence questions, which is exactly when there is least time to fix them.
What is background IP and why does it matter?
Background IP is anything the vendor owned before your project, such as frameworks, libraries, templates and tools, that they bring into your product. Vendors usually keep ownership of it and give you a licence to use it.
- Identify it: Ask the vendor to list background IP that will be included in your product.
- Licence terms: Make sure the licence is perpetual, irrevocable and covers modification and use by future vendors.
- Transferability: Confirm the licence transfers if your company is sold.
- Minimize it: Prefer standard open source components over private vendor frameworks where practical.
A product built mostly on a vendor's private platform can be hard to move. That is not always wrong, but it should be a conscious decision, with licence terms that protect you if the relationship ends.
How does open source affect ownership?
Almost every modern EHR uses open source components. You do not own them, but their licences let you use them under conditions, and some licences carry obligations that affect how you distribute the product.
- Inventory: Ask for a software bill of materials listing every open source component and its licence.
- Licence review: Check licences with obligations that could apply when you distribute the software.
- Approved list: Agree in advance which licence types the team may use without asking.
- Updates: Track components for security updates as part of normal maintenance.
What else must the client control?
Ownership of code is not enough if the vendor controls everything around it. The client should own or control the accounts and assets needed to run and change the product.
- Source code repository: In the client's organization, with the vendor as a member.
- Cloud accounts: Production and staging hosted in accounts the client owns.
- Domains and certificates: Registered to the client.
- Third-party services: Contracts for messaging, e-prescribing and other services in the client's name where possible.
- Credentials and keys: Stored in a client-controlled secrets manager.
- Documentation: Architecture, deployment and runbooks kept current in the repository.
What should the handover package include?
A handover package should let a different team build, deploy, run and change the EHR without calling the original vendor. If any item is missing, the client owns the code on paper but cannot use it freely.
- Complete source code: Every service, script and configuration file, in the client's repository.
- Build and deploy guide: Steps tested by someone who did not write the code.
- Infrastructure as code: Environments defined in files, not built by hand in a console.
- Architecture notes: Main components, data flows and key decisions with their reasons.
- Test suite: Automated tests that run in the client's pipeline.
- Open source inventory: Components, versions and licences.
- Operations runbooks: Monitoring, backups, restores and incident steps.
The best test is simple: ask an engineer outside the vendor team to stand up a fresh environment from the package alone. Whatever they get stuck on is what the package is missing.
How do teams approach custom EHR IP ownership step by step?
Settle ownership before work starts, then keep it true throughout the project with regular checks.
- 1. Contract review: Counsel reviews assignment, background IP and licence terms before signing.
- 2. Account setup: Repositories and cloud accounts created in the client's name at kickoff.
- 3. Background IP list: The vendor lists any pre-existing components it will include.
- 4. Open source policy: Approved licence types agreed and an inventory kept current.
- 5. Regular handover checks: Confirm the client can build and deploy from its own repository.
- 6. Final handover: Code, documentation, credentials and a walkthrough at the end of each phase.
What are the common mistakes with custom EHR IP ownership?
The common mistakes come from assuming ownership instead of checking it, and from leaving operational control with the vendor.
- No written assignment: Paying for code without a signed assignment of rights.
- Unlisted background IP: Discovering at handover that core parts belong to the vendor.
- Vendor-owned accounts: Repositories, cloud and domains registered to the vendor.
- No build instructions: Code delivered that no one else can build or deploy.
- Unknown open source: No inventory, so licence and security risks are invisible.
- Handover only at the end: Gaps found when the relationship is already ending.
What does this mean for your build plan?
It means treating ownership as part of the project plan, not a clause read once at signing. Put the checks into the schedule alongside features.
- Before kickoff: Contract reviewed, accounts set up in your name, background IP listed.
- Every release: Build and deploy from your own repository by someone outside the vendor team, at least once per phase.
- Every quarter: Open source inventory and documentation reviewed.
- At handover: Full walkthrough with your own engineers or a third party.
How Agnotic can help
Agnotic Technologies builds custom EHR software and integrations for healthcare organizations. Before work starts, we walk through how ownership, background components, open source and handover would work for your project, and we set up repositories and cloud environments so your team can build and run the product.
If you are taking over an EHR from another vendor, we can review the code, accounts and documentation you received and tell you what is missing.
Build an EHR you can fully run
Talk to our engineers about your EHR build and handover, or read more EHR integration articles in the hub.
Related reading on Agnotic
See who owns EHR data, how custom EHRs are built, how healthcare IT outsourcing works and how EHR integrations are planned.


