How to Build an EHR System: A Step-by-Step Guide (2026)
Founder & CEO
15+ years building healthcare technology. Founder & CEO of Nirmitee.io, whose teams deliver EHR integrations, FHIR and HL7 platforms, ABDM and NHCX connectivity, and clinical AI for health systems and healthtech companies.

Short answer. To build an EHR system, you choose a route (configure an existing EHR, build on an open FHIR platform, or write every module), scope a first release for one specialty, then build, test and certify it before go-live. A custom EHR is one built around a single care setting's workflows instead of a vendor's templates. A first release for one specialty typically takes 10 to 12 weeks and costs $45K to $70K with us; a full specialty EHR takes 4 to 6 months and costs $90K to $160K. Build when your specialty is poorly served, when you have many users, or when the EHR is your product. For a small practice with standard workflows, buying is usually cheaper. See prices and example screens on our EHR software development services page.
EHR software development is the work of building an electronic health record system: the patient record, scheduling, clinical documentation, orders and results, e-prescribing, billing, a patient portal, and the FHIR, HL7 and X12 connections that link it to labs, pharmacies, payers and other EHRs. A custom EHR can mean configuring an existing EHR, building on an open FHIR or openEHR platform, or writing every module yourself; the right choice decides most of the cost.
Updated October 2026.
This guide is for founders, product leaders and CTOs at digital health companies deciding whether to build, buy or extend an EHR, and for teams scoping the work with a development partner. It covers the build vs buy decision, how to build a custom EHR step by step, MVP scope by specialty, the modules an EHR needs, ONC certification and when you actually need it, architecture, the integration layer, security, timeline, cost, team and how to choose a partner. If you already know you want a team to build it, our custom EHR development services page shows how we scope and deliver EHR builds.
Key takeaways
- Decide early whether you are building an EMR for one organization or an EHR that exchanges records across providers. The data model and integration plan follow from that choice.
- Most digital health companies do not need a full EHR. Extending an open-source FHIR platform or building specialty modules on top of an existing EHR is often faster and cheaper.
- Decide on ONC certification from your customers' program requirements, contracts and the claims you want to make. An app does not need its own certification just because it reads data from a certified EHR.
- After the core modules, most of the effort sits in the integration layer: HL7 v2 for labs and hospitals, FHIR for apps and patient access, X12 for payers, NCPDP SCRIPT for pharmacies.
- Budget for integrations, HIPAA controls, data migration and training separately. They are where EHR budgets overrun.
What is EHR software development?
EHR software development means designing, building and running the system that holds a patient's longitudinal health record and the clinical and financial workflows around it. It is part product engineering, part clinical workflow design and part interoperability work, because an EHR is only as useful as the systems it can exchange data with.
The term covers several different projects that are easy to confuse. A clinic group may want a specialty EMR for its own workflows. A digital health startup may need a lightweight clinical record behind its virtual care product. A health system may want to modernize a legacy system or add specialty modules around its main EHR. Each has a different scope, cost and certification path, so name yours before you scope anything.
EHR vs EMR: which one are you building?
An EMR is the digital chart of one practice or organization; an EHR is a patient-centric record designed to be shared across providers, care settings and time. Most products labeled EMR today still need some EHR-level exchange, so plan the data model for sharing even if the first release serves one clinic.
| Question | EMR | EHR | Practice management system |
|---|---|---|---|
| Whose record is it? | One practice or organization | The patient, across providers | The practice's business operations |
| Main users | Clinicians at one site | Clinicians, patients, care teams, other organizations | Front desk, billing staff |
| Core data | Notes, orders, results, medications | Everything in an EMR plus records received from others | Schedules, demographics, claims, payments |
| Exchange | Limited, often exports | Designed for FHIR and HL7 exchange | X12 claims, eligibility and remittance |
| Typical build trigger | Specialty workflow the market ignores | Care coordination or multi-site product | Billing and scheduling for a clinic group |
In practice many products combine all three. A behavioral health platform, for example, usually needs clinical documentation, scheduling and claims in one product, and FHIR access for partners.
Should you build, buy or extend an open-source EHR?
Buy when your workflows are standard and speed matters; build when your clinical workflow is the product; extend an open-source platform when you need a custom product without writing a clinical data layer from scratch. A hybrid, specialty modules around an existing EHR, is the most common answer for health systems.
| Option | Best for | Main advantage | Main risk |
|---|---|---|---|
| Buy an off-the-shelf EHR | Clinics with standard workflows that need to go live fast | Certified modules and vendor-managed updates | Hard and expensive to bend to specialty workflows; per-provider fees grow with you |
| Build a custom EHR | Digital health products that compete on clinical workflow or experience | Full control of the data model, workflow and roadmap | Highest cost and time; you own security, compliance and every integration |
| Extend an open-source FHIR platform | Startups that need a custom product quickly | A standards-based data layer and API on day one | You still own hosting, hardening and support; the platform's model shapes yours |
| Hybrid: modules around an existing EHR | Health systems and specialty groups | Keeps the certified core, adds differentiated workflow | Depends on the host EHR's APIs and approval process |
Answer the four questions in order for your first workflow. The first yes gives you the option to scope.
Custom or heavily tailored EHR development becomes the smarter choice when:
- You operate in specialty care (oncology, fertility, behavioral health, complex surgery, home health, occupational health) with unique documentation and workflows.
- You are a digital health product company or health-tech startup that wants to differentiate on clinician experience, workflow automation, or patient engagement.
- You need tight integration with national frameworks and bespoke systems, such as state registries, insurer platforms, lab networks, or bespoke clinical decision support tools.
- You expect frequent product iteration and want the EHR to evolve alongside your business rather than being constrained by a vendor roadmap.
Custom development demands more effort and governance, but it lets you encode your care model in software instead of making clinicians adapt to generic screens. If your product only needs to read and write data in an existing EHR, you may not need an EHR at all: see our guide on how to integrate with Epic and our comparison of EHR integration APIs.
What are the benefits and challenges of EHR software development?
The main benefit of building is control: your workflow, data model and roadmap stay yours. The main challenge is that you also take on security, integrations and support for as long as the product runs.
| Benefit | The challenge that comes with it | How to reduce the risk |
|---|---|---|
| Screens fit one specialty's workflow | Clinicians have little time to review builds | Book weekly reviews before the build starts |
| You own the data model and roadmap | A weak early model is costly to change later | Keep the FHIR model in mind from the first release |
| No per-provider licence fee to the vendor | Hosting, support and updates become your running cost | Budget them yearly before you compare against a subscription |
| Connections are built for the systems you use | Each lab, payer and EHR link needs its own build, test and vendor access | List every connection in discovery and price each one |
| You can add AI and automation on your own terms | Clinical safety and audit duties sit with you | Keep a clinician review step and log each automated action |
Custom EHR vs EHR customization vs building on a platform
"Custom EHR" is used for three different projects. EHR customization means configuring an EHR you already license. Building on a platform means writing your own product on an open clinical data layer. Building from scratch means you own every layer. Pick the lightest option that still lets you deliver the workflow that makes you different.
| EHR customization | Custom EHR on a platform | Custom EHR from scratch | |
|---|---|---|---|
| What you change | Templates, order sets, flowsheets, rules, reports; apps on the vendor's APIs | Screens, workflows and services on top of a ready data layer and API | Everything: data model, modules, API, hosting |
| Example bases | The EHR you license (configuration by its analysts or a partner) | FHIR servers such as HAPI FHIR, Medplum or Aidbox; openEHR repositories such as EHRbase; open-source EHRs such as OpenEMR | Your own database and services |
| Who owns the roadmap | The EHR vendor | You, within the platform's data model | You |
| Certification | Check that your configured product, version and use stay within the vendor's certified scope | Yours to obtain if you need it | Yours to obtain if you need it |
| Main risk | Workflows you cannot change; per-provider fees | Platform limits and licence terms; you still run hosting and support | Cost, time and every security and integration duty |
| Choose it when | Your workflow is close to standard | You need your own product quickly on a standards-based core | The data model itself is your advantage |
Check each platform's licence and support terms yourself; open-source licences and paid tiers change. If you are weighing openEHR, our guide on why openEHR makes clinical data AI-ready explains the model.
What should a custom EHR MVP include for your specialty?
Every EHR MVP shares a core: patient records, identity and access control, clinical notes and an audit log. Scheduling, orders, prescribing and billing are chosen from the actual workflow. What differs by specialty is the one or two workflows that make clinicians switch. Build those first and keep everything else minimal.
| Specialty | Specialty workflow to get right first | Rules and data to plan for |
|---|---|---|
| Behavioral health | Treatment plans, progress notes, measurement-based care scores, group sessions | Substance use disorder records under 42 CFR Part 2 need consent handling that matches the regulation's scope and exceptions |
| Physical and occupational therapy | Plan of care, visit notes, functional outcome measures, visit counts | Payer visit limits and therapy billing codes |
| Dermatology | Body map, photo capture and comparison, procedure notes | Image storage, consent for photos, pathology results |
| Oncology | Treatment regimens and cycles, staging, toxicity tracking | Dose calculations need clinical safety review |
| Fertility | Cycle tracking, monitoring visits, lab and embryology records | Partner and donor records linked to one treatment |
| Home health | Offline-capable visit notes, scheduling by route, assessments | OASIS assessments for Medicare-certified agencies |
| Pediatrics | Growth charts, immunization schedules, well-child visits | Reporting to state immunization registries |
What features does EHR software need?
For which of these belong in the first release, see the MVP table above.
The screens in this section come from CareOS, the EHR design system and working prototype our team built. Every patient on them is test data. Each screen sits under the feature it shows, so you can see what the requirement looks like on a real screen.
A full EHR covers a patient master record, scheduling, clinical documentation, orders and results, e-prescribing, billing and coding, a patient portal and reporting. Advanced products add clinical decision support, remote monitoring, workflow automation and telehealth built into the encounter.
| Module | What it must do | Where teams get it wrong |
|---|---|---|
| Patient master record | Identity, demographics, insurance, allergies, problems and medications with full history | No duplicate detection or merge process, so records split |
| Scheduling | Provider and resource calendars, telehealth slots, reminders, wait-lists | Treated as a calendar instead of capacity management |
| Clinical documentation | Specialty templates, structured capture with SNOMED CT, LOINC and ICD-10, smart defaults | Too many fields and too much free text; clinicians copy and paste |
| Orders and results | Lab, imaging and referral orders, order sets, a single results inbox with critical alerts | Corrected results and acknowledgement not handled |
| e-Prescribing | Drug and allergy checks, formulary, transmission to pharmacies over NCPDP SCRIPT | Network certification and controlled-substance rules left too late |
| Billing and coding | ICD-10 and CPT coding, charge capture, claims, eligibility and remittance | Built without a clearinghouse plan, so claims cannot go out |
| Patient portal | Visit summaries, results, messaging, self-scheduling, consent | Portal data out of sync with the clinical record |
| Reporting | Operational and quality dashboards, exports to analytics | Reports built straight on the transactional database |
The sections below describe what each core module has to handle in production.
Complete patient management
At the heart of the system lies a robust patient master record. It must handle identity resolution across multiple sources, duplicate detection, and linkage to source-specific identifiers where applicable, such as payer member IDs or state immunization registry identifiers.
This involves:
- Rich demographic and contact details with support for multiple addresses and phone numbers.
- Allergy, problem, and medication lists maintained over time rather than overwritten, with complete version history.
- Support for multiple insurance coverages, guarantors, and payer relationships.
The data model must gracefully handle patients with fragmented histories, cross-border care, or complex social histories without becoming a tangle of free-text notes.
What to test: Test merging two duplicate records and check that allergies, problems and history from both survive.
Appointment and resource scheduling
Scheduling is no longer a simple calendar feature. It is the backbone of access and capacity management. A modern EHR should coordinate:
- Provider calendars across locations, including teleconsultation windows.
- Room, equipment, and procedure slot booking.
- Wait-lists, overbooking rules, and automated reminders via SMS, email, or in-app notifications.
In high-volume settings, the scheduling module should work alongside triage rules to prioritize high-risk patients, post-discharge follow-ups, or chronic disease reviews instead of blindly filling slots on a first-come, first-served basis.
What to test: Test a provider's calendar change that affects booked patients, and check that each patient gets the right reminder.
Clinical documentation that clinicians actually use
Documentation has historically been the source of most clinician frustration. For modern systems, the expectations are far higher:
- Template-driven notes that adapt to specialty, visit type, and context rather than one giant generic form.
- Structured capture of problems, procedures, and findings using standard terminologies such as SNOMED CT, LOINC, and ICD for analytics, reporting, and interoperability.
- Support for rich media such as diagrams, images, and annotated scans within the encounter note.
- Smart defaults, autopopulation of known values, and context-aware prompts to minimize repetitive data entry.
The goal is not to increase the number of fields but to help clinicians document complex encounters quickly without relying on copy-paste or free-text shortcuts.
What to test: Test that a signed note cannot be edited, and that an addendum is saved with its own author and time.
Order entry, e-prescribing, and results management
Order entry should include diagnostic tests, procedures, referrals, and medications, with clear order sets for common conditions.
For prescriptions, the system should:
- Check for drug-drug and drug-allergy interactions.
- Validate formulary rules and prior authorization requirements where applicable.
- Support electronic transmission to pharmacies or dispensing units and capture fulfillment status.
Results management must give clinicians a single, unified place to see labs, imaging, and other diagnostics, including:
- Critical value alerts.
- Longitudinal visualization of results.
- Tools to acknowledge, annotate, and document follow-up actions.
What to test: Test a corrected lab result replacing the original in the chart.
Billing, coding, and revenue cycle integration
In most health systems, financial workflows are tightly intertwined with clinical documentation. The EHR must therefore:
- Support structured coding of diagnoses and procedures using ICD, CPT, or local coding systems.
- Generate claims or invoices using rules based on encounter type, coverage status, and bundled payment logic.
- Integrate with external billing systems, payer portals, or national schemes, with clear reconciliation and denial-tracking workflows.
In markets shifting toward value-based care, the revenue cycle must also support outcome metrics rather than only fee-for-service billing.
What to test: Test a claim rejected by the clearinghouse and check that it returns to a work queue with the reason.
Patient portal and engagement features
Patients increasingly expect seamless digital access to their health information. Modern EHR platforms should offer:
- A secure portal or mobile app with access to visit summaries, lab results, immunization records, and prescriptions.
- Self-service scheduling, rescheduling, and cancellation.
- Digital consent management so patients can manage sharing permissions across providers.
A well-designed portal becomes a collaborative space between clinicians and patients rather than a static information repository.
What to test: Test that a result released in the chart shows in the portal, and that a hidden one does not.
Reporting and operational analytics
EHRs gather massive amounts of structured data. Without strong analytics, this becomes a wasted asset. A capable reporting layer should:
- Provide operational dashboards (patient volumes, wait times, occupancy, billing performance).
- Surface quality and safety indicators (readmissions, adverse events, missed follow-ups).
- Allow export and integration with external analytics systems or data warehouses.
In mature organizations, this evolves into real-time monitoring of patient flow, staffing, and resource utilization to drive continuous improvement.
What to test: Test that a dashboard total matches a count run against the source records for the same period.
Advanced capabilities and current trends
The latest trends in EMR and EHR software development add value only once the fundamentals are stable. Add them in this order of evidence:
- Clinical decision support that blends guidelines with local data, governed so it does not flood clinicians with alerts.
- Remote monitoring that ingests device readings and shows exceptions, not raw streams.
- Administrative automation for document extraction, scheduling and claim checks, using AI agents connected to the EHR.
- Telehealth as a normal encounter type with documentation, orders and billing.
- FHIR APIs for patient access and partner apps, which certified EHRs must offer anyway.
What to test: Test each added capability with alerts or automation switched off, and check the core workflow still works.
Which type of EHR are you building?
Most new EHRs are web apps hosted in a HIPAA-ready cloud, with a phone app for staff or patients added where the workflow needs it. On-premise and hybrid set-ups still make sense for hospitals with strict data residency rules or a legacy system to retire in stages.
| Type | Fits | Watch out for |
|---|---|---|
| Web app, cloud hosted | Most practices, specialty groups and digital health companies | HIPAA hosting and a signed BAA with the cloud provider |
| Mobile app for staff or patients | Home health, field visits, patient engagement | Offline work, device loss and session security |
| On-premise | Hospitals with strict data residency rules | You run upgrades, backups and security yourself |
| Hybrid | Groups moving off a legacy on-premise EHR | Two systems to keep in sync during the migration |
Do you need ONC certification for your EHR?
You need ONC certification only if providers will use your product as certified health IT to meet federal program requirements, such as the Medicare Promoting Interoperability program. A specialty app, analytics tool or patient app that reads data from a certified EHR does not need its own certification.
Program rules also reach beyond the hospital Promoting Interoperability program. Some CMS payment programs (for example MIPS Promoting Interoperability for clinicians) require certified EHR technology, and a customer contract may require it. Check the specific program and contract before deciding.
In short: certify if your customers must use certified EHR technology, as US hospitals and clinicians in Medicare's Promoting Interoperability program do, or if you want to sell your EHR as certified. An internal system, a specialty product that sits beside a certified EHR, or an app that only reads EHR data often does not need it, but check your customers' programs and contracts before you decide.
If you do certify, the ONC Health IT Certification Program (now run by ASTP/ONC) tests your product against a set of criteria through an accredited testing lab, and certified products are listed publicly on the Certified Health IT Product List. The API criterion, (g)(10) standardized API for patient and population services, is usually the hardest technical piece: it requires a FHIR R4 API conforming to US Core, SMART App Launch for patient and clinician apps, and Bulk Data export for populations.
Passing the Inferno test kit that ONC uses for (g)(10) is a strong readiness signal, but it is not certification on its own. Plan certification as its own workstream with its own timeline, and decide early which criteria you actually need. Our ONC EHR certification guide covers the steps, the two testing labs, costs and timelines.
What architecture and tech stack age well?
An EHR that lasts is built in layers with clear boundaries: experience, clinical modules, platform services, an integration layer and a data layer. The specific language matters less than your team's experience with it and the maturity of its FHIR, HL7 and security libraries.
For an example of an EHR built on a FHIR-native backend, see our Medplum EHR case study.
- Modular services. Separate identity, scheduling, documentation, orders, billing and analytics behind versioned internal APIs. A well-structured modular monolith is often a better start than dozens of microservices.
- Backend. Java, .NET, Python, Go and Node.js all run production EHRs. Pick on team skill and library support for FHIR servers, HL7 parsing and DICOM.
- Frontend. A component framework such as React with a design system, role-aware screens, and offline tolerance where connectivity is poor. Budget real time for UX research with clinicians.
- Data. A relational database such as PostgreSQL for clinical and financial records, a document store for attachments and audit trails, and a separate analytics warehouse. Keep the FHIR model in mind even if you do not store FHIR natively; our guide to migrating a custom EHR schema shows what happens when you do not.
- Hosting. Cloud for most startups, hybrid or private cloud where customers or regulators require it. Design to be cloud-ready either way.
How does an EHR connect to labs, pharmacies, payers and other EHRs?
An EHR connects to other systems through an integration layer: HL7 v2 interfaces for labs, imaging and hospitals, FHIR APIs for apps and patient access, X12 transactions for payers, NCPDP SCRIPT for e-prescribing, and DICOM for images. After the core modules, this layer is where most of the build effort goes.
| Connection | Standard | What moves |
|---|---|---|
| Labs | HL7 v2 ORM/OML and ORU, FHIR DiagnosticReport | Orders out, results and corrections in |
| Imaging | HL7 v2 and DICOM | Orders, reports and image links |
| Pharmacy | NCPDP SCRIPT | New prescriptions, renewals, cancellations |
| Payers and clearinghouses | X12 270/271, 837/835, 276/277 | Eligibility, claims, remittance, claim status |
| Third-party apps and patient access | FHIR R4 US Core, SMART on FHIR, Bulk Data | Clinical data for apps, patients and populations |
| Health information exchanges | C-CDA and FHIR | Records across networks, including TEFCA |
| Devices and remote monitoring | FHIR Observation, IEEE 11073 | Vitals and readings |
Each HL7 connection is its own interface with its own mapping, acknowledgements and error queue; our guide to what an HL7 interface is walks through one end to end. For payers, see our X12 EDI integration services. Run the layer through an integration engine with monitoring, retries, audit and alerting from day one.
How do you keep an EHR secure and HIPAA compliant?
You keep an EHR secure with layered controls: strong identity and least-privilege access, encryption in transit and at rest, a complete audit log of every record access, and tested backup, recovery and incident processes. HIPAA compliance adds signed Business Associate Agreements with every vendor that touches PHI and documented risk assessments. If you plan to hire a team, compare these EHR software development companies.
- Identity and access. Multi-factor authentication, role- and attribute-based access, break-glass access that is logged and reviewed.
- Encryption. TLS everywhere; encrypted databases, backups, logs and message queues; field-level encryption for the most sensitive data.
- Audit. Who accessed which record, what they did, when and from where, kept for the retention period your customers require.
- Operations. Patching, vulnerability scanning, penetration tests, and a disaster recovery plan that has actually been tested.
- Regulations. HIPAA in the United States, GDPR in Europe, and state privacy laws where you operate. Design to the strictest one you face.
Data governance and lifecycle
Security is only one layer. Data governance defines how information is handled over time:
- Retention rules for different types of records and how they are archived or anonymized after their retention period.
- Access policies for research or secondary use, including de-identification and approvals workflows.
- Backup, disaster-recovery, and business-continuity processes to keep life-critical systems resilient to outages, cyberattacks, or infrastructure failures.
Clear governance policies, backed by enforceable technical controls, safeguard both patients and providers while ensuring regulatory alignment.
Hospital customers will also run a vendor security review before they buy. Our HIPAA-compliant software development page covers how we build these controls in from the first sprint.
How to build a custom EHR system, step by step
Whether you call it building an EHR system, custom EMR development, or learning how to create an electronic medical record (EMR) for your own practice, the path is the same. You build a custom EHR in six steps. First confirm an existing EHR cannot be configured to do the job. Then map workflows with clinicians, choose your data base, design and test screens, build the MVP modules in short releases, add integrations, and go live in stages with training.
The six steps fall into four phases:
| Phase | Deliverables | What decides the length |
|---|---|---|
| Discovery | Workflow maps, user roles, integration list, MVP scope and a priced plan | Number of specialties, sites and systems to connect; how quickly clinicians are available for interviews |
| MVP build | Patient record, scheduling, documentation and the first-release modules, released in short cycles | Number of modules and templates; how often clinicians review builds |
| Integration and validation | Working interfaces with monitoring, clinical and security test results | Partner and EHR vendor test environments, approvals and data quality |
| Go-live and hypercare | Pilot site live, trained users, support rota and a fix list | Number of sites and roles; issues found in the pilot |
- Discovery. Shadow clinicians and front-desk staff, map today's workflows, and list users, regulations and every system you must connect.
- Choose the base. Decide between a FHIR server, an openEHR repository or your own data model, and fix your terminologies (SNOMED CT, LOINC, RxNorm, ICD-10).
- Design and prototype. Build clickable screens for the most frequent tasks and test them with clinicians before writing production code.
- Build the MVP. Patient record, scheduling, documentation, orders and billing first, released in short cycles with automated tests.
- Integrate. Labs, e-prescribing, payers and other EHRs, each with monitoring and error queues.
- Test and go live in stages. Clinical safety, security and performance testing, a pilot site, training and hypercare, then wider rollout.
How long this takes depends on the number of modules, specialty depth, integrations, data migration and whether you certify. Scope those first and the timeline follows; a release plan where each step delivers something clinicians use is safer than one large launch.
Discovery and workflow mapping
The first phase involves deep discovery:
- Mapping current clinical and administrative workflows across departments.
- Understanding pain points, workarounds, and informal communication channels.
- Prioritizing use cases that deliver immediate value while designing with the end-state architecture in mind.
Workshops, shadowing sessions, and process mapping are invaluable. The aim is not to simply digitize legacy paper processes, but to streamline and improve them.
Requirements, regulation, and data standards
Once workflows are understood, teams can specify:
- Functional requirements for each module.
- Regulatory obligations (HIPAA in the United States, state privacy laws, and GDPR if you serve Europe).
- Data standards and terminologies that will underpin interoperability and analytics.
Capturing these requirements early prevents costly rework when integrating with national exchanges or responding to compliance audits.
Experience design and prototyping
With requirements defined, cross-functional teams design:
- Personas for different user types from senior consultants and nurses to billing clerks and patients.
- Screen flows for high-frequency tasks such as creating encounters, writing progress notes, or ordering tests.
- Interactive prototypes that clinicians can test and critique before development begins.
This stage eliminates unnecessary clicks, reduces cognitive load, and ensures the system mirrors the way clinicians naturally think and work.
Incremental development and integration
Rather than aiming for a single large release, teams typically:
- Build modules iteratively, starting with core registration, scheduling, and documentation.
- Integrate with identity services, laboratory systems, imaging archives, and billing engines as modules mature.
- Maintain continuous integration pipelines with automated tests for performance, security, and interoperability.
Close feedback loops with early adopters help refine workflows long before full deployment.
Testing, validation, and go-live
Testing for an EHR extends far beyond functional checks:
- Clinical safety testing to ensure orders, alerts, and documentation behave correctly in realistic scenarios.
- Performance testing under predicted loads, including traffic from external health exchanges such as TEFCA.
- Security assessments such as penetration tests and validation within national digital health sandbox environments where required.
Go-live is best treated as a staged rollout with pilot sites, hypercare support, and rollback strategies, never a single abrupt organization-wide switch.
Training, change management, and continuous improvement
Successful EHR programs invest in:
- Role-specific training that focuses on real workflows, not merely screen navigation.
- Super-user programs where motivated clinicians become local champions and trainers.
- Continuous feedback cycles that inform backlog refinement and feature evolution.
After implementation, the EHR must be treated as a living product with ongoing enhancements, not a one-time deployment.
What must work before an EHR goes live?
A demo shows the happy path. Production breaks on the cases below. Ask any team, including ours, to show each one working in a test environment before go-live.
The video walks through these cases on example screens with a synthetic test patient.
| Case | What "working" looks like |
|---|---|
| Duplicate patients | The system flags a likely duplicate at registration, and merging two records keeps both histories and an audit trail |
| Two people editing one chart | The second save does not silently overwrite the first; the user sees a conflict and resolves it |
| Amending a signed note | The signed note is locked; an amendment is a new, signed entry linked to the original |
| Corrected lab result | The corrected result replaces the old one on screen, keeps the old one in history, and alerts the ordering clinician |
| Failed interface message | A rejected HL7 or FHIR message lands in a queue someone watches, can be fixed and resent, and is never lost |
| Permission boundaries | Each role sees only what its duties need (for example, a front-desk role without access to clinical notes), and records covered by 42 CFR Part 2 follow the consent scope that applies to them |
| Every read is logged | The audit log shows who viewed or changed which record, and when |
| Backup and restore | A restore has been tested, with a measured recovery time, not only a backup schedule |
| Downtime | Clinicians have a read-only or printed fallback, and data entered during downtime is reconciled afterwards |
What did testing our own open-source EHR against Inferno show?
Conformance testing found real defects in our own server that ordinary feature testing had missed, and a newer test kit broke a group that had passed before. Plan for repeated runs, because one passing result does not last.
Inferno is the test kit ONC uses for the (g)(10) API criterion. We run it against our open-source headless EHR on FHIR R4 and publish the results.
| Test group | Before | After | What was wrong |
|---|---|---|---|
| SMART App Launch: Standalone Patient App, kit v8.0.7 (October 27, 2026) | 25 of 47 | 47 of 47 | Requested scopes were matched to allowed scopes by exact text. A client allowed patient/*.rs lost patient/Observation.rs once the kit began asking for each resource separately. |
| US Core 3.1.1 Single Patient API, functional tests (August 2026) | 40 of 94 | 89 of 94 | References used internal IDs that did not resolve, which alone accounted for 25 tests. Token search compared the whole system|code string to a code-only column. POST _search ignored its parameters and returned every resource. _include for MedicationRequest's medication was missing. |
Three things follow for your own plan:
- Run the kit from the first API release, since the POST search bug would have returned the wrong records to any partner app.
- Rerun it when the kit changes. Our server passed this group 47 of 47 on June 11, 2026, then failed 22 of those tests on kit v8.0.7.
- When you fix a scope bug, test that the fix does not widen access. Ours grants a scope only when the patient or user context matches, the resource type is the same or a wildcard, and every permission asked for is allowed.
These runs have limits. The full kit has 641 tests in 7 groups, and we claim only the groups above. In the US Core run, the validation tests could not finish against our local validator, so they are not counted, and blood pressure profile and data-absent-reason work remains open. None of this is ONC certification. The test-by-test results and US Core status are public.
What should a data migration checklist cover?
If your new EHR replaces an old one, migration is part of the build. Agree on these points before any data moves.
| Check | What to agree |
|---|---|
| What moves and what is archived | Which records come across as live data, which stay in a read-only archive, and how many years of history each covers |
| Counts reconcile | Patient, encounter, medication and result counts in the old and new systems match, or every difference is explained |
| Sample review | Clinicians check a sample of real charts side by side before sign-off |
| Medications and allergies | A clinician reviews active medications and allergies for each patient at their first visit after go-live |
| Codes and identifiers | Old local codes are mapped to standard ones, and unmapped codes are listed rather than dropped |
| Rollback | The team agrees in advance which failures stop the cutover and how to go back to the old system |
Our guide to sizing a legacy EHR data migration covers effort and planning in more depth.
How much does it cost to build an EHR?
A custom EHR costs $45K to $70K for one specialty in 10 to 12 weeks, $90K to $160K for a full specialty EHR in 4 to 6 months, and $180K to $400K for a multi-site or white-label platform in 6 to 10 months. These are our published prices; we confirm the price after discovery, once modules, integrations and compliance needs are clear. After launch, hosting, support and updates usually run 15% to 20% of the build cost a year; that is the usual industry range, not a figure from our contracts.
| Item | Price | Time |
|---|---|---|
| Launch MVP (one specialty, one connection) | $45K to $70K | 10 to 12 weeks |
| Specialty EHR (orders, e-prescribing, billing hand-off, two to three connections) | $90K to $160K | 4 to 6 months |
| Multi-site or white-label platform | $180K to $400K | 6 to 10 months |
| ONC certification readiness (add-on) | $35K to $60K | 6 to 8 weeks on top |
| Each additional EHR integration (for example Epic or athenahealth) | $15,000 to $50,000 | Depends on the EHR and the health system |
| Dedicated team | From $10,000 a month | Ongoing |
| What moves the cost | Why |
|---|---|
| Number of modules and specialties | Each specialty adds templates, rules and testing |
| Integrations | Each lab, pharmacy, payer or EHR link is its own interface to build, test and support |
| Data migration | Depends on source systems, years of history and data quality |
| Compliance and certification | HIPAA controls are always needed; ONC certification is a separate workstream |
| Training and go-live support | Grows with the number of sites and roles |
Our custom EHR development cost guide breaks costs down further, with a five-year build or subscribe comparison. Related guides: custom EHR vs off-the-shelf EHR, HIPAA compliant EHR development, building an EHR on Medplum and open source EHR for custom builds.
How long does EHR software development take?
Plan 10 to 12 weeks for a first release in one specialty, 4 to 6 months for a full specialty EHR and 6 to 10 months for a multi-site platform. ONC certification readiness adds 6 to 8 weeks on top. Waiting on vendor access, clinician reviews and data migration are what usually extend these times.
Worked example: what a behavioral health MVP costs, and why
This is a planning estimate built from effort, not a quote and not a record of a past project. We show the arithmetic so you can change any line and see what moves.
| Scope item | This example |
|---|---|
| Users | Therapist, intake coordinator, patient |
| Included | Intake forms, scheduling, progress notes with a signed-note lock, patient portal messaging, one clearinghouse claim export |
| Excluded | e-Prescribing, lab orders, ONC certification, data migration |
| Integrations | One: the claims export to a clearinghouse |
| Workstream | Effort (person-weeks) |
|---|---|
| Discovery and workflow mapping | 2 |
| UX design and clickable prototype | 3 |
| Backend: patients, scheduling, notes, audit log | 8 |
| Frontend: clinician and patient screens | 6 |
| Claims export to the clearinghouse | 3 |
| QA, including clinical test scenarios | 4 |
| DevOps, security controls, backups | 2 |
| Project management | 2 |
| Total | 30 |
Multiply the effort by your team's rate to get the build cost, then add a contingency (we plan around 15%) for clinical review changes. A scope like this usually fits the Launch MVP tier above; we confirm the price after discovery. The customer's clinical lead signs off the intake and note templates.
Calendar time is a separate estimate. With three to four people working in parallel, and assuming clinicians are available for weekly reviews and clearinghouse test access arrives in the first month, plan for roughly 9 to 11 weeks to a pilot release. Waiting on approvals or vendor access is the most common reason it runs longer.
Not included: hosting and monitoring, clearinghouse fees charged by the vendor, and support after go-live. Each is priced separately once the hosting setup and support hours are agreed.
| If you add | Planning effort added | Why |
|---|---|---|
| e-Prescribing through a certified network vendor | 6 to 10 person-weeks, plus vendor fees | Vendor onboarding, controlled-substance rules, pharmacy error handling |
| Lab orders and results (one lab) | 4 to 8 person-weeks | HL7 order and result messages, corrected results, abnormal flags |
| Data migration from one legacy system | 4 to 12 person-weeks | Depends on years of history and data quality |
| A second specialty | 4 to 8 person-weeks | New templates, rules and test scenarios |
| ONC certification | Scoped separately after choosing the required criteria | Each criterion needs build work and evidence under its conformance method; only some need formal lab testing |
The same method scales. A multi-clinic platform adds role management across sites, more integrations and migration. A commercial EHR product adds multi-tenancy, onboarding and usually certification. Both are estimated the same way, line by line, after discovery.
Costs teams forget to budget
The build estimate is rarely what surprises a budget. The costs that do are the ones outside the code: moving data out of the old system, interface fees that labs and clearinghouses charge per connection, ONC certification testing if you need it, e-prescribing network fees, training and go-live support, and hosting and security monitoring after launch.
- Data migration: extracting, cleaning and mapping records from the current EHR.
- Interface and network fees: lab, pharmacy, clearinghouse and HIE connections often carry setup and monthly fees.
- Certification testing: only if you sell the EHR or need ONC certification for a program.
- Training and go-live support: super users, at-the-elbow help and the first weeks of fixes.
- Running costs: HIPAA hosting, backups, monitoring and security reviews every year.
What team do you need to build an EHR?
A typical EHR build team has a product owner with clinical input, a solution architect, backend and frontend engineers, an integration engineer who knows HL7, FHIR and X12, QA with clinical test scenarios, DevOps and security, and a clinical informaticist who owns terminology and workflow.
| Role | Why it matters |
|---|---|
| Product owner with clinical input | Keeps scope on the workflows that matter |
| Solution architect | Owns the data model, module boundaries and hosting |
| Backend and frontend engineers | Build the modules and the clinician and patient experience |
| Integration engineer | Builds and runs HL7, FHIR, X12 and NCPDP connections |
| QA engineer | Tests clinical scenarios, failure paths and performance |
| DevOps and security engineer | Runs environments, monitoring, backups and security controls |
| Clinical informaticist | Owns terminologies, templates and clinical safety review |
How to hire EHR developers
If you plan to build your own EHR rather than hire a firm, the same checks apply to your first hires.
An EMR developer or EHR developer is a software engineer who has shipped healthcare systems, not only general web apps. Before you hire, ask to see healthcare standards work they did themselves, check their security habits, and ask for proof you can verify.
Good interview questions: "Walk me through an HL7 ORU message you parsed and what went wrong," "How would you log access to a patient record?" and "What happens when a lab sends a corrected result?" Concrete answers to those separate EHR developers from general developers.
How do you choose an EHR development partner?
Choose an EHR software development company that can show healthcare-specific engineering you can check, such as working integrations, public code or live systems, and that plans for support after go-live. Generic software experience is not enough for an EHR.
| Ask | Good answer | Red flag |
|---|---|---|
| Which standards have you implemented? | Specific HL7 v2 messages, FHIR resources and X12 transactions, with examples | "We support all standards" |
| What can we verify? | Public code, sandbox demos, references you can call | Case studies with no dates or checkable details |
| How do you handle PHI? | BAA, access controls, audit logging, named security owner | "We are HIPAA certified" (no such certification exists) |
| Who owns the code and data model? | You do, with documentation and handover | Proprietary platform you cannot leave |
| What happens after go-live? | Support SLAs, monitoring, upgrade plan | Support priced as an afterthought |
How we approach EHR development
We build EHR and clinical record platforms for digital health companies, with the integration layer treated as part of the product rather than an add-on. You can inspect our work: our open-source headless EHR on FHIR R4 passed 47 of 47 tests in the Inferno (g)(10) test kit's SMART Standalone Patient App group on October 27, 2026. The full kit has 641 tests in 7 groups, so this result covers one group and is not ONC certification. We build to HIPAA requirements, sign BAAs and are ISO 27001:2022 certified.
Send the specialty, user roles, first workflow, integrations and anything you have ruled out through our custom EHR development services page. We reply with build, buy or extend, and the next step. You can also talk to our team.
Explore EHR and EMR integration
Multi-EHR and facade layers
EHR development and build decisions
- EHR integration methods, security and cost
- Healthcare Data Lake Architecture
- EHR Integration for Healthcare Startups
- Event-Driven EHR Architecture
- Why openEHR Makes Your Clinical Data AI-Ready
- EHR Implementation Cost in 2026: Estimates by Practice Size
FHIR APIs and data access
Planning an EHR build?
Tell us the specialty, the modules and the systems it must connect to. We will tell you whether to build, buy or extend, with a realistic plan and budget.
Frequently Asked Questions
What is EHR software development?
What is the difference between EHR and EMR software development?
How much does it cost to develop EHR software?
How do you build an EHR system?
How long does it take to build an EHR system?
Should I build a custom EHR or buy one?
Does my EHR need ONC certification?
What standards should an EHR support?
What team do I need to build an EHR?
How do you create an EHR or EMR software from scratch?
What is the difference between a custom EHR and EHR customization?
What does an EMR developer do?
Can I build an EHR without ONC certification?
What is the difference between EHR development and EHR integration?
What should I look for in an EHR software development company?
What are the latest trends in EMR and EHR software development?


