RAG over FHIR Data on AWS HealthLake and Azure Health Data Services: Retrieval That Respects the Record
A FHIR record is a graph of coded, dated, status-bearing resources, not a document corpus. This article sets out a retrieval design for generative AI over FHIR data: FHIR search for exact questions, similarity search for notes, pinned allergies and medication, a hard partition by patient, and citations on every statement. Tested on synthetic data and mapped to AWS HealthLake and the Azure Health Data Services FHIR service.