How user-waron/med_project works
This is a clinical intake and risk-triage dashboard. Staff upload a report for extraction or enter CBC/CMP values manually; the browser sends the patient data to Flask, which scores and routes the case, persists it, and the dashboard retrieves cases for intern or senior review. Report extraction and the external notification integration are separate capabilities. Source excerpts show the browser calls, database operations, and extraction request; model inference details and some UI wiring are in omitted sections, so those links are marked unverified or omitted.
Main entry points: app.py Flask routes · api.js Browser API · main.js Intake workflow · patients.db Patient reports
Components 14
Clinical dashboard
- Dashboard shell
static/index.html - Intake workflow
static/js/main.js - Browser API
static/js/api.js - Dashboard views
static/js/ui.js
Triage backend
- Flask routes
app.py - Report extraction
app.py - Risk scoring
app.py - Case routing
app.py - Dashboard queries
app.py - Patient reports
patients.db - Risk model training
train_model.py
External services
- Groq extraction API
- n8n notifications
Other components
- Clinical staff
Connections 17
- Clinical staff → Intake workflow: enters data
- Intake workflow → Browser API: requests data
static/js/main.js - Intake workflow → Dashboard views: renders views
static/js/main.js - Browser API → Flask routes: calls endpoints
static/js/api.js - Flask routes → Patient reports: reads cases
app.py - Flask routes → Patient reports: upserts reports
app.py - Flask routes → Risk scoring: scores patients
app.py - Risk scoring → Case routing: assigns cases
app.py - Case routing → Patient reports: stores assignment
app.py - Browser API → Report extraction: uploads report
static/js/api.js - Report extraction → Groq extraction API: requests extraction
app.py - Report extraction → Intake workflow: returns fields
static/js/main.js - Flask routes → n8n notifications: sends alerts
app.py - Risk model training → Risk scoring: trains model
- Dashboard queries → Patient reports: queries cases
app.py - Flask routes → Dashboard queries: serves dashboards
app.py - Browser API → Dashboard queries: fetches dashboards
static/js/api.js