How om-1004/medflowai works
MedFlowAI is a healthcare prediction platform whose primary workflow is a user entering health data or selecting an imaging workflow and receiving an inference result. The sampled code confirms the sleep-assessment path through the React client, Express controller, and FastAPI model; FastAPI also implements CNN image and ANN prediction endpoints. The Node service separately stores and retrieves prediction records and sends contact submissions through SES. Other frontend-to-model wiring is not established by the sampled pages, so those links are omitted.
Main entry points: index.js Express server · main.py Inference API · App.jsx React app and routes · auth Client auth integration
Components 17
Web client
- React app and routes
client/src/App.jsx - Prediction pages
client/src/pages - Auth UI
client/src/pages
Node API
- Sleep API controller
api/controllers/model.controller.js - Prediction records API
api/controllers/predictions.controller.js - Contact email API
api/controllers/email.controller.js - Express server
api/index.js
ML inference
- Inference API
ml_service/main.py - Sleep model
ml_service/main.py - Brain image CNN
ml_service/main.py - Cancer risk ANN
ml_service/main.py
Identity and records
- Prediction records
api/config/db.js - Client auth integration
client/src/auth
External integrations
- AWS Cognito
- AWS SES
- Firebase sign-in
Other components
- Platform user
Connections 16
- Platform user → React app and routes: uses
- React app and routes → Prediction pages: routes to
- React app and routes → Auth UI: routes to
- Prediction pages → Express server: submits sleep data
- Express server → Sleep API controller: dispatches
- Sleep API controller → Inference API: forwards sleep input
- Inference API → Sleep model: predicts with
- Sleep model → Inference API: returns prediction
- Inference API → Sleep API controller: returns result
- Express server → Prediction records API: dispatches
- Prediction records API → Prediction records: reads and writes
- Express server → Contact email API: dispatches
- Contact email API → AWS SES: sends email
- Auth UI → Client auth integration: uses
- Client auth integration → Firebase sign-in: signs in with
- Client auth integration → AWS Cognito: documented auth