EMR, EHR, and the only difference that matters when you are building billing software
The distinction the vendors sell is not the one that decides whether your billing automation is possible. The question worth asking is narrower, and the answer is usually worse than people expect.
Ask what the difference is between an EMR and an EHR and you get a clean answer. An EMR is the chart inside one practice. An EHR is the record that travels — across clinicians, across settings, built to be shared.
It is a tidy distinction and it is mostly a marketing one. Vendors use the terms interchangeably, products sold as EMRs share data and products sold as EHRs do not, and anyone who has integrated with more than a handful will tell you the label on the box predicts very little. Most explanations of the difference end with a caveat admitting as much.
None of this matters much to a biller, who works with whatever is in front of them. It matters enormously if you are about to build something that depends on getting data out of it — and there the useful question is not what the system is called. It is:
What can this system emit, in what format, on what schedule, and who has to agree before it does?
That question has a real answer, and the answer determines what you can build.
The ladder
In rough order of how pleasant they are to live with.
HL7 v2 interfaces. Still the workhorse of practice integration, thirty years on. The message types that matter for billing are ADT for demographics and coverage, SIU for scheduling, ORU for results, and — the important one — DFT for charges. A DFT^P03 carries the financial transaction: what was done, when, by whom, under which diagnosis.
If you can get a reliable DFT feed, most of charge capture is solved. That is the single most valuable sentence in this article, and the reason it is not the end of it is that reliable DFT feeds are not common.
A vendor REST API. Most of the larger systems have one. They are all different, all rate-limited, usually paginated in some way that makes a complete daily reconciliation awkward, and frequently gated behind a partner programme with its own commercial terms. Budget for the paperwork, not just the code.
FHIR. The modern answer, and the one everybody assumes solves this. It partly does, with an important gap covered below.
CCDA documents. Structured, standardised, and shaped like a document rather than a transaction. Good for clinical summary, poor for "give me every encounter from yesterday with its charges".
A scheduled flat file. A nightly CSV over SFTP is unglamorous and frequently the most reliable thing on this list. Do not be too proud to take it.
Direct database access. Occasionally offered for an on-premise system. Fast and complete, and you have now coupled yourself to an internal schema that will change without warning in a version upgrade.
Automating the user interface. The last resort. It works until the vendor moves a button.
The gap nobody mentions
Here is where the assumption breaks.
Under the information-blocking rules, certified systems have to expose a standardised FHIR API. People reasonably conclude that the integration problem is therefore solved: the data is there, the API is mandated, help yourself.
But that certified surface is scoped to US Core, and US Core is a clinical specification. It profiles patients, conditions, medications, observations, encounters. FHIR does define financial resources — Claim, ClaimResponse, ExplanationOfBenefit, ChargeItem — but they live in the base Financial Module, not in US Core, and HL7 has had to state explicitly that US Core does not define them. Coverage is the notable exception and has been profiled in US Core.
So the mandated API gives you the patient, the encounter and the problem list. It does not, as a matter of specification, give you the charges.
Which means "the system has a FHIR API" and "we can get the billing data out" are different claims, and the gap between them is where integration projects quietly lose a quarter. If charge capture matters to what you are building, confirm how charges specifically come out before anybody signs anything. Usually the honest answer is DFT, a vendor-specific endpoint, or a file.
Assessing a system in an afternoon
Five questions, in this order. The first two usually settle it.
- How do charges leave the system? Not clinical data. Charges.
- Is it push or pull? A feed you receive tells you when something happened. An API you poll means you decide how stale you are willing to be, and you own the scheduling.
- What is the unit of work? What the EHR calls an encounter is often not what a claim needs. One encounter can become several claims; several encounters can collapse into one. Establish the mapping early.
- How do you know you have everything? Covered below, and most commonly answered with a shrug.
- Who has to approve the connection, and how long does that take? This is a schedule question, not a technical one, and it is routinely the longest pole.
A short synthetic DFT^P03, to make the shape concrete:
MSH|^~\&|EHR|PRACTICE|BILLING|MTS|20260312150405||DFT^P03|MSG00042|P|2.5.1
EVN|P03|20260312150405
PID|1||PAT0098^^^PRACTICE^MR||Doe^Jamie||19850214|F
PV1|1|O|CLINIC^^^PRACTICE||||1234567890^Smith^Alex^^^^NPI
FT1|1||20260312|20260312|CG|90834^Psychotherapy 45 min^CPT|||1|125.00
One charge, one encounter, enough to build a claim line from. Everything in it is invented.
What bites once it is live
Completeness, not correctness. The records that arrive are usually fine. The danger is the ones that never arrive at all, and an interface that has silently stopped looks exactly like a quiet afternoon. Monitor the absence of data, not only the processing of it.
Insurance is a snapshot, not the truth. The coverage on the inbound message is what the front desk entered. It is a starting point for an eligibility check, not a substitute for one.
Retroactive edits. A clinician amends a note or a coder changes a code after the message was sent. Whether a correction comes through as a new message, an amended one, or not at all is a per-interface question you have to ask explicitly.
Identity drift. Patient identifiers are stable until a merge, a duplicate chart, or a name change. Decide what you do about a merge before one happens, because one will.
How to test it
Reconciliation is the test, and it is a counting exercise rather than a clever one. For a known window, compare the encounters the source system says exist against the ones you received, and alert on the difference.
The useful property is that the check has to be able to fail loudly on zero. A pipeline that processes everything it was given, and was given nothing, reports complete success. That is the failure mode to design against, and it is the same one that makes claims disappear between a clearinghouse and a payer.
What we do
We treat the integration as a product surface rather than a one-off import: every inbound record is reconciled against what the source claims to hold, gaps are raised as work rather than logged, and the mapping from the practice's idea of an encounter to the claim it becomes is explicit and inspectable. When a feed stops, somebody is told.
Building something that has to talk to a payer?
If any of the above is a problem you currently have, describe it and we will tell you what we would do about it.