How wangzhengpengjay/ai-health-steward works
AI Health Steward is a private, single-family health-management application with a full WebUI and a lighter Feishu entry point. The principal workflow is to collect reports or health measurements, extract and confirm structured data, maintain per-member health profiles, and use those profiles for dashboards, consultation, recommendations, summaries, and follow-up tasks. The graph includes the documented assessment, trend, settings, and semantic-search capabilities. Some service and route internals were not sampled, so those links are documented at product level or omitted rather than inferred from names.
Main entry points: App.tsx Web application · router.py Versioned API routes · health.py Health profile records · consultation.py AI consultation
Components 26
Web management
- Web application
frontend/src/App.tsx - Dashboard and trends
frontend/src/pages/Dashboard.tsx - Report management
frontend/src/pages/Reports.tsx - Metric entry
frontend/src/pages/MetricInput.tsx - Consultation UI
frontend/src/pages/Chat.tsx - System settings
frontend/src/pages/Settings.tsx - Other health pages
frontend/src/pages/CheckupRecommend.tsx
API and channels
- FastAPI application
backend/app/main.py - Versioned API routes
backend/app/api/v1/router.py - Feishu channel
backend/app/services/feishu.py
Health workflows
- Report extraction and filing
backend/app/api/routes/reports.py - Health profile and metrics
backend/app/api/routes/profile.py - Checkup recommendations
backend/app/services/checkup_recommend.py - Risk assessments
backend/app/core/assessment_scales.py - Periodic health summaries
backend/app/services/summary_service.py - Follow-up task management
backend/app/services/task_service.py
AI and models
- AI consultation
backend/app/services/consultation.py - Model provider routing
backend/app/providers/router.py - Report semantic search
backend/app/services/rag.py
Health records
- Health profile records
backend/app/models/health.py - Family members
backend/app/models/family.py - Health tasks
backend/app/models/tasks.py - Local health files
backend/app/services/file_storage.py - Database sessions
backend/app/core/database.py
Other components
- Family user
- Configured model services
Connections 30
- Family user → Web application: uses
README.md - Web application → Dashboard and trends: routes to
frontend/src/App.tsx - Web application → Report management: routes to
frontend/src/App.tsx - Web application → Metric entry: routes to
frontend/src/App.tsx - Web application → Consultation UI: routes to
frontend/src/App.tsx - Web application → System settings: routes to
frontend/src/App.tsx - Web application → Other health pages: routes to
frontend/src/App.tsx - Web application → Versioned API routes: requests API
- FastAPI application → Versioned API routes: mounts
backend/app/main.py - Versioned API routes → Report extraction and filing: registers
backend/app/api/v1/router.py - Versioned API routes → Health profile and metrics: registers
backend/app/api/v1/router.py - Versioned API routes → AI consultation: registers chat route
backend/app/api/v1/router.py - Versioned API routes → Checkup recommendations: registers checkup route
backend/app/api/v1/router.py - Report extraction and filing → Health profile records: files extracted data
- Health profile and metrics → Health profile records: reads and writes
backend/app/api/routes/profile.py - AI consultation → Model provider routing: selects provider
- Model provider routing → Configured model services: routes requests
backend/app/providers/router.py - AI consultation → Report semantic search: searches reports
- Report semantic search → Health profile records: retrieves report data
backend/app/services/rag.py - Checkup recommendations → Family members: uses member profile
- Periodic health summaries → Health profile records: summarizes health data
backend/app/services/summary_service.py - Periodic health summaries → Follow-up task management: creates follow-ups
backend/app/services/summary_service.py - Follow-up task management → Health tasks: manages tasks
backend/app/services/task_service.py - Local health files → Family members: organizes files by member
backend/app/services/file_storage.py - FastAPI application → Feishu channel: starts and stops
backend/app/main.py - Feishu channel → AI consultation: answers via AI
- Other health pages → Risk assessments: offers self-assessment
README.md - Database sessions → Family members: provides ORM base
backend/app/models/family.py - Database sessions → Health profile records: provides ORM base
backend/app/models/health.py - Database sessions → Health tasks: provides ORM base
backend/app/models/tasks.py