How arunkarthick052004/telemedicine_demo works
This is a full-stack health assistant: patients register or log in, enter vitals and symptoms for an AI analysis, then review history or request a doctor consultation. Doctors can manage patient consultations, and ESP32 sensor readings can be streamed to the app. The main runtime is concentrated in server.js and the two client scripts. README capabilities such as PDF reports and profile/history are included; unsampled implementations are represented only at their supported paths, and edges reflect the excerpts or documented features.
Main entry points: database_setup.sql MySQL database · script.js Vitals and symptoms · server.js Consultation coordination · doctor Doctor dashboard
Components 18
Patient experience
- Login and QR
public/login.js - Vitals and symptoms
public/script.js - History and profile
public/script.js - PDF reports
public/script.js - Consultation UI
public/script.js
Clinical services
- Doctor dashboard
public/doctor - Consultation coordination
server.js - Doctor records
server.js - Doctor registration and profile
server.js
Backend services
- AI analysis
server.js - Patient authentication
server.js - Patient data and history
server.js - MySQL database
database_setup.sql - Sensor vitals endpoint
server.js
Vitals device
- ESP32 sensor firmware
firmware/max30102_esp32/max30102_esp32.ino
Other components
- Patient
- Gemini API
- Email service
Connections 22
- Patient → Login and QR: uses
public/login.js - Login and QR → Patient authentication: authenticates
public/login.js - Patient authentication → MySQL database: reads and writes
server.js - Patient → Vitals and symptoms: enters vitals
public/script.js - Vitals and symptoms → AI analysis: submits analysis
server.js - AI analysis → MySQL database: stores results
server.js - AI analysis → Gemini API: requests diagnosis
server.js - Vitals and symptoms → History and profile: views records
public/script.js - History and profile → Patient data and history: fetches history
server.js - Patient data and history → MySQL database: queries records
server.js - History and profile → PDF reports: generates PDF
public/script.js - Patient → Consultation UI: requests doctor
public/script.js - Consultation UI → Consultation coordination: requests consultation
server.js - Doctor dashboard → Consultation coordination: handles requests
- Consultation coordination → MySQL database: updates requests
server.js - Consultation coordination → Email service: notifies admin
server.js - Doctor dashboard → Doctor records: views patients
- Doctor records → MySQL database: queries records
server.js - Doctor dashboard → Doctor registration and profile: manages profile
- Doctor registration and profile → MySQL database: stores doctor data
server.js - ESP32 sensor firmware → Sensor vitals endpoint: posts vitals
- Sensor vitals endpoint → Vitals and symptoms: broadcasts updates
server.js