How neliken/pulmonogy_app works
This Flask pulmonology cabinet supports patient registration and maintenance, chest X-ray upload with five-class prediction, and a symptom-based lung cancer risk assessment. The route handlers in main.py own these workflows, persist patient and result data in SQLite, and render the corresponding templates. The model artifacts are present in the tree, but the X-ray checkpoint named by main.py is not; relationships are limited to those explicit in the sampled source. Templates are represented as UI components where their paths are shown in the tree.
Main entry points: main.py Flask routes · uploads Uploaded X-rays · trained_pipeline.pkl Cancer classifier · add_patient.html Patient views
Components 16
Patient records
- Flask routes
main.py - Patient model
main.py - Patient database
main.py
Diagnostics
- Uploaded X-rays
static/uploads - X-ray inference
main.py - X-ray model
- Cancer risk inference
main.py - Cancer classifier
trained_pipeline.pkl
Web views
- Patient views
templates/add_patient.html - Patient list view
templates/patient_list.html - Patient detail view
templates/patient_detail.html - Home view
templates/home.html - X-ray upload view
templates/upload_xray.html - X-ray result view
- Cancer assessment view
templates/lung_cancer_test.html
Other components
- Cabinet user
Connections 17
- Cabinet user → Flask routes: uses
main.py - Flask routes → Home view: renders
main.py - Flask routes → Patient views: renders
main.py - Flask routes → Patient list view: renders
main.py - Flask routes → Patient detail view: renders
main.py - Flask routes → Patient model: queries and updates
main.py - Patient model → Patient database: persists
main.py - Flask routes → X-ray upload view: renders
main.py - Flask routes → Uploaded X-rays: saves image
main.py - Flask routes → X-ray inference: preprocesses image
main.py - X-ray inference → X-ray model: infers classes
main.py - Flask routes → Patient model: stores probabilities
main.py - Flask routes → X-ray result view: renders result
main.py - Flask routes → Cancer assessment view: renders
main.py - Flask routes → Cancer risk inference: builds assessment
main.py - Cancer risk inference → Cancer classifier: predicts risk
main.py - Flask routes → Patient model: stores risk
main.py