FHIR R4 & HAPI · Chapter 18
Chapter 18 · Agents & MCP

Giving an LLM agent safe hands on FHIR.

A model can reason about a patient beautifully -- but only if it can reach the data. Clinical data lives in FHIR. This chapter is how an agent talks to it safely: typed tools, a consent gate, and an orchestration layer that knows when to pause for a human.

MCP tools over FHIR Read vs write + human in the loop Mastra + BIRDY orchestration