How ghioc-mihai-bogdan/zero-trust-medical-agent works
This is a clinical chat application whose main workflow turns a physician’s text and optional image or file into a clinical report: the browser prepares the input, the Flask orchestrator runs clinical agents in parallel, and a language model synthesizes their results. The UI also supports session history, while the backend stores session state in Redis. The README documents Istio/mTLS protection for mesh traffic and host-based Ollama inference; unsampled deployment manifests and acuity implementation limit detail about those internals.
Main entry points: app.py Clinical API · chat.service.ts Chat service · app.component.ts Chat interface · coder.py Medical coder
Components 12
Clinical chat UI
- Chat interface
clinical-mesh-ui/src/app/app.component.ts - Chat service
clinical-mesh-ui/src/app/services/chat.service.ts - HTTP client setup
clinical-mesh-ui/src/app/app.config.ts
Orchestration
- Clinical API
app.py
Clinical agents
- Medical coder
coder.py - Diagnostician
diagnostician.py - Acuity analyzer
acuity.py - Patient educator
educator.py
Inference and state
- Session store
- Ollama inference
- Istio mTLS mesh
Other components
- Attending physician
Connections 15
- Attending physician → Chat interface: enters case
README.md - Chat interface → Chat service: compresses and sends
clinical-mesh-ui/src/app/app.component.ts - Chat service → Clinical API: posts requests
clinical-mesh-ui/src/app/services/chat.service.ts - Chat service → Clinical API: loads history
clinical-mesh-ui/src/app/services/chat.service.ts - Clinical API → Medical coder: requests codes
app.py - Clinical API → Diagnostician: requests diagnoses
app.py - Clinical API → Acuity analyzer: requests acuity
app.py - Clinical API → Patient educator: requests explanation
app.py - Clinical API → Session store: reads and writes sessions
app.py - Clinical API → Ollama inference: synthesizes report
app.py - Medical coder → Ollama inference: requests coding inference
coder.py - Diagnostician → Ollama inference: requests diagnostic inference
diagnostician.py - Patient educator → Ollama inference: requests education inference
educator.py - Acuity analyzer → Session store: reads session state
README.md - Clinical API → Istio mTLS mesh: traffic protected by
README.md