How kaleeswarg25/healthify-ai-production-grade-cloud-native-ai-healthcare-platform works
Healthify AI is a healthcare web application for authenticated report management and AI-assisted interpretation. A user registers or signs in, uploads a report, and can view reports, request analysis, review analysis history, and ask report-related questions. The frontend calls separate authentication, report, and AI services; the report service stores metadata and uses S3, while the AI service parses PDFs, generates responses through Ollama, and persists analysis context. The graph focuses on application runtime: README documents the service roles and Ollama integration, while sampled source shows several internal calls. Gateway routing and deployment infrastructure are not included in the provided tree.
Main entry points: aiService.js AI client · App.js App routing · ai_routes.py Analysis endpoints · reportService.js Report client
Components 23
Web application
- App routing
frontend/health-ai-frontend/src/App.js - Auth state
frontend/health-ai-frontend/src/contexts/AuthContext.jsx - Login and registration
frontend/health-ai-frontend/src/components/Login.jsx - Report upload
frontend/health-ai-frontend/src/components/ReportUpload.jsx - Report list
frontend/health-ai-frontend/src/components/ReportList.jsx - Analysis history
frontend/health-ai-frontend/src/components/AnalysisHistory.jsx - Report chat
frontend/health-ai-frontend/src/components/ChatWindow.jsx - Auth client
frontend/health-ai-frontend/src/services/authService.js - Report client
frontend/health-ai-frontend/src/services/reportService.js - AI client
frontend/health-ai-frontend/src/services/aiService.js - HTTP clients
frontend/health-ai-frontend/src/services/api.js
Authentication
- Auth endpoints
services/auth-service/app/routers/auth_routes.py - Auth database
services/auth-service/app/database.py
Report management
- Report endpoints
services/report-service/app/routers/report_routes.py - Report database
services/report-service/app/database.py - Amazon S3
AI analysis
- Analysis endpoints
services/ai-service/app/routers/ai_routes.py - PDF extraction
services/ai-service/app/pdf_parser.py - Analysis and Q&A
services/ai-service/app/ai_engine.py - Analysis records
services/ai-service/app/report_context.py - Analysis database
services/ai-service/app/database.py
Other components
- Patient
- Ollama model
Connections 27
- Patient → App routing: uses
README.md - App routing → Login and registration: routes to
frontend/health-ai-frontend/src/App.js - App routing → Report upload: routes to
frontend/health-ai-frontend/src/App.js - App routing → Report list: routes to
frontend/health-ai-frontend/src/App.js - App routing → Analysis history: routes to
frontend/health-ai-frontend/src/App.js - Login and registration → Auth state: uses
frontend/health-ai-frontend/src/components/Login.jsx - Auth state → Auth client: calls
frontend/health-ai-frontend/src/contexts/AuthContext.jsx - Auth client → HTTP clients: uses
frontend/health-ai-frontend/src/services/authService.js - Auth client → Auth endpoints: requests
frontend/health-ai-frontend/src/services/authService.js - Auth endpoints → Auth database: reads and writes
services/auth-service/app/routers/auth_routes.py - Report upload → Report client: uses
frontend/health-ai-frontend/src/components/ReportUpload.jsx - Report list → Report client: uses
frontend/health-ai-frontend/src/components/ReportList.jsx - Report upload → AI client: uses
frontend/health-ai-frontend/src/components/ReportUpload.jsx - Report list → AI client: uses
frontend/health-ai-frontend/src/components/ReportList.jsx - Analysis history → AI client: calls
frontend/health-ai-frontend/src/components/AnalysisHistory.jsx - Report chat → AI client: calls
frontend/health-ai-frontend/src/components/ChatWindow.jsx - Report client → HTTP clients: uses
frontend/health-ai-frontend/src/services/reportService.js - AI client → HTTP clients: uses
frontend/health-ai-frontend/src/services/aiService.js - Report client → Report endpoints: requests
frontend/health-ai-frontend/src/services/reportService.js - AI client → Analysis endpoints: requests
frontend/health-ai-frontend/src/services/aiService.js - Report endpoints → Report database: stores metadata
services/report-service/app/routers/report_routes.py - Report endpoints → Amazon S3: uploads and deletes
services/report-service/app/routers/report_routes.py - Analysis endpoints → PDF extraction: extracts text
services/ai-service/app/routers/ai_routes.py - Analysis endpoints → Analysis and Q&A: requests analysis
services/ai-service/app/routers/ai_routes.py - Analysis endpoints → Analysis records: manages records
services/ai-service/app/routers/ai_routes.py - Analysis records → Analysis database: uses models
services/ai-service/app/report_context.py - Analysis and Q&A → Ollama model: sends prompts
services/ai-service/app/ai_engine.py