Updated
Updated
PROGRESS II REPORT
I
4.1.1 Summary of Activities for Specific Objective One ..................................................................13
4.1.2 Detailed Description of Activities and Outputs........................................................................14
4.2 Progress on Specific Objective Two ........................................................................................16
REFERENCES ......................................................................................................................................33
APPENDICES .......................................................................................................................................35
Interview Questions...........................................................................................................................35
Database Schema (SQL Scripts)\ ......................................................................................................36
II
LIST OF TABLES
LIST OF FIGURES
III
CHAPTER ONE INTRODUCTION
Digital transformation in healthcare introduces the need for automated queue management and
e-appointment systems that improve patient experience. Technologies such as web-based
portals, mobile applications, and automated scheduling algorithms allow hospitals to
streamline patient flow, reduce administrative workload, and allocate consultation slots
efficiently. Therefore, a Smart Hospital Queue and Appointment Scheduling System can
address the inefficiencies seen in current healthcare operations by providing real-time queue
tracking, automated priority handling, and virtual appointment booking.
Most hospitals continue to rely on manual queue and appointment management systems, which
lead to prolonged patient waiting times and overcrowded reception areas. These systems make
it difficult to effectively prioritize emergency cases or patients with high medical needs,
resulting in delays in critical care.
In addition, poor communication of queue status often causes confusion and dissatisfaction
among patients. Hospital staff also experience a high workload as they are required to manually
manage queues and call patients, which reduces operational efficiency.
Furthermore, the absence of real-time visibility into consultation flow limits both patients and
doctors in planning and coordinating care. If these challenges remain unresolved, hospitals will
continue to face inefficiencies, patient congestion, and reduced service satisfaction.
1
1.3 Project Objectives
To develop an integrated digital platform that automates patient appointment booking and
optimizes real-time outpatient department queue management to reduce patient wait times and
improve hospital operational efficiency.
i. How can digital automation improve queue and appointment management in hospitals?
ii. What features are required for an efficient smart queue and appointment scheduling system?
iii. How can emergencies and priority cases be handled without disrupting the queue flow?
iv. To what extent does the implemented system improve hospital efficiency and patient
experience?
Scope:
2
The Smart Queue and Appointment Scheduling System focuses on developing a digital
solution to manage customer queues and appointments efficiently. The system allows users to
book appointments in advance, receive queue numbers, and view real-time queue status.
Administrators can manage schedules, monitor queues, and control service flow. The project
aims to reduce waiting time, minimize overcrowding, and improve delivery service. The scope
is limited to basic scheduling, queue management, and notification features without advanced
integrations.
Limitations:
3
CHAPTER TWO LITERATURE REVIEW
2.1 Introduction
This chapter presents a review of literature relevant to the design and development of a Smart
Hospital Queue and Appointment Scheduling System. The review covers conceptual and
theoretical foundations, empirical studies, existing systems, and research gaps. It provides the
academic basis for the project and demonstrates how the proposed solution contributes to
improving healthcare workflow through automated queue and appointment management.
The development of a smart queue and appointment scheduling system is guided by several
theories, models, and concepts that explain how technology can improve healthcare
management.
Queueing Theory focuses on optimizing service delivery where demand exceeds capacity. In
hospitals, it is used to model waiting lines, prioritize patients, and minimize service delays. The
theory helps the system determine how to re-order patients, manage queue lengths, and allocate
consultation time efficiently.
The Technology Acceptance Model (TAM) explains user acceptance of new systems based on
perceived usefulness and ease of use. In the context of this study, TAM supports the need for
a user-friendly system that patients and staff can easily interact with to improve adoption rates.
Digital Transformation Theory highlights how ICT solutions can replace manual processes to
enhance performance, accountability, and efficiency. This theory justifies the transition from
traditional hospital queueing methods to modern, automated, web-based systems.
4
2.2.4 Human Computer Interaction (HCI)
HCI principles guide the user interface and experience design. They ensure the system is
intuitive, simple to navigate, and accessible for individuals with different technology literacy
levels. Good HCI reduces user errors and improves system usability and satisfaction.
Several studies have investigated automated hospital queueing and appointment scheduling,
demonstrating the importance of digital tools in healthcare operations.
A study by Karthikeyan et al. (2021) reported that digital queue management systems reduce
average waiting times by up to 40% and allow hospitals to predict service demand more
accurately. Another study by Mubaraka & Nyambo (2020) in East African hospitals identified
that manual registration processes are the primary cause of congestion and delays in outpatient
departments.
Chong & Rahman (2022) examined online appointment systems and found that automated
booking minimizes scheduling conflicts and improves communication between patients and
hospitals. Similarly, Ahmed (2019) noted that incorporating emergency prioritization
mechanisms in queue systems leads to better resource utilization and patient safety.
Guo et al. (2011) conducted an empirical study at Xijing Hospital in China to evaluate the
impact of a web-based outpatient appointment system. Using hospital operational data, the
study found that patients who booked appointments online experienced significantly shorter
waiting times and higher satisfaction compared to walk-in patients. However, the authors
reported challenges related to appointment no-shows, emphasizing the importance of
cancellation and reminder mechanisms.
However, despite these advancements, most existing systems lack integrated real-time
updating, emergency handling, and notification features highlighting a gap for improvement,
especially in developing healthcare environments like Tanzania.
5
2.4 Review of Existing Systems
Electronic Queue Management Systems use ticket machines and display screens to organize
patient queues within hospital facilities. Patients receive queue numbers upon arrival and wait
to be called.
Strengths:
Limitations:
Some organizations use computerized systems such as desktop applications, web applications,
or mobile applications to perform similar tasks.
Advantages:
Limitations:
Existing artefacts such as databases, spreadsheets, and standalone software tools are also used
to support operations related to the project.
6
Limitations:
• Lack automation
• Require manual intervention
The comparison indicates that existing systems either lack automation, scalability, or integrated
queue logic. This justifies the creation of a hybrid solution with scheduling, dynamic queueing,
and notification support.
i. Limited support for real-time queue updates when patients cancel or miss appointments.
ii. Lack of automated prioritization for emergencies, elderly, and critical patients.
iii. Absence of integrated SMS/Email/mobile notifications for queue alerts and reminders.
iv. Minimal focus on usability and adoption factors in local (Tanzanian) healthcare settings.
v. Limited capability to handle remote booking and in-hospital registration from a single
platform.
The proposed Smart Hospital Queue and Appointment Scheduling System aims to fill these
gaps by providing:
7
2.6 Conceptual Framework
Inputs:
• Patient registration
• Appointment request
• Priority status
• Schedule availability
Processes:
• Queue algorithm
• Prioritization engine
• Scheduling logic
• Admin management
Outputs:
• Queue number
• Appointment confirmation
• Notifications
• Updated dashboard
Outcomes:
The literature reviewed demonstrates that healthcare queue and appointment challenges still
exist due to manual processes, lack of automation, and insufficient prioritization. Theories such
as Queueing Theory, TAM, Digital Transformation, and HCI support the design and
development of an intelligent system tailored to improve efficiency and user adoption. The
proposed solution contributes academically and practically by addressing the research gaps
identified.
8
CHAPTER THREE METHODOLOGY
For a Smart Queue and Appointment Scheduling System, the best and most suitable project
methodology is Agile Methodology. A smart queue and appointment system is user-centric,
interactive, and often changes based on user feedback. Agile fits due to the following reasons:
1. Requirements can change easily: Features like real-time queue updates, appointment
reminders, admin dashboards, and mobile/web access may evolve during development. Agile
allows you to adjust requirements at any stage without restarting the project.
2. Incremental development: You can build the system in small working modules, for example:
o User registration
o Appointment booking
o Queue management
o Notifications (SMS)
3. Continuous testing and feedback: Errors are detected early. Users (or supervisors) can test
each version and suggest improvements.
4. Suitable for software-based systems: Since your project involves database, user interfaces,
and server-side logic with web integration.
9
3.3 Requirements Gathering Methods
The requirements for the Smart Hospital Queue and Appointment Scheduling System were
gathered using interviews. Structured and semi-structured interviews were conducted with
hospital staff, including receptionists and healthcare providers, to obtain detailed information
about the existing appointment scheduling and queue management processes. The interviews
helped to identify key challenges such as long waiting times, lack of real-time queue updates,
difficulties in handling emergency cases, and inefficiencies in manual record keeping. Through
direct interaction with system users, functional and non-functional requirements were collected,
ensuring that the proposed system addresses real operational needs and aligns with hospital
workflows.
1. Setup and environment configuration: Installing required software tools and preparing the
development environment.
2. Backend development: Database design and implementation, core system logic development
(appointment scheduling, queue management, priority handling modules).
3. Frontend development: Designing user interfaces and implementing responsive web pages.
4. Integration phase: Combining backend and frontend modules, testing data flow, verifying
user interactions.
5. Deployment phase: Installing the system on a local server or hosting environment for trial use
and evaluation.
10
Technologies Used:
Success Indicators:
11
3.7.2 Software Requirements
• XAMPP
• VS Code
• Web browsers (Chrome/Firefox)
12
CHAPTER FOUR
This chapter presents the progress made in implementing the specific objectives of
the project. For each objective, the activities undertaken, expected outputs, and
implementation status are summarized in tabular form. A detailed description of the
milestones achieved is provided to demonstrate evidence of work completed during
this reporting period.
Specific Objective One: To gather functional and non-functional requirements from all key
stakeholders
13
Validation
Session)
4.1.2 Detailed Description of Activities and Outputs
14
v. Evidence of Completion:
15
vi. Challenges Encountered
Resolution: Utilized university library access, requested papers through inter-library loan, and
focused on open-access journals and available abstracts.
➢ To design the system architecture and user interfaces based on the gathered
requirements.
i. 4.1.1 Summary of Activities for Specific Objective Two
This section summarizes the activities undertaken to achieve Specific Objective Two. The
activities focused on translating the gathered requirements into a well-structured system
architecture and intuitive user interfaces. These activities ensured that the Smart Hospital
Queue and Appointment Scheduling System would effectively support appointment booking,
queue management, patient tracking, and administrative operations.
16
5 Queue Queue Appendix A
management workflow
module design design 85%
The purpose of this activity was to review and refine the functional and non-functional
requirements gathered from hospital staff and patients. This was necessary to ensure that the
system design accurately addressed user needs and operational challenges.
A finalized set of system requirements was produced to guide system design activities.
v. Evidence of Completion
17
vi. Challenges Encountered
Some requirements from different stakeholders conflicted with one another. Additional
consultations were conducted to harmonize the requirements.
This activity was conducted to develop a high-level structure showing how the system
components interact with each other.
Unified Modeling Language (UML), [Link], and system architecture design principles were
used.
v. Evidence of Completion
18
[Link] Database Design
The purpose was to create a database structure capable of storing patient information,
appointments, queue records, staff details, and system logs.
MySQL Workbench, database normalization techniques, and ERD modeling were used.
v. Evidence of Completion
The activity aimed to provide a visual representation of how users would interact with the
system before full implementation.
19
iii. Steps Followed
Complete wireframes for patient, doctor, and administrator interfaces were produced.
v. Evidence of Completion
Balancing simplicity and functionality in the interface design required several modifications.
The purpose was to design the queue management functionality responsible for patient queue
allocation and monitoring.
20
iv. Output/Milestone Achieved
v. Evidence of Completion
Different hospital departments followed varying queue procedures, requiring a flexible design
approach.
The activity aimed to design the module responsible for appointment booking, rescheduling,
and cancellation.
v. Evidence of Completion
21
4.2 Summary of Chapter
This chapter presented the progress achieved toward Specific Objective Two, which focused
on designing the system architecture and user interfaces for the Smart Hospital Queue and
Appointment Scheduling System. Activities undertaken included requirements review, system
architecture design, database modeling, user interface design, navigation flow development,
and module design. Evidence in the form of figures, tables, diagrams, and appendices was
provided to demonstrate progress. The implementation status of each activity indicates
substantial progress toward achieving the objective, thereby establishing a strong foundation
for the subsequent system development phase.
➢ To develop a fully functional prototype of the Smart Hospital Queue and Appointment
Scheduling System.
This section summarizes the activities undertaken to achieve Specific Objective Three. The
activities focused on transforming the approved system design into a working prototype
capable of supporting hospital queue management and appointment scheduling functions. Each
activity contributed directly to the development and testing of the system prototype.
22
module management
development module
The purpose of this activity was to establish the software and hardware environment required
for system development.
XAMPP, Visual Studio Code, MySQL, HTML, CSS, JavaScript, PHP, and web browsers were
used.
23
iv. Output/Milestone Achieved
v. Evidence of Completion
Figure 4.1: Screenshot of the configured development environment showing XAMPP services
running and project files.
Initial database connection issues were resolved by reconfiguring server settings and
connection parameters.
The activity aimed to implement the database structure developed during the design phase.
24
➢ Defined primary and foreign keys.
➢ Implemented relationships among entities.
➢ Populated sample data for testing.
v. Evidence of Completion
This activity was necessary to provide secure access to the system for patients, doctors, and
administrators.
25
ii. Methodology/Tools Used
v. Evidence of Completion
Session timeout issues were resolved through proper session handling techniques.
26
The purpose was to enable storage, retrieval, and management of patient records.
v. Evidence of Completion
27
i. Purpose of the Activity
The activity aimed to enable patients to book, modify, and cancel appointments.
v. Evidence of Completion
28
[Link] Queue Management Module Development
The purpose was to automate queue allocation and monitoring within hospital departments.
v. Evidence of Completion
Figure 4.6: Screenshot showing queue number generation and queue status monitoring.
29
Figure 4.6 queue number generation and queue status monitoring.
The activity aimed to provide administrators with system monitoring and management
capabilities.
v. Evidence of Completion
30
Figure 4.7 administrator dashboard.
This activity was conducted to combine all developed modules into a single operational system.
An integrated Smart Hospital Queue and Appointment Scheduling System prototype was
produced.
31
v. Evidence of Completion
The purpose was to verify system functionality and identify implementation errors.
v. Evidence of Completion
Some functionality failed under unusual user inputs and was corrected through additional
validation controls.
32
REFERENCES
33
14. Vial, G. (2019). Understanding digital transformation: A review and a research agenda. The
Journal of Strategic Information Systems, 28(2), 118-144.
15. Zhao, P., Yoo, I., Lavoie, J., Lavoie, B. J., & Simoes, E. (2017). Web-based medical
appointment systems: A systematic review. Journal of Medical Internet Research, 19(4),
e134. [Link]
34
X III
APPENDICES
Interview Questions
35
X III
Users table
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) UNIQUE NOT NULL,
password VARCHAR(255) NOT NULL,
email VARCHAR(100) UNIQUE NOT NULL,
role ENUM('patient', 'reception', 'doctor', 'admin') NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP
);
Patients table
CREATE TABLE patients (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT UNIQUE,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
phone VARCHAR(15),
dob DATE,
address TEXT,
emergency_contact VARCHAR(50),
emergency_phone VARCHAR(15),
36
X III
Departments table
CREATE TABLE departments (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
description TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP
);
Doctors table
CREATE TABLE doctors (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT UNIQUE,
department_id INT,
specialty VARCHAR(100),
qualification VARCHAR(200),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE,
FOREIGN KEY (department_id) REFERENCES departments(id) ON DELETE
SET NULL
);
37
X III
Appointments table
CREATE TABLE appointments (
id INT AUTO_INCREMENT PRIMARY KEY,
patient_id INT NOT NULL,
doctor_id INT NOT NULL,
department_id INT NOT NULL,
appointment_date DATE NOT NULL,
appointment_time TIME NOT NULL,
status ENUM('scheduled', 'checked-in', 'completed', 'cancelled', 'no-show')
DEFAULT 'scheduled',
notes TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE
CURRENT_TIMESTAMP,
38
X III
Queue table
CREATE TABLE queue (
id INT AUTO_INCREMENT PRIMARY KEY,
appointment_id INT UNIQUE,
patient_id INT NOT NULL,
doctor_id INT NOT NULL,
department_id INT NOT NULL,
queue_number VARCHAR(10) NOT NULL,
priority TINYINT DEFAULT 3, -- 1=Emergency, 2=High, 3=Normal
status ENUM('waiting', 'called', 'in-consultation', 'completed', 'cancelled')
DEFAULT 'waiting',
entered_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
called_at TIMESTAMP NULL,
completed_at TIMESTAMP NULL,
estimated_wait INT NULL, -- minutes
FOREIGN KEY (appointment_id) REFERENCES appointments(id) ON
DELETE CASCADE,
FOREIGN KEY (patient_id) REFERENCES patients(id) ON DELETE
CASCADE,
FOREIGN KEY (doctor_id) REFERENCES doctors(id) ON DELETE
CASCADE,
39
X III
Notifications table
CREATE TABLE notifications (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT NOT NULL,
type ENUM('appointment_reminder', 'queue_update', 'cancellation', 'emergency')
NOT NULL,
channel ENUM('sms', 'email', 'in_app') DEFAULT 'in_app',
message TEXT NOT NULL,
sent_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
status ENUM('pending', 'sent', 'failed') DEFAULT 'pending',
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
Reports table
CREATE TABLE reports (
id INT AUTO_INCREMENT PRIMARY KEY,
generated_by INT NOT NULL,
report_type VARCHAR(50) NOT NULL,
date_range_start DATE,
date_range_end DATE,
file_path VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
40
X III
41