Last EHR

Last EHR

Open-source AI agent layer for Medplum and FHIR with human approval on every write

Open Source
4.2 (9 reviews)

Gallery

About Last EHR

Last EHR is an open-source AI agent layer that sits on top of an existing FHIR backend rather than trying to be a full electronic health record on its own. Its own description is the open-source AI agent layer for Medplum and FHIR. You point it at a Medplum server you already run, and it gives clinicians a permissioned assistant that can read charts and propose updates without ever becoming the system of record itself. The record stays where it already lives, and the agent works against it as a careful helper rather than a replacement.

The problem it addresses is that bolting an AI assistant onto healthcare data is genuinely risky. Patient records demand strict access control, a clear audit trail, and a human in the loop before anything is written, which is exactly where a generic chat tool pointed at a database falls short. An assistant that can silently edit a chart is a liability, and one that copies patient data into a third-party platform is a compliance headache. Last EHR is built so the AI never has free rein over the chart, and so the data stays inside infrastructure the provider already controls.

It works through a small, deliberate set of four tools. The agent can search for patients in your FHIR backend and open a chart to show conditions, allergies, medications, observations, immunizations, and notes in one view. The two write actions, adding a free-text clinical note and recording an observation, are gated behind human approval. The agent proposes a change, a clinician reviews it, approves it, and only then does it reach the chart, so nothing is written silently in the background. Keeping the toolset this narrow is a deliberate safety choice rather than a gap, since every capability is one a clinician can reason about.

Data governance is the point rather than an afterthought. You run it against your own Medplum, hosted or self-hosted, and Last EHR stores no patient data of its own at any point. Everything the agent can see and do is scoped by Medplum's AccessPolicy and runs as the signed-in user, so the AI inherits the exact same permissions the clinician already has instead of a broad service account that can see everything. You bring your own model key from OpenAI or Anthropic, which keeps the choice of model and the spend under your control rather than baked into a vendor's markup.

It's aimed at healthcare teams and developers already invested in Medplum who want AI-assisted workflows without giving up oversight. The same tools also run as an MCP server, read-only by default, so you can wire the chart into Claude Desktop or another MCP client for safe lookups. That makes it a fit both for a clinician using an approval-gated assistant during a visit and for a developer scripting read-only queries against real FHIR data while building something on top. The two modes share the same underlying tools, so what you learn in one carries over to the other.

In day-to-day use the approval gate is what makes the whole thing usable in a clinical setting. A clinician can ask the assistant to pull up a patient, review what it found across conditions, medications, and recent observations, and then have it draft a note or record a reading, all while knowing that draft is a proposal and not a committed change. Nothing lands in the chart until a person has looked at it and said yes, which keeps the clinician firmly in the loop and the record accurate. That single design decision is what separates a helper you can trust with real patients from a chatbot you would never let near a live system. It also means the audit trail reflects human decisions, since every write is tied to an approval by the signed-in user rather than an opaque automated action.

What sets it apart is the posture, not a long feature list. Most AI health tools ask you to move data into their platform and trust their controls, then hope the audit story holds up. Last EHR keeps the record in your Medplum, runs as the user, and forces approval on every write, so the safe path is the default rather than something you have to remember to configure. Being open source under the Apache-2.0 license means the whole approval flow is auditable rather than a black box you take on faith, which matters a lot when the data is clinical.

It's free and open source today, with the code on GitHub and no charge to run it against your own backend beyond the model key you supply. A managed hosted tier with hosted Medplum and a signed BAA is described as in development for teams that would rather not operate the stack themselves and need the paperwork that comes with handling protected health information. For anyone piloting AI in a clinical setting who needs governance from day one, the appeal is that the guardrails come built in instead of being something you bolt on after an incident.

Key Features

  • Agent layer over Medplum and FHIR
  • Approval-gated chart writes
  • Patient search and chart viewing
  • Scoped by Medplum AccessPolicy
  • Bring your own OpenAI or Anthropic key
  • Optional read-only MCP server

Pros & Cons

What we like

  • Human approval required before any write reaches the chart
  • Stores no patient data of its own
  • Runs as the signed-in user with existing permissions
  • Open source under Apache-2.0 and self-hostable

Room for improvement

  • Requires an existing Medplum or FHIR backend
  • Managed hosted tier with a BAA is still in development
  • Narrow four-tool scope by design
  • You supply and pay for your own model key

Frequently Asked Questions

What is Last EHR?
Last EHR is an open-source AI agent layer that sits on top of Medplum and FHIR. It lets a permissioned assistant search patients, view charts, and propose notes and observations, but it isn't itself the electronic health record. The record stays in your own Medplum backend.
Does Last EHR store patient data?
No. It stores no patient data of its own and runs against your own Medplum, hosted or self-hosted. Everything the agent can see and do is scoped by Medplum's AccessPolicy and runs as the signed-in user, so it inherits the clinician's existing permissions.
Is Last EHR free?
Yes, it's free and open source under the Apache-2.0 license, with the code on GitHub and no charge to run it against your own backend. You bring your own OpenAI or Anthropic key for the model spend. A managed hosted tier with hosted Medplum and a signed BAA is in development.
Who is Last EHR for?
Healthcare teams and developers already using Medplum who want AI-assisted workflows without losing oversight. Clinicians get an approval-gated assistant where every write needs a human sign-off, and developers can use the read-only MCP server to query real FHIR charts from Claude Desktop or another client.

Best For

Adding an approval-gated assistant to a Medplum EHRLetting clinicians draft notes for review before savingQuerying FHIR charts read-only from Claude DesktopPiloting clinical AI without moving patient data

Featured in

Alternatives to Last EHR

View all

Reviews (9)

Z
Zahra Ferrari

Does the job, a few gripes

Last EHR has quietly become part of my daily flow. Where it really wins is bring your own openai or anthropic key. My only gripe is managed hosted tier with a baa is still in development. Recommending it to people in a similar spot.

3/18/2026 10 found this helpful
J
Jamie Sun

Decent with some rough edges

Tried Last EHR on a side project first, then rolled it out everywhere. The agent layer over medplum and fhir is more useful than I expected. It would be a five if not for requires an existing medplum or fhir backend. No regrets so far.

6/30/2026 9 found this helpful
Y
Yifan Vidal Verified

Genuinely impressed

Tried Last EHR on a side project first, then rolled it out everywhere. What stands out is how it handles open source under apache-2.0 and self-hostable. It fits well for querying fhir charts read-only from claude desktop. Recommending it to people in a similar spot.

4/1/2026 9 found this helpful
R
Ren Svensson Verified

Genuinely impressed

Last EHR solves a real problem for me without making a fuss about it. The optional read-only mcp server is more useful than I expected. Found it works best for piloting clinical ai without moving patient data. Hard to imagine going back to my old setup.

5/9/2026 8 found this helpful
E
Emile Saito Verified

Solid daily driver

Last EHR has quietly become part of my daily flow. The approval-gated chart writes is more useful than I expected. It has shaved real time off my week. No regrets so far.

6/6/2026 5 found this helpful
J
Javier Thomas Verified

Powerful once it clicks

Picked Last EHR for the price, stayed for the quality. Their take on patient search and chart viewing is genuinely good. Support actually answered when I had a question, which surprised me. Found it works best for querying fhir charts read-only from claude desktop. It would be a five if not for requires an existing medplum or fhir backend. Hard to imagine going back to my old setup.

4/9/2026 5 found this helpful
M
Morgan Lopez

It just works

Last EHR has quietly become part of my daily flow. The human approval required before any write reaches the chart is more useful than I expected. Setup was painless and I was productive the same day. No regrets so far.

3/14/2026 2 found this helpful
E
Emile Okafor

Worth a look

Three months of Last EHR later, here is what holds up. Got real value out of approval-gated chart writes.

6/11/2026 1 found this helpful
M
Morgan Zhou Verified

Finally something that fits

Have been running Last EHR for a while, here is where I land. Their take on optional read-only mcp server is genuinely good. Found it works best for piloting clinical ai without moving patient data. It earns its place in my stack.

5/30/2026