GitHunt

πŸ“‹ Electronic Health Record (EHR) System

Final Project for CC103 - Object-Oriented Programming

Developed by Davedev

Java
License

A console-based Electronic Health Record (EHR) System built with Java, designed for healthcare professionals to manage patient and doctor records efficiently.


✨ Features

Patient Management

  • βœ… 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

Doctor Management

  • πŸ‘¨β€βš•οΈ Add/View Doctors: Track doctor specializations
  • 🏷️ Assign Doctors: Link patients to doctors

User Experience

  • 🎨 Color-Coded Console: ANSI colors for better readability
  • βœ”οΈ Input Validation: Ensures correct formats (dates, phone numbers, etc.)
  • πŸ“… Auto Age Calculation: From date of birth

Security & Compliance

  • πŸ”’ Privacy Notice: Prompts users about data confidentiality
  • ♻️ Safe Archiving: Prevents accidental data loss

πŸ› οΈ Technical Implementation

OOP Principles Used

  • Encapsulation: Private fields with getters/setters
  • Abstraction: Separate UI (*View classes) from logic (*Service classes)
  • Composition: PatientService depends on DoctorService

Key Classes

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)

Error Handling

  • Try-catch blocks with colored error messages
  • Prevents crashes on invalid inputs

πŸš€ How to Run

  1. Requirements:

    • Java 17+
    • Terminal/CMD (for console output)
  2. Steps:

    git clone 
    cd EHR-System  
    javac Main.java  
    java Main  

πŸ“œ License

MIT License - Free for academic/learning use.


πŸ‘₯ Contributors

  • 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!