How kit2824bam017-cell/hacxlerate-challenge-1 works
Altrix’s Personal Health Copilot turns uploaded medical documents into reviewable, confirmed health records, then presents summaries, trends, medication history, and ABHA/FHIR interoperability features. The graph combines the documented product workflow with source-visible backend routing and storage relationships. Frontend-to-backend wiring and several provider internals were not sampled, so those relationships are omitted or marked unverified rather than inferred from names.
Main entry points: main.py FastAPI application · store.py Repository facade · main.tsx Web application · extraction.py Extraction endpoints
Components 22
Patient application
- Web application
frontend/src/main.tsx - Document manager
frontend/src/features/dashboard/components/document-manager.tsx - Extraction review
frontend/src/features/dashboard/components/extraction-review.tsx - Health dashboard
frontend/src/features/dashboard/components/health-overview.tsx
Document intelligence
- FastAPI application
backend/app/main.py - Document endpoints
backend/app/api/v1/documents.py - Document processor
backend/app/services/document_processor.py - OCR provider
backend/app/providers/ocr.py - Extraction endpoints
backend/app/api/v1/extraction.py - Candidate extraction data
backend/app/schemas/extraction.py
Health records
- Repository facade
backend/app/repositories/store.py - SQLite persistence
backend/app/repositories/sqlite_store.py - Records and FHIR API
backend/app/api/v1/records.py - Patient endpoints
backend/app/api/v1/patient.py
Health insights
- Summary endpoints
backend/app/api/v1/summaries.py - Summary generation
backend/app/services/summary_service.py - Tamil translation
backend/app/providers/translation.py - Timeline endpoints
backend/app/api/v1/timeline.py
Interoperability
- ABHA endpoints
backend/app/api/v1/abha.py - ABHA provider
backend/app/providers/abha.py - Runtime configuration
backend/app/core/config.py
Other components
- Patient
Connections 31
- Patient → Web application: uses
README.md - Web application → FastAPI application: calls API
- Web application → Document manager: presents upload
- Web application → Extraction review: presents review
- Web application → Health dashboard: presents health data
- Web application → FastAPI application: mounts routes
backend/app/main.py - FastAPI application → Document endpoints: routes to
backend/app/main.py - FastAPI application → Extraction endpoints: routes to
backend/app/main.py - FastAPI application → Records and FHIR API: routes to
backend/app/main.py - FastAPI application → Patient endpoints: routes to
backend/app/main.py - FastAPI application → Summary endpoints: routes to
backend/app/main.py - FastAPI application → Timeline endpoints: routes to
backend/app/main.py - FastAPI application → ABHA endpoints: routes to
backend/app/main.py - Document endpoints → Document processor: invokes
backend/app/api/v1/documents.py - Document processor → OCR provider: extracts text
- Extraction endpoints → Document processor: uses processing
backend/app/api/v1/extraction.py - Extraction endpoints → Candidate extraction data: accepts candidate data
backend/app/api/v1/extraction.py - Document endpoints → Repository facade: reads and writes
backend/app/api/v1/documents.py - Extraction endpoints → Repository facade: reads and writes
backend/app/api/v1/extraction.py - Records and FHIR API → Repository facade: reads and writes
backend/app/api/v1/records.py - Patient endpoints → Repository facade: reads and writes
backend/app/api/v1/patient.py - Summary endpoints → Summary generation: generates summaries
backend/app/api/v1/summaries.py - Summary generation → Repository facade: reads and writes
backend/app/services/summary_service.py - Summary generation → Tamil translation: translates summaries
backend/app/services/summary_service.py - Timeline endpoints → Repository facade: reads history
backend/app/api/v1/timeline.py - ABHA endpoints → Repository facade: reads and writes
backend/app/api/v1/abha.py - ABHA endpoints → ABHA provider: delegates
backend/app/api/v1/abha.py - ABHA endpoints → Runtime configuration: reads settings
backend/app/api/v1/abha.py - FastAPI application → Runtime configuration: configures service
backend/app/main.py - Repository facade → SQLite persistence: uses persistence
backend/app/repositories/store.py - Records and FHIR API → Patient: exports FHIR bundle
backend/app/api/v1/records.py