Medical Aid Tracker is a Java-based application that streamlines the process of accessing medical services such as doctor consultations, ambulance bookings, and hospital bed availability. The system interacts with a MySQL database and offers distinct roles for Patients and Medical Representatives , with tailored functionalities for each.
🔍 Search Doctors by Specialization
🚑 Search Emergency Doctors with Available Beds
🚐 Search for Available Ambulance Services
📅 Book a Doctor Appointment
➕ Add a New Patient
📋 Show Appointment Details
🗑️ Delete Patient Record (and its Appointments)
❌ Cancel Appointment by Appointment ID
🧾 Show Patient Details
🏥 Medical Representative Login
🩺 Update Doctor Availability Status
🛏️ Update Bed Availability Status
❌ Cancel Appointments by Doctor ID
🗑️ Delete Patient Record (and its Appointments)
📋 Show Appointment Details
🧾 Show Patient Details
1️⃣ Patient Login
2️⃣ Medical Representative Login
3️⃣ Exit Application
Java – Core programming language
JDBC – For MySQL connectivity
MySQL – Backend database
E/R Modeling – For logical database schema
📌 Entity-Relationship Diagram
📄 Click here to view the ER Diagram (PDF)
Field
Type
Description
patient_id
INT (PK)
Unique identifier
name
VARCHAR
Patient name
dob
DATE
Date of birth
contact_number
VARCHAR
Contact details
blood_group
VARCHAR
Blood group
Field
Type
Description
doctor_id
INT (PK)
Unique doctor ID
name
VARCHAR
Doctor's name
specialization
VARCHAR
Area of expertise
availability_status
ENUM
'Available', 'Unavailable'
from_time
TIME
Start of consultation
to_time
TIME
End of consultation
hospital_id
INT (FK)
Linked hospital
Field
Type
Description
hospital_id
INT (PK)
Unique hospital ID
hospital_name
VARCHAR
Name of the hospital
address
TEXT
Location details
contact_number
VARCHAR
Hospital phone
Field
Type
Description
bed_id
INT (PK)
Bed ID
hospital_id
INT (FK)
Hospital linkage
ward_type
ENUM
'ICU', 'General'
status
ENUM
'Available', 'Occupied'
Field
Type
Description
id
INT (PK)
Appointment ID
patient
INT (FK)
Linked patient
doctor_id
INT (FK)
Assigned doctor
hospital
INT (FK)
Hospital location
date
DATE
Appointment date
time
TIME
Time of appointment
status
ENUM
'Booked', 'Completed', 'Cancelled'
Field
Type
Description
id
INT (PK)
Ambulance ID
driver
VARCHAR
Driver name
location
VARCHAR
Current/last known location
status
ENUM
'Available', 'Busy'
Field
Type
Description
phone
VARCHAR
Driver contact
id
INT (FK)
Ambulance reference
Java 8+
MySQL Server
JDBC MySQL Driver
Clone this repository.
Create a MySQL database:
CREATE DATABASE medical_aid_tracker ;
You can import the dataset from data.sql file
Run the "med_aid.track.java" file on terminal
You're set to go !
Here is the preview of it !