Blog

    How to Build an ONC Certified EHR

    By GauravNovember 26, 20268 mins read
    On this page

    Certification changes how an EHR is built, not only how it is sold. The criteria you choose decide which APIs you expose, which data you must store in standard terms, and which tests you must pass in front of an authorized body.

    This post covers the path from deciding to certify to holding a certificate: choosing criteria, building evidence as you go, rehearsing with test tools and keeping the certificate once you have it. The rules themselves change through ONC rulemaking, so treat the current list on healthit.gov as the source of truth.

    How do you build an ONC certified EHR?

    Planning certification for an EHR product?

    Our EHR integration services cover the FHIR APIs, data standards and interfaces certification tests.

    You build an ONC certified EHR by choosing the certification criteria your buyers need, designing the product to meet each one, collecting test evidence during development, rehearsing with the official test tools, and passing testing with an ONC-authorized body. Agnotic Technologies helps product teams plan that path before the architecture is fixed.

    The ONC Health IT Certification Program certifies health IT against published criteria, and testing and certification are carried out by ONC-authorized bodies, not by the developer.

    Should you certify at all?

    Certify when your buyers need it. Many health systems and practices ask for certified technology because federal programs they take part in reference it.

    If your product is a specialty tool that sits beside a certified EHR, you may not need certification yourself. Decide this with your buyers and your regulatory adviser before you plan the build around it.

    Ask your largest buyers directly which certified functions they rely on and why. Their answers often narrow the scope to a handful of criteria, and they show which ones can wait for a later version.

    Also weigh the ongoing cost of staying certified. A certificate commits the team to standards updates and reporting for as long as the product is listed, which belongs in the product roadmap from the start.

    How do you choose the criteria?

    Start from the buyer's need, not the full list. Each criterion you claim brings design work, test work and ongoing obligations.

    • Base requirements: the criteria a buyer's program expects a certified product to meet.
    • Your product's scope: the clinical functions you actually offer, such as orders, results or e-prescribing.
    • Dependencies: criteria that require other criteria, such as security and audit functions alongside clinical ones.
    • Relied-upon software: parts you license from another certified product, which must be named.

    Which criterion shapes the architecture most?

    For most new EHRs it is the standardized API. It decides your data model, your authorization server and how outside apps connect.

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

    Plan the FHIR layer, SMART authorization and US Core profiles from the first sprint. Retrofitting them onto a custom data model is the most common reason certification slips.

    How do you build test evidence as you go?

    Treat each criterion like a feature with acceptance tests. The test procedures describe what a tester will do, so turn them into your own automated and scripted tests early.

    • Map criteria to features: one owner and one test suite per criterion.
    • Script the demos: write down the exact steps a tester will see, with test patients.
    • Keep a test environment: stable data, known users and the configuration you will certify.
    • Record versions: the exact build and dependencies you will submit.

    How do test tools help before formal testing?

    Run the official tools yourself, many times, before the authorized tester does.

    ONC's Inferno project publishes the ONC Certification (g)(10) Standardized API Test Kit, a testing tool for health IT seeking to meet the 170.315(g)(10) criterion.

    Fix every failure in your own runs first. Formal testing should confirm what you already know, not find new problems.

    What does a certification test environment need?

    It needs to be stable, resettable and identical to the version you will submit. Testers follow written procedures, and an environment that changes between runs turns a scripted test into guesswork.

    • Test patients: a fixed set built for the procedures, with the data each test expects already present.
    • Reset: a script that returns the environment to its starting state in one step, so a failed run can be repeated cleanly.
    • Users: named accounts for each role the procedures use, with known passwords and multi-factor setup the tester can follow.
    • Endpoints: public URLs for the FHIR server and authorization server that outside test tools can reach.
    • Freeze: no deploys to the environment during the testing window, and the build number shown on screen.

    Keep this environment separate from customer demos and sales sandboxes. When a sales demo changes configuration the night before a test, the test fails for reasons that have nothing to do with the product.

    What does a rehearsal day look like?

    A rehearsal day is a full mock test run by someone who did not build the feature. They follow the test procedure as written, use the same tools a tester would, and stop at every step that needs an explanation.

    • Before: reset the environment, print the procedures and assign one person to record every deviation.
    • During: run each criterion end to end without engineers fixing things live; note where a step was slow, unclear or failed.
    • After: turn each deviation into a ticket with an owner, and rerun only the affected criteria once fixed.

    Plan more than one rehearsal before formal testing. If the last rehearsal still produced fixes, the date is too early.

    How do product changes affect a certified version?

    Every release can touch a certified function, so check each one before it ships. Tag the code and screens that certified criteria depend on, and require a review when a change touches them.

    Keep the certification test suite in the release pipeline and run it on every version, not only the certified one. When a change does affect a certified function, decide with your regulatory adviser what the program requires before the release goes out.

    In what order should the work happen?

    Order the work so that the parts other criteria depend on are finished first. Teams that build clinical screens before the data model and API layer usually rebuild them.

    • First, the data model: map your clinical data to the standard data set and terminologies certification expects.
    • Second, the API and authorization: FHIR endpoints, SMART launch and token handling.
    • Third, security and audit: authentication, audit logging and the other functions many criteria rely on.
    • Fourth, clinical functions: the features each claimed criterion describes, built on the layers above.
    • Fifth, rehearsal: full test runs with the official tools and your scripted demonstrations.

    Run rehearsals throughout, not only at the end. A test tool run in the second month finds data model problems while they are still cheap to fix.

    Keep a single tracker that shows each claimed criterion, its owner, its test status and its open defects. It becomes the agenda for every planning meeting until testing is booked.

    Who needs to be involved?

    Certification is not only an engineering project. It touches product scope, clinical safety, documentation and customer commitments.

    • Product owner: decides which criteria to claim and which features they affect.
    • Engineering lead: owns the architecture and the test environment.
    • Clinical reviewer: checks that clinical functions behave safely in the workflows tested.
    • Regulatory adviser: interprets the criteria and the program's conditions for your situation.
    • Documentation owner: keeps user guides and disclosures that the program requires accurate.

    What happens after you are certified?

    Certification comes with ongoing conditions and maintenance requirements. Plan an owner for them, because they continue for as long as the product is listed.

    • Updates: new versions of standards and criteria when ONC adopts them.
    • Reporting: the attestations and plans the program requires of developers.
    • Change control: knowing when a product change affects a certified function.
    • Customer support: answering buyers' questions about what the certificate covers.

    Mistakes on the path to certification

    • Claiming too many criteria: every extra one adds testing and upkeep.
    • FHIR as an afterthought: a custom data model that resists US Core mapping.
    • No rehearsal: the first full test run happens in front of the tester.
    • No owner after launch: obligations missed once the project team moves on.

    What are best practices for ONC certification?

    Pick criteria from buyer demand, design the API layer first, write tests from the test procedures, run Inferno and other tools on every release, and name an owner for the certificate after launch. Check the current criteria on healthit.gov at the start of planning and again before testing.

    How Agnotic can help

    Agnotic builds the FHIR APIs, authorization, audit and data standards work that certification depends on, and sets up the test environments and scripts teams use to rehearse. We work alongside your regulatory adviser and the authorized testing body; we do not certify products ourselves.

    Plan certification work with Agnotic

    We build the API, data and audit features that certified products need.

    Sources

    Frequently Asked Questions

    Under the ONC Health IT Certification Program, testing and certification are carried out by ONC-authorized bodies, not by the developer.

    Talk to an engineer about your project

    Tell us which criteria your buyers ask for. We will map the build and test work.