Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

Latest commit

Β 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ STICA Clinic Management System

Important

Project status: Academic prototype - maintenance-only

This repository is retained as a portfolio artifact from a five-person capstone project. I served as the project lead and lead programmer. It is not actively maintained or production-ready, and some workflows may be incomplete, outdated, or defective. Installation and feature behavior are not guaranteed in current environments.

Do not use this software with real patient, student, employee, or medical data. Its security, privacy, backup, data-retention, and regulatory requirements have not been validated.

An academic clinic-management prototype originally built for STI College Alabang to explore student and employee health-visit tracking, consultations, and medical-record workflows.

PHP SQLite Bootstrap JavaScript


Maintenance status

  • No active maintenance, support, or compatibility guarantee.
  • Some workflowsβ€”including authentication, record management, reports, and importsβ€”have not been recently verified and may not function as intended.
  • Dependencies, setup instructions, and environment assumptions may be outdated.
  • Security, privacy, access control, backups, and data retention have not been professionally audited.
  • Use synthetic test data only. This is not production medical software.

The repository remains useful as a demonstration of PHP MVC structure, SQLite data modeling, interface design, and technical leadership in a student team.


✨ Features

πŸ‘₯ Patient Management

  • Student Records - Manage student information with ID, name, age, gender, contact, and course/year
  • Employee Records - Track employee details including position and contact information
  • Emergency Contacts - Dedicated fields for emergency contact name and phone number
  • Excel Import - Bulk import students/employees from Excel files
  • Multi-Select Delete - Select and delete multiple records at once

🩺 Consultation Tracking

  • Real-time Timer - Track consultation duration with live timer
  • Vital Signs Recording - Blood pressure, temperature, weight, pulse rate (with color-coded limit alerts)
  • Smart Quick-Picks - One-click common diagnoses and treatments (e.g., Hot/Cold Compress, Paracetamol)
  • Diagnosis & Treatment - Document reasons, diagnoses, and interventions
  • Visit History - Complete history of all clinic visits per patient

πŸ“Š Dashboard

  • Daily Statistics - Today's visits, active consultations, total patients
  • Visual Charts - Weekly visit trends with Chart.js
  • Clinic Activity Feed - Real-time activity tracking
  • Audit Trails - Track system usage, user logins, and record changes

πŸ’Š Medicine Inventory

  • Stock Management - Track medicine quantities and units
  • Expiration Tracking - Monitor medicine expiration dates
  • Quick Updates - Easy stock adjustments

πŸš€ Quick Actions & Tools

  • Consultation Print - One-click print for consultation records (A4 format)
  • Instant Search - DataTables-powered search and filtering
  • Responsive Design - Works on desktop and mobile devices

πŸ› οΈ Tech Stack

Layer Technology
Backend PHP 7.4+ (Custom MVC Framework)
Database SQLite (portable, no setup required)
Frontend HTML5, CSS3, JavaScript
UI Framework Bootstrap 5.3
Charts Chart.js
Tables DataTables
Icons Font Awesome 6

πŸ“¦ Installation

Prerequisites

  • PHP 7.4 or higher
  • No additional database server required (uses SQLite)

Local inspection (legacy instructions)

These instructions are retained for code review and may not work in current environments.

  1. Clone the repository

    git clone https://github.com/chaaruze/stica-clinic.git
    cd stica-clinic
  2. Initialize the database

    php database/migrate.php
  3. Start the development server

    # Using the included batch file (Windows)
    start.bat
    
    # Or manually with PHP built-in server
    php -S localhost:8080 router.php
  4. Access the application

    http://localhost:8080
    

Alternative: XAMPP/WAMP Setup

  1. Move to web server directory

    # For XAMPP
    mv stica-clinic C:/xampp/htdocs/
  2. Configure URL root (if needed)

    • Edit app/config/config.php
    define('URLROOT', 'http://localhost/stica-clinic');
  3. Access the application

    http://localhost/stica-clinic
    

πŸ“ Project Structure

stica-clinic/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ config/          # Configuration files
β”‚   β”œβ”€β”€ controllers/     # MVC Controllers (10 controllers)
β”‚   β”‚   β”œβ”€β”€ Dashboard.php
β”‚   β”‚   β”œβ”€β”€ Employees.php
β”‚   β”‚   β”œβ”€β”€ Home.php     # Authentication
β”‚   β”‚   β”œβ”€β”€ Logs.php
β”‚   β”‚   β”œβ”€β”€ Maintenance.php
β”‚   β”‚   β”œβ”€β”€ Medicines.php
β”‚   β”‚   β”œβ”€β”€ Students.php
β”‚   β”‚   β”œβ”€β”€ System.php
β”‚   β”‚   β”œβ”€β”€ Users.php
β”‚   β”‚   └── Visits.php
β”‚   β”œβ”€β”€ core/            # Core framework classes
β”‚   β”‚   β”œβ”€β”€ App.php      # URL Router
β”‚   β”‚   β”œβ”€β”€ Controller.php
β”‚   β”‚   └── Database.php # PDO wrapper
β”‚   β”œβ”€β”€ helpers/         # Helper functions
β”‚   β”œβ”€β”€ libraries/       # PHPMailer for emails
β”‚   β”œβ”€β”€ models/          # Database models (6 models)
β”‚   └── views/           # View templates (12 directories)
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ index.php        # Entry point
β”‚   └── assets/          # CSS, JS, Images
β”œβ”€β”€ database/
β”‚   β”œβ”€β”€ clinic.sqlite    # SQLite database
β”‚   └── migrate.php      # Schema migration
└── router.php           # PHP dev server router

πŸ—„οΈ Database Schema

Table Description
nurses Staff/admin login credentials
student_details Student information (ID, name, contact, course)
employee_details Employee information (ID, name, contact, position)
student_history Student clinic visit records with vitals
employee_history Employee clinic visit records with vitals
medicines Medicine inventory (name, stock, expiration)
activity_logs Audit trail of all user actions
login_logs Login history tracking
remember_tokens Persistent login tokens

🎨 Screenshots

Dashboard Student Records Consultation Visit History

πŸ‘¨β€πŸ’» Author

John Charles Omagap

Project lead and lead programmer in a five-person capstone team.


πŸ“„ License

No license file is currently provided. The repository is retained for portfolio reference.


Academic capstone prototype retained for reference.

About

Unmaintained academic clinic-system capstone prototype built with PHP MVC and SQLite. For demonstration only; not for real medical data.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages