ERD Description
ERD Description
Healthcare System
Overview
The diagram models a system that handles user data, administrative oversight, and
interactions between patients and doctors. The design includes inheritance (or
generalization) where certain user types (such as Patient and Admin) inherit common user
properties. It also maps out the relationships between various supporting entities like
contact information, notifications, departments, and specializations.
User
User_ID: A unique identifier for each user.
Username: The login name or identifier.
Password: The secret used for authentication.
Generalization: Admin and Patient inherit from User.
Contact Info
User_ID: Links the contact info to a specific user.
Address: Includes components such as street number and city.
Email: The user’s email address.
Phone No: The user’s contact phone number.
Admin
Inherits all attributes from the User entity.
Can manage users.
Can view system notifications.
Patient
Patient_ID: Unique identifier for the patient role.
Name: The full name of the patient.
DOB: Date of birth.
Age: The current age.
Height: Patient’s height.
Weight: Patient’s weight.
BMI: Derived from weight and height.
Blood Group: The patient’s blood type.
Relationships: Vitals, Symptoms, Prediction
Doctor
Doctor_ID: Unique identifier for each doctor.
Name: The doctor’s full name.
Department_ID: Links the doctor to a department.
Specialization_ID: Links the doctor to a field of expertise.
Mentor_ID: References another doctor who acts as a mentor.
Relationships: Treats Patients, Mentors other Doctors, Prediction, Record
Departments
Dept_ID: Unique identifier for the department.
Name: The department name (e.g., Cardiology, Neurology).
Specialization
Specialization_ID: Unique identifier for the specialization.
Name: The field of specialization (e.g., Pediatrics, Orthopedics).
Vitals
Vital_ID: Unique identifier for each vital record.
Sugar Level: Blood sugar measurement.
Temperature: Body temperature.
Blood Pressure: Blood pressure measurement.
Notification
Notification_ID: Unique identifier for each notification.
Description: A text description of the notification.
Visible to Admins
Symptoms
Symptom_ID: Unique identifier for the symptom.
Name: Name of the symptom reported by a patient.
Prediction
Prediction_ID: Unique identifier for the prediction.
Involves Patients, Symptoms, and Doctors.
Record
Record_ID: Unique identifier for each record.
Patient_ID, Doctor_ID, Med_ID, Vital_ID: Linked references.
Diagnosis: Text description of the medical condition.
Date: The date of record creation.
Medication
Med_ID: Unique identifier for the medication.
Name: Medication name.
Dosage: Dosage details.
Frequency: Frequency of administration.