How healthscreen-ai/ai-powered-health-screening-platform works
This is a full-stack AI-assisted health-screening platform. A user registers or signs in, then submits symptoms or a skin image; the backend authenticates the request, predicts a screening result, and stores an assessment. Users can review assessment history on the dashboard. The README also describes longitudinal history and condition trends. The sampled code confirms the symptom and image prediction paths and frontend routing; API-to-backend links for unsampled dashboard and authentication calls are shown as unverified where needed.
Main entry points: api.js API client · App.jsx Route shell · image_diagnosis.py Image screening · symptom.py Symptom screening
Components 19
Web application
- Route shell
frontend/src/App.jsx - Registration
frontend/src/pages/Register.jsx - Login
frontend/src/pages/Login.jsx - Symptom form
frontend/src/pages/SymptomChecker.jsx - Image upload
frontend/src/pages/ImageDiagnosis.jsx - Health dashboard
frontend/src/pages/Dashboard.jsx - API client
frontend/src/utils/api.js - Result display
frontend/src/components/ResultCard.jsx
API and screening
- Authentication API
backend/routers/auth.py - JWT identity
backend/utils/jwt.py - Symptom screening
backend/routers/symptom.py - Image screening
backend/routers/image_diagnosis.py - Assessment history
backend/routers/assessments.py - Image preprocessing
backend/utils/image_utils.py - FastAPI assembly
backend/main.py
Persistence and models
- Assessment database
backend/models/database.py - Symptom artifacts
ml_models/symptom_model.pkl - Skin model
ml_models/skin_model.pt
Other components
- User
Connections 33
- User → Route shell: uses
README.md - Route shell → Registration: routes to
frontend/src/App.jsx - Route shell → Login: routes to
frontend/src/App.jsx - Route shell → Symptom form: routes to
frontend/src/App.jsx - Route shell → Image upload: routes to
frontend/src/App.jsx - Route shell → Health dashboard: routes to
frontend/src/App.jsx - Registration → API client: submits via
frontend/src/pages/Register.jsx - Login → API client: requests via
frontend/src/pages/Login.jsx - Symptom form → API client: requests via
frontend/src/pages/SymptomChecker.jsx - Image upload → API client: uploads via
frontend/src/pages/ImageDiagnosis.jsx - Health dashboard → API client: loads history
frontend/src/pages/Dashboard.jsx - Symptom form → Result display: renders
frontend/src/pages/SymptomChecker.jsx - Image upload → Result display: renders
frontend/src/pages/ImageDiagnosis.jsx - API client → Authentication API: calls API
- API client → Symptom screening: calls API
- API client → Image screening: calls API
- API client → Assessment history: calls API
- FastAPI assembly → Authentication API: mounts
backend/main.py - FastAPI assembly → Symptom screening: mounts
backend/main.py - FastAPI assembly → Image screening: mounts
backend/main.py - FastAPI assembly → Assessment history: mounts
backend/main.py - Authentication API → JWT identity: issues tokens
backend/routers/auth.py - Symptom screening → JWT identity: authenticates with
backend/routers/symptom.py - Image screening → JWT identity: authenticates with
backend/routers/image_diagnosis.py - Assessment history → JWT identity: authenticates with
backend/routers/assessments.py - Authentication API → Assessment database: reads and writes
backend/routers/auth.py - JWT identity → Assessment database: looks up user
backend/utils/jwt.py - Symptom screening → Assessment database: saves assessment
backend/routers/symptom.py - Image screening → Assessment database: saves assessment
backend/routers/image_diagnosis.py - Assessment history → Assessment database: queries history
backend/routers/assessments.py - Symptom screening → Symptom artifacts: loads artifacts
backend/routers/symptom.py - Image screening → Skin model: loads model
backend/routers/image_diagnosis.py - Image screening → Image preprocessing: preprocesses with
backend/routers/image_diagnosis.py