How sudhir61127/vigilor works
VIGIL-OR is a clinical decision-support dashboard. The main workflow is a clinician using a dashboard view or assistant (optionally with voice) to submit a request; the FastAPI agent routes it to patient, report, monitoring, or checklist functionality and returns a response. Monitoring is also fetched directly by the dashboard. The README documents MongoDB patient records and RAG report retrieval; sampled source shows the RAG build and search stages, but not how patient tools reach the repository. The AI agent is described as under development.
Main entry points: App.jsx Dashboard App · workflow.py Agent Workflow · routes.py FastAPI Routes · rag_pipeline.py RAG Index Builder
Components 26
Clinician Dashboard
- Dashboard App
frontend/src/App.jsx - Voice And API Hooks
frontend/src/hooks/useVoice.js - Overview View
frontend/src/pages/OverviewView.jsx - Patient View
frontend/src/pages/PatientView.jsx - Reports View
frontend/src/pages/ReportsView.jsx - Monitor View
frontend/src/pages/MonitorView.jsx - Checklist View
frontend/src/pages/ChecklistView.jsx - Assistant View
frontend/src/pages/AssistantView.jsx
API And Agent
- FastAPI Routes
backend/app/api/routes.py - Agent Workflow
backend/app/graph/workflow.py - Application Setup
backend/app/main.py
Clinical Capabilities
- Patient Lookup
backend/app/tools/patient_tool.py - Surgical Checklist
backend/app/tools/checklist_tool.py - Monitor Tool
backend/app/tools/monitor_tool.py - Simulated OR Monitor
backend/app/monitor/monitor.py
Patient Data
- Patient Repository
backend/app/database/patient_repository.py - Profile Repository
backend/app/database/profile_repository.py - MongoDB
Report Retrieval
- Report Search Tool
backend/app/tools/rag_tool.py - Document Retriever
backend/app/rag/retriever.py - Embedding Model
backend/app/rag/embeddings.py - FAISS Index
backend/app/rag/vector_store.py - RAG Index Builder
backend/app/rag/rag_pipeline.py - Report Loader
backend/app/rag/loader.py - Document Chunker
backend/app/rag/chunker.py
Other components
- Clinician
Connections 29
- Clinician → Dashboard App: uses
frontend/src/App.jsx - Dashboard App → Overview View: renders
frontend/src/App.jsx - Dashboard App → Patient View: renders
frontend/src/App.jsx - Dashboard App → Reports View: renders
frontend/src/App.jsx - Dashboard App → Monitor View: renders
frontend/src/App.jsx - Dashboard App → Checklist View: renders
frontend/src/App.jsx - Dashboard App → Assistant View: renders
frontend/src/App.jsx - Dashboard App → Voice And API Hooks: uses hooks
frontend/src/App.jsx - Voice And API Hooks → FastAPI Routes: posts agent input
frontend/src/hooks/useVoice.js - Voice And API Hooks → FastAPI Routes: fetches vitals
frontend/src/hooks/useVoice.js - Application Setup → FastAPI Routes: mounts routes
backend/app/main.py - Application Setup → MongoDB: initializes connection
backend/app/main.py - FastAPI Routes → Agent Workflow: runs agent
backend/app/api/routes.py - FastAPI Routes → Simulated OR Monitor: gets vitals
backend/app/api/routes.py - Agent Workflow → Patient Lookup: calls
backend/app/graph/workflow.py - Agent Workflow → Report Search Tool: calls
backend/app/graph/workflow.py - Agent Workflow → Surgical Checklist: calls
backend/app/graph/workflow.py - Agent Workflow → Monitor Tool: calls
backend/app/graph/workflow.py - Patient Repository → MongoDB: uses connection
backend/app/database/patient_repository.py - Profile Repository → MongoDB: uses connection
backend/app/database/profile_repository.py - Patient Lookup → Patient Repository: accesses records
- Monitor Tool → Simulated OR Monitor: uses monitor
backend/app/tools/monitor_tool.py - Report Search Tool → Document Retriever: searches documents
backend/app/tools/rag_tool.py - Document Retriever → Embedding Model: embeds query
backend/app/rag/retriever.py - Document Retriever → FAISS Index: loads index
backend/app/rag/retriever.py - RAG Index Builder → Report Loader: loads reports
backend/app/rag/rag_pipeline.py - RAG Index Builder → Document Chunker: splits reports
backend/app/rag/rag_pipeline.py - RAG Index Builder → Embedding Model: embeds chunks
backend/app/rag/rag_pipeline.py - RAG Index Builder → FAISS Index: builds index
backend/app/rag/rag_pipeline.py