45-year-old male presenting with acute chest pain radiating to left arm,diaphoresis, and shortness of breath. History of hypertension and type 2diabetes. Current medications: metformin 1000mg BID, lisinopril 20mg daily.
3
Run Analysis
Click Analyze. You’ll see real-time updates:
Parsing clinical input
Running Clinical Agent
Running Literature & Safety Agents
Critic Agent reviewing
Generating final SOAP note
Running medication safety panel
This takes ~100 seconds (14 LLM calls + external API lookups). Watch the WebSocket stream for progress.
4
Review Results
You’ll get:
Full SOAP Note (Subjective, Objective, Assessment, Plan)
Differential Diagnoses with confidence scores and ICD-10 codes
curl -X POST http://localhost:8000/api/analyze \ -H "Content-Type: application/json" \ -d '{ "text": "45-year-old male presenting with acute chest pain radiating to left arm, diaphoresis, and shortness of breath. History of hypertension and type 2 diabetes. Current medications: metformin 1000mg BID, lisinopril 20mg daily." }'
This will take ~100 seconds. You’ll receive a JSON response with:
soap: Full SOAP note structure
debate: Debate state with all agent outputs
med_error_panel: Safety alerts and drug interactions
3
Try Emergency Mode
For urgent cases, use the fast-path endpoint:
curl -X POST http://localhost:8000/api/emergency \ -H "Content-Type: application/json" \ -d '{ "text": "Unconscious patient, no pulse, bystander CPR in progress" }'
Returns in <5 seconds with:
ESI triage score
Top 3 differential diagnoses
Red flags
Immediate action items
import requests# Full Analysisresponse = requests.post( "http://localhost:8000/api/analyze", json={ "text": """ 45-year-old male presenting with acute chest pain radiating to left arm, diaphoresis, and shortness of breath. History of hypertension and type 2 diabetes. Current medications: metformin 1000mg BID, lisinopril 20mg daily. """ }, timeout=180 # Analysis takes ~100s)result = response.json()# Extract SOAP notesoap = result["soap"]print(f"Subjective: {soap['subjective']}")print(f"Assessment: {len(soap['assessment'])} differentials")# Extract safety alertsmed_panel = result["med_error_panel"]print(f"Drug interactions: {len(med_panel['drug_interactions'])}")print(f"Dosing alerts: {len(med_panel['dosing_alerts'])}")# Emergency Mode (fast)emergency_response = requests.post( "http://localhost:8000/api/emergency", json={"text": "Unconscious patient, no pulse, CPR in progress"}, timeout=10)emergency = emergency_response.json()["emergency"]print(f"ESI Score: {emergency['esi_score']}")print(f"Red flags: {emergency['red_flags']}")
Set up LangSmith tracing, local LLMs with Ollama, and RAG customization.See Installation Guide →
3
API Reference
Dive into all available endpoints, request/response schemas, and WebSocket events.Browse API Docs →
You just ran your first multi-agent clinical analysis! The system generated differential diagnoses, searched PubMed for evidence, checked for drug interactions, and synthesized a complete SOAP note.