How tabeebai/backend-tabeebai works
TabebAI is a healthcare management API for patients, doctors, and laboratory technicians. Users register or sign in, maintain profiles, and use QR-linked visits to share treatment and laboratory results; the platform also exposes notifications, wearable vital readings, cardiac-risk predictions, and X-ray prediction. The sampled files show the main routing and several data paths, but not all QR, wearable, or imaging implementation details, so uncertain connections are omitted or marked unverified.
Main entry points: urls.py API Routes · QR/views.py QR Visit Workflow · Patients/views.py Patient API · models.py Patient Records
Components 29
Access and Profiles
- Patient API
Patients/views.py - Patient Records
Patients/models.py - Patient Serializers
Patients/serializers.py - Patient Signals
Patients/signals.py - Doctor API
Doctor/views.py - Doctor Records
Doctor/models.py - Doctor Serializers
Doctor/serializers.py - Lab Technician API
Laptech/views.py - Lab Records
Laptech/models.py - Lab Serializers
Laptech/serializers.py - Admin API
Admin/views.py - Admin Serializers
Admin/serializers.py
Visits and Lab Work
- QR Visit Workflow
QR/views.py - Visit and Session Records
QR/models.py - QR Serializers
QR/serializers.py
Patient Health
- Wearable API
Smart_Watch/views.py - Vital Sign Records
Smart_Watch/models.py - BLE Service
Smart_Watch/ble_service.py - Risk and Charts
prediction/views.py - Risk Results
prediction/models.py - X-ray Prediction
X_rays/views.py - Model Loader
X_rays/model_loader.py - Image Transforms
X_rays/transforms.py
Notifications
- Notification API
QR/api.py - Notification Consumer
QR/consumers.py - WebSocket Routes
QR/routing.py
Other components
- API Client
- API Routes
TabebAI/urls.py - n8n Webhook
Connections 38
- API Client → API Routes: sends requests
TabebAI/urls.py - API Routes → Patient API: routes to
TabebAI/urls.py - API Routes → Doctor API: routes to
TabebAI/urls.py - API Routes → Lab Technician API: routes to
TabebAI/urls.py - API Routes → Admin API: routes to
TabebAI/urls.py - API Routes → QR Visit Workflow: routes to
TabebAI/urls.py - API Routes → Notification API: routes to
TabebAI/urls.py - API Routes → Wearable API: routes to
TabebAI/urls.py - API Routes → Risk and Charts: routes to
TabebAI/urls.py - API Routes → X-ray Prediction: routes to
TabebAI/urls.py - Patient API → Patient Serializers: validates with
Patients/views.py - Patient API → Patient Records: reads and writes
Patients/views.py - Patient API → Doctor Records: searches
Patients/views.py - Patient API → Lab Records: searches
Patients/views.py - Patient API → n8n Webhook: posts question
Patients/views.py - Patient Signals → Patient Records: uses model
Patients/signals.py - Doctor API → Doctor Serializers: uses
Doctor/views.py - Doctor Serializers → Doctor Records: serializes
Doctor/serializers.py - Lab Technician API → Lab Serializers: uses
Laptech/views.py - Lab Serializers → Lab Records: serializes
Laptech/serializers.py - Admin API → Admin Serializers: uses
Admin/views.py - Admin API → Doctor Records: queries
Admin/views.py - Admin API → Lab Records: queries
Admin/views.py - QR Visit Workflow → Visit and Session Records: reads and writes
QR/views.py - QR Visit Workflow → QR Serializers: uses
QR/views.py - QR Visit Workflow → Patient Records: reads patient
QR/views.py - QR Visit Workflow → Doctor Records: assigns doctor
QR/views.py - QR Visit Workflow → Lab Records: assigns technician
QR/views.py - QR Visit Workflow → Notification API: creates notifications
- WebSocket Routes → Notification Consumer: registers
QR/routing.py - Wearable API → Vital Sign Records: reads and writes
Smart_Watch/views.py - Wearable API → Patient Records: resolves patient
Smart_Watch/views.py - BLE Service → Wearable API: feeds readings
- Risk and Charts → Patient Records: loads patient
prediction/views.py - Risk and Charts → Vital Sign Records: reads vitals
prediction/views.py - Risk and Charts → Risk Results: stores and reads results
prediction/views.py - X-ray Prediction → Model Loader: loads model
X_rays/views.py - X-ray Prediction → Image Transforms: uses transforms
X_rays/views.py