How harshini202005/healthcare_assistant works
This is a patient-facing healthcare assistant with a doctor dashboard. Patients sign in, chat in natural language, and receive health guidance, diet plans, or appointment actions; booking and cancellation require confirmation in the agent. Doctors use dashboard APIs to manage appointments and view patient-related information. The graph reflects documented capabilities and sampled call paths; dashboard internals and some frontend/API wiring are not fully shown, so those links are left unverified.
Main entry points: main.py FastAPI application · mcp.py Tool registry · database.py Persistence layer · auth.py Session authentication
Components 15
User experience
- Patient portal
frontend/index.html - Doctor dashboard
frontend/doctor-dashboard.html
API and orchestration
- FastAPI application
backend/main.py - Chat agent
backend/agent.py - Tool registry
backend/mcp.py - Session authentication
backend/auth.py
Health services
- Appointment booking
backend/tools/booking.py - Doctor availability
backend/tools/doctors.py - Diet planning
backend/tools/diet.py - Health Q&A
backend/tools/general.py
Identity and data
- Persistence layer
backend/database.py
Other components
- Patient
- Doctor
- Supabase
- Mistral AI
Connections 20
- Patient → Patient portal: uses
README.md - Doctor → Doctor dashboard: uses
README.md - Patient portal → FastAPI application: API requests
- Doctor dashboard → FastAPI application: API requests
- FastAPI application → Chat agent: routes chat
backend/main.py - Chat agent → Tool registry: dispatches tools
backend/agent.py - FastAPI application → Tool registry: calls tools
backend/main.py - FastAPI application → Session authentication: authenticates
backend/main.py - FastAPI application → Persistence layer: reads and writes
backend/main.py - Tool registry → Appointment booking: dispatches
backend/mcp.py - Tool registry → Doctor availability: dispatches
backend/mcp.py - Tool registry → Diet planning: dispatches
backend/mcp.py - Tool registry → Health Q&A: dispatches
backend/mcp.py - Appointment booking → Persistence layer: stores appointments
backend/tools/booking.py - Doctor availability → Persistence layer: queries availability
backend/tools/doctors.py - Session authentication → Persistence layer: looks up doctor
backend/auth.py - Persistence layer → Supabase: reads and writes
backend/database.py - Session authentication → Supabase: verifies sessions
backend/auth.py - Diet planning → Mistral AI: generates plans
backend/tools/diet.py - Health Q&A → Mistral AI: answers questions
backend/tools/general.py