This project defines the Entity-Relationship Diagram (ERD) for a modern Clinic Management System. It serves as the digital backbone of a clinic, ensuring smooth data flow from patient scheduling to consultation, diagnostics, and billingβwithout losing critical information at any stage.
The system separates Bookings from Actual Visits:
- Appointments track scheduled visits, cancellations, and no-shows.
- Consultations store actual medical interactions.
This keeps patient medical history clean and accurate while still tracking operational data.
Doctors can prescribe multiple tests during a single consultation:
- Each consultation can generate multiple prescribed tests
- Each prescribed test is linked to its test report
This creates a clear trace:
Consultation β Test Prescription β Test Report
Doctors are grouped into specialties (e.g., Cardiology, Pediatrics):
- Makes the system scalable and organized
- Improves searchability and filtering
Core entities representing users of the system:
- patients β Stores patient profiles
- doctors β Stores doctor profiles
- specialties β Master list of medical departments
Tracks the patient journey:
- appointments β Initial booking records
- consultations β Actual visits with diagnoses and notes
Handles diagnostics and reports:
- test_catalog β List of available medical tests
- prescribed_tests β Tests ordered by doctors
- test_reports β Results linked to prescribed tests
Tracks billing and payments:
- payments β Records transactions linked to consultations
-
PK (Primary Key) Unique identifier for each record in a table
-
FK (Foreign Key) Field used to link one table to another
-
Relationships (Arrows) Indicate how entities are connected:
- One doctor β Many appointments
- One consultation β Many prescribed tests
- One prescribed test β One test report
This ERD is designed to:
- Maintain clean separation between operational and medical data
- Enable scalability for growing clinics
- Ensure traceability across consultations, diagnostics, and billing
- Support efficient querying and reporting