Final Project for CC103 - Object-Oriented Programming
Developed by Davedev
A console-based Electronic Health Record (EHR) System built with Java, designed for healthcare professionals to manage patient and doctor records efficiently.
- ✅ CRUD Operations: Add, view, update, and archive patient records
- 📂 Archival System: Safely archive/unarchive records without deletion
- 🔍 Search: Find patients by ID
- 📝 Detailed Records:
- Personal info, medical history, allergies, treatment plans
- Emergency contacts, assigned doctors
- 👨⚕️ Add/View Doctors: Track doctor specializations
- 🏷️ Assign Doctors: Link patients to doctors
- 🎨 Color-Coded Console: ANSI colors for better readability
- ✔️ Input Validation: Ensures correct formats (dates, phone numbers, etc.)
- 📅 Auto Age Calculation: From date of birth
- 🔒 Privacy Notice: Prompts users about data confidentiality
- ♻️ Safe Archiving: Prevents accidental data loss
- Encapsulation: Private fields with getters/setters
- Abstraction: Separate UI (
*View
classes) from logic (*Service
classes) - Composition:
PatientService
depends onDoctorService
Class | Purpose |
---|---|
Patient |
Stores patient data (ID, name, medical history, etc.) |
Doctor |
Manages doctor details (ID, name, specialization) |
PatientService |
Handles patient operations (CRUD, archiving) |
InputValidator |
Validates user inputs (numbers, dates, text) |
MenuUtil |
Manages console UI (menus, screen clearing) |
- Try-catch blocks with colored error messages
- Prevents crashes on invalid inputs
-
Requirements:
- Java 17+
- Terminal/CMD (for console output)
-
Steps:
git clone cd EHR-System javac Main.java java Main
MIT License - Free for academic/learning use.
- Anggit, John Robert
- Balonzo, John Venedick
- Gascon, Jerell
- Quidan, Excequel
- Rentoria, Mark Rainier
Submitted for CC103 - AISAT DASMARIÑAS COLLEGE
🔹 For a detailed code walkthrough, check the source files!