MedAgentBenchUCLA

Sign in

MedAgentBench study workspace

Next you will enter a code from your authenticator app. Forgot your password or lost your phone? The study lead can send you a new setup link.

Access is limited to the MedAgentBench study team. Ask the study lead for an invite.
Clinical agents operating inside a virtual FHIR R4 EHRDiagram of a MedAgentBench clinical agent reading an instruction for synthetic patient S9000001, querying serum magnesium via FHIR Observation, identifying a low 1.3 mg/dL result, placing an intravenous 2 g magnesium sulfate MedicationRequest over 2 hours, and passing deterministic grading.MEDAGENTBENCH · FHIR R4Autonomous Clinical Reasoning in a Virtual EHR01 Task02 Query03 Reason04 OrderCLINICAL INSTRUCTIONACTIONCheck S9000001’s serum Mg within 24h.If low, order IV magnesium replacementaccording to hospital dosing protocol.Clinical AgentMulti-turn tool loop · FHIR clientGETObservation?code=MGRULEMg 1.3 < 1.5 mg/dL (<24h)Select: MgSO₄ 2 g IV over 2hPOSTMedicationRequestSubmit structured FHIR orderGET /Observation200 · Mg 1.3 (L)POST /MedicationReqEMMarquez, Elena · 67y FMRN S9000001 · Inpatient · 2023-11-13 10:15SYNTHETICRECENT LABS · OBSERVATIONNBME referencePotassiumK4.1 mmol/LCreatinineCR0.8 mg/dLMagnesiumMG05:10 (5h ago)1.3 mg/dLLOWACTIVE ORDERS · MEDICATIONREQUESTAmlodipine 5 mg tabletOral · Daily · activeBaselineAwaiting agent MedicationRequest…Magnesium Sulfate 2 gIntravenous · infuse over 2 hours · status: active✓ OrderedEVALUATIONDeterministic FHIR Grader · Verifies patient MRN, drug code, dose (2 g), route (IV) & rate (2 h)Evaluating…✓ PASS · 2 steps
Synthetic example (S9000001): agents query FHIR R4 records, apply clinical protocols, place orders, and are scored deterministically.Scroll sideways to view the full diagram.
Research prototype · not affiliated with UCLA Health or Epic · de-identified data