How nithyashreenithu24-arch/materncare works
Matern AI is a role-based maternal-health platform. Patients submit health records and receive risk predictions and nutrition plans; patients and clinicians use dashboards for longitudinal review, communication, appointments, and reports, while administrators manage users and model operations. The server routes API requests to prediction, nutrition, chat, and persistence services. The README documents several capabilities not visible in the sampled implementation; their UI components are included, but uncertain internal relationships are omitted. The graph reflects the supplied excerpts and README, not an inspection of unsampled source.
Main entry points: App.tsx Application Shell · api.ts API Client · server.ts REST API Server · DoctorDashboard.tsx Doctor Dashboard
Components 21
Role-Based Portals
- Application Shell
src/App.tsx - Authentication
src/components/AuthModal.tsx - Patient Dashboard
src/components/PatientDashboard.tsx - Doctor Dashboard
src/components/DoctorDashboard.tsx - Admin Dashboard
src/components/AdminDashboard.tsx
Clinical Guidance
- Health Record Entry
src/components/HealthDataModal.tsx - Risk and Trend Charts
src/components/Charts.tsx - Nutrition Plan View
src/components/NutritionModal.tsx - Clinical Reports
src/components/ReportModal.tsx - Patient Education Chat
src/components/ChatbotDrawer.tsx - Clinical Messaging
src/components/CommunicationPanel.tsx - Appointments
src/components/AppointmentPanel.tsx
Application Services
- API Client
src/api.ts - REST API Server
server.ts - Risk Prediction and Retraining
server/ml_engine.ts - Nutrition Plan Engine
server/nutrition_engine.ts - Chat Service
server/chat_service.ts
Data and Models
- Clinical Data Store
server/db.ts - Model Datasets
data
Other components
- Patient / Clinician / Admin
- Google Gemini
Connections 27
- Patient / Clinician / Admin → Application Shell: uses
README.md - Application Shell → Authentication: opens
src/App.tsx - Application Shell → Patient Dashboard: renders
src/App.tsx - Application Shell → Doctor Dashboard: renders
src/App.tsx - Application Shell → Admin Dashboard: renders
src/App.tsx - Application Shell → Health Record Entry: opens
src/App.tsx - Application Shell → Nutrition Plan View: opens
src/App.tsx - Application Shell → Clinical Reports: opens
src/App.tsx - Application Shell → Patient Education Chat: opens
src/App.tsx - Application Shell → Clinical Messaging: opens
src/App.tsx - Application Shell → Appointments: opens
src/App.tsx - Patient Dashboard → Risk and Trend Charts: renders
src/components/PatientDashboard.tsx - Doctor Dashboard → Risk and Trend Charts: renders
src/components/DoctorDashboard.tsx - Doctor Dashboard → Clinical Messaging: renders
src/components/DoctorDashboard.tsx - Patient Dashboard → API Client: requests data
- Doctor Dashboard → API Client: requests data
- Admin Dashboard → API Client: requests data
src/components/AdminDashboard.tsx - Clinical Messaging → API Client: sends messages
src/components/CommunicationPanel.tsx - Appointments → API Client: requests appointment
src/components/AppointmentPanel.tsx - Patient Education Chat → API Client: sends query
src/components/ChatbotDrawer.tsx - API Client → REST API Server: calls REST API
src/api.ts - REST API Server → Clinical Data Store: reads and writes
server.ts - REST API Server → Risk Prediction and Retraining: calculates risk
server.ts - REST API Server → Nutrition Plan Engine: generates plan
server.ts - REST API Server → Chat Service: requests response
server.ts - Chat Service → Google Gemini: generates response
server/chat_service.ts - Model Datasets → Risk Prediction and Retraining: trains from
README.md