How manasacheeku/patient-360-copilot works
Patient 360 is a synthetic-data clinical evidence dashboard. Users select a patient, inspect structured profile and timeline data, review rule-based risks, ask evidence-grounded Copilot questions, and open cited records or local documents. The graph follows the React-to-FastAPI workflow and its SQLite, risk, and document-retrieval services. Some UI and service behavior is represented from README documentation because the excerpts are partial; no external model or production clinical system is involved.
Main entry points: main.py FastAPI routes · App.jsx Patient 360 dashboard · copilot.py Grounded answer service · database.py Database sessions
Components 18
Patient workspace
- Patient 360 dashboard
frontend/src/App.jsx - API client
frontend/src/lib/api.js
API and domain services
- FastAPI routes
backend/app/main.py - Profile and timeline
backend/app/main.py - Risk endpoint
backend/app/main.py - Copilot endpoint
backend/app/main.py - Document endpoint
backend/app/main.py
Synthetic records
- Database sessions
backend/app/database.py - Patient record models
backend/app/models/entities.py - SQLite records
- Synthetic data seeding
backend/app/services/seeding.py - Synthetic patient fixture
data/synthetic_patients.json
Evidence and reasoning
- Record serializers and citations
backend/app/services/serializers.py - Explainable risk rules
backend/app/services/risk.py - Grounded answer service
backend/app/services/copilot.py - Local document retrieval
backend/app/services/documents.py - Markdown evidence corpus
documents
Other components
- Healthcare reviewer
Connections 22
- Healthcare reviewer → Patient 360 dashboard: uses
README.md - Patient 360 dashboard → API client: requests data
frontend/src/App.jsx - API client → FastAPI routes: calls JSON API
README.md - FastAPI routes → Profile and timeline: serves profile
backend/app/main.py - FastAPI routes → Risk endpoint: serves risks
backend/app/main.py - FastAPI routes → Copilot endpoint: routes questions
backend/app/main.py - FastAPI routes → Document endpoint: lists documents
backend/app/main.py - Profile and timeline → Database sessions: queries records
backend/app/main.py - Risk endpoint → Explainable risk rules: calculates risks
backend/app/main.py - Copilot endpoint → Grounded answer service: answers question
backend/app/main.py - Document endpoint → Local document retrieval: lists evidence
backend/app/main.py - Database sessions → SQLite records: opens sessions
backend/app/database.py - Database sessions → Patient record models: creates schema
backend/app/database.py - Synthetic data seeding → Synthetic patient fixture: loads fixture
backend/app/services/seeding.py - Synthetic data seeding → SQLite records: seeds records
backend/app/services/seeding.py - Explainable risk rules → Record serializers and citations: builds citations
backend/app/services/risk.py - Grounded answer service → Explainable risk rules: evaluates risk
backend/app/services/copilot.py - Grounded answer service → Local document retrieval: retrieves passages
backend/app/services/copilot.py - Grounded answer service → Record serializers and citations: cites records
backend/app/services/copilot.py - Local document retrieval → Markdown evidence corpus: indexes sections
README.md - Patient 360 dashboard → Risk endpoint: reviews risk
README.md - Patient 360 dashboard → Document endpoint: opens evidence
README.md