How tanmay-g1/fetal_and_maternal_health_classifier works
This is a pregnancy health application for patients and doctors, combining health guidance pages, role-based accounts, assessments, and clinician-patient workflows. The main assessment path is a patient or doctor request through the Express API to the Python prediction service, which loads a model and returns a risk result; patient and doctor routes then persist or retrieve assessment data. The tree also shows wellness and pregnancy-information pages. No README or frontend call sites were provided, so links from pages to API operations are not asserted.
Main entry points: doctor.js Doctor routes · index.js Express application · patient.js Patient routes · app.py Prediction API
Components 14
Web experience
- Health guidance
public - Pregnancy pages
public
Application API
- Express application
server/src/index.js - Account routes
server/src/routes/auth.js - Patient routes
server/src/routes/patient.js - Doctor routes
server/src/routes/doctor.js - Role authorization
server/src/middleware/auth.js
Health records
- User accounts
server/src/models/User.js - Patient profile
server/src/models/PatientProfile.js - Assessment records
server/src/models/QuestionnaireResponse.js
Risk prediction
- Prediction API
server/ml_service/app.py - Prediction models
server/ml_service/model_classes.py - Model artifacts
server/ml_service/models
Other components
- Patient or doctor
Connections 19
- Patient or doctor → Health guidance: views
- Patient or doctor → Pregnancy pages: views
- Express application → Health guidance: serves static files
server/src/index.js - Express application → Account routes: mounts routes
server/src/index.js - Express application → Patient routes: mounts routes
server/src/index.js - Express application → Doctor routes: mounts routes
server/src/index.js - Express application → User accounts: connects database
server/src/index.js - Account routes → User accounts: reads and creates
server/src/routes/auth.js - Patient routes → Role authorization: checks role
server/src/routes/patient.js - Doctor routes → Role authorization: checks role
server/src/routes/doctor.js - Patient routes → Assessment records: saves and reads
server/src/routes/patient.js - Patient routes → Patient profile: reads status
server/src/routes/patient.js - Patient routes → Prediction API: requests prediction
server/src/routes/patient.js - Doctor routes → User accounts: reads and updates
server/src/routes/doctor.js - Doctor routes → Patient profile: updates assessment
server/src/routes/doctor.js - Doctor routes → Assessment records: reads and deletes
server/src/routes/doctor.js - Doctor routes → Prediction API: requests prediction
server/src/routes/doctor.js - Prediction API → Prediction models: imports classes
server/ml_service/app.py - Prediction API → Model artifacts: loads artifacts
server/ml_service/app.py