Professional Documents
Culture Documents
Digitizing Patient Record For Mary Angels Diagnostic Clinic Document
Digitizing Patient Record For Mary Angels Diagnostic Clinic Document
Mandaluyong City
by
April 2023
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
APPROVAL SHEET
This Capstone Project 2 entitled, “Digitizing Patient’s Record for Mary Angels
Diagnostic Clinic”, prepared and submitted by Adornado Raymond Anthony L., Barbon Daniel
Louis, Quintans Alfred Jhunnell A., Salamante Christopher Phillip in partial fulfillment of the
course requirements for the degree of BACHELOR OF SCIENCE IN INFORMATION
TECHNOLOGY, has been examined and recommended for acceptance and approval for Oral
Examination.
Adviser
Approved by the Committee of Oral Examination in April 2023 with a grade of ____.
Capstone Professor
Accepted as partial fulfillment of the course requirements for the degree in Bachelor of
Science in Information Technology.
Date: ________
ii | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
DEDICATION
This capstone project is dedicated to my family, who are always there to help me,
and who understand that this capstone meant a lot to me. To myself that gave me motivation
when I feel doubt about my abilities and to my group mates and advisers who helped us
This capstone is the fruit of countless and arduous sacrifices. Through the
researchers’ effort, I dedicated this work proudly and heartily to my parents and to all the
need. To my friends who helped me even if they would not get benefits from this project.
To myself, this project is the fruit of all those sleepless nights and stress that I’ve been
With sincere appreciation and respect, we dedicate this work to our Almighty God,
who has led and never left us in the completion of this capstone project. I also dedicate this
to my parents, loved ones, and group members who gave us the strength to finish this
iii | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
ACKNOWLEDGMENT
We thank God, the Almighty, for His numerous favors that enabled us to effectively
To Engr. Greta M. Rosario, our subject adviser provided us with all the assistance
we needed and continuously reminded us of how professional ethics can help us become
better people while also offering suggestions to make this project simpler to complete.
For each group member who worked together to make this study a success, we
would not be able to complete the project without the brilliant minds of each one of us.
To Prof. Kenneth Martinez, who served as our capstone adviser and gave us all the
Lastly, to our Panelists, Dr. Marthea Andrea Daluyon, Engr. Greta M. Rosario, Dr.
Jaevier Villanueva, Engr. Ramil Madriaga and Prof. Kenneth Martinez, we would like to
thank them for their comments and suggestions that guided us to make this project on the
iv | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
ABSTRACT
Reporting health data using a traditional way also takes more time, resulting in
significant delays and inaccurate information. This may prevent patients from fully
strategies to address primary healthcare problems and reduce conflict in healthcare access.
To address such problems, the researchers will create a desktop application digitally storing
patients' information in this study. It serves as the primary storage for information about a
replace paper medical charts and should adhere to the standard of the clinic. In this
application, doctors and clinic staff can manually add, edit and search patients' records
Keywords: Patient Record, Clinic, Database, SMS Notifier, Digitized, Java, SMS API
v|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
TABLE OF CONTENTS
TITLE PAGE ..................................................................................................................... i
APPROVAL SHEET ........................................................................................................ ii
DEDICATION.................................................................................................................. iii
ACKNOWLEDGMENT ................................................................................................. iv
ABSTRACT ....................................................................................................................... v
LIST OF FIGURES ......................................................................................................... ix
LIST OF TABLES ............................................................................................................ x
CHAPTER I ...................................................................................................................... 1
BACKGROUND OF THE STUDY ............................................................................................ 1
PROJECT CONTEXT ................................................................................................................. 2
PURPOSE AND DESCRIPTION OF THE PROJECT ............................................................... 2
OBJECTIVES OF THE PROJECT ............................................................................................. 4
SIGNIFICANCE OF THE STUDY............................................................................................. 6
SCOPE AND LIMITATION ....................................................................................................... 7
CONCEPTUAL THEORETICAL FRAMEWORK .................................................................... 8
OPERATIONAL DEFINITION OF TERMS............................................................................ 10
CHAPTER II ................................................................................................................... 11
REVIEW OF RELATED LITERATURE AND STUDIES ...................................................... 11
CHAPTER III ................................................................................................................. 20
THE TECHNICALITY OF THE PROJECT ............................................................................. 20
DETAILS OF THE TECHNOLOGY TO BE USED ................................................................ 20
HOW THE PROJECT WILL WORK ....................................................................................... 21
CHAPTER IV.................................................................................................................. 24
REQUIREMENT SPECIFICATIONS ...................................................................................... 24
FISHBONE DIAGRAM ........................................................................................................ 24
FUNCTIONAL DECOMPOSITION DIAGRAM ................................................................ 25
TECHNICAL FEASIBILITY .................................................................................................... 26
vi | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
vii | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
viii | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
LIST OF FIGURES
Figure 1…………………………………………………………………………………………… 8
Figure 2…………………………………………………………………………………………… 9
Figure 3………………………………………………………………………………………... 22
Figure 4………………………………………………………………………………………….. 24
Figure 5………………………………………………………………………………………….. 26
Figure 6………………………………………………………………………………………….. 28
Figure 7………………………………………………………………………………………….. 29
Figure 8………………………………………………………………………………………….. 31
Figure 9………………………………………………………………………………………….. 32
Figure 10………………………………………………………………………………………… 33
Figure 11………………………………………………………………………………………… 34
Figure 12………………………………………………………………………………………… 35
Figure 13………………………………………………………………………………………… 36
Figure 14………………………………………………………………………………………… 37
Figure 15………………………………………………………………………………………… 38
Figure 16………………………………………………………………………………………… 39
Figure 17………………………………………………………………………………………… 40
Figure 18………………………………………………………………………………………… 41
Figure 19………………………………………………………………………………………… 43
Figure 20………………………………………………………………………………………… 44
Figure 21………………………………………………………………………………………… 45
Figure 22………………………………………………………………………………………… 46
Figure 23………………………………………………………………………………………… 47
Figure 24………………………………………………………………………………………… 48
Figure 25………………………………………………………………………………………… 49
Figure 26………………………………………………………………………………………… 50
Figure 27………………………………………………………………………………………… 51
Figure 28………………………………………………………………………………………… 52
Figure 29………………………………………………………………………………………… 53
Figure 30………………………………………………………………………………………… 54
Figure 31………………………………………………………………………………………… 55
Figure 32………………………………………………………………………………………… 56
Figure 33………………………………………………………………………………………… 57
Figure 34………………………………………………………………………………………… 58
Figure 35………………………………………………………………………………………… 59
Figure 36………………………………………………………………………………………… 71
ix | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
LIST OF TABLES
Table 1……………………………………………………………………………………………26
Table 2……………………………………………………………………………………………27
Table 3……………………………………………………………………………………………30
Table 4……………………………………………………………………………………………60
Table 5……………………………………………………………………………………………61
Table 6……………………………………………………………………………………………61
Table 7……………………………………………………………………………………………62
Table 8……………………………………………………………………………………………62
Table 9……………………………………………………………………………………………63
Table 10…………………………………………………………………………………………..63
Table 11………………………………………………………………………………………….. 64
Table 12………………………………………………………………………………………….. 64
Table 13…………………………………………………………………………………………..66
Table 14………………………………………………………………………………………….. 67
Table 15………………………………………………………………………………………….. 67
Table 16…………………………………………………………………………………………..70
Table 17………………………………………………………………………………………….. 70
Table 18………………………………………………………………………………………….. 72
Table 19…………………………………………………………………………………………..74
Table 20………………………………………………………………………………………….. 75
Table 21………………………………………………………………………………………….. 76
Table 22…………………………………………………………………………………………..76
Table 23………………………………………………………………………………………….. 76
Table 24………………………………………………………………………………………….. 77
Table 25………………………………………………………………………………………..…77
Table 26………………………………………………………………………………………….. 77
Table 27………………………………………………………………………………………….. 78
Table 28…………………………………………………………………………………………. 78
Table 29………………………………………………………………………………………… 79
Table 30………………………………………………………………………………………….. 79
Table 31…………………………………………………………………………………………..81
Table 32………………………………………………………………………………………….. 82
Table 33………………………………………………………………………………………….. 83
Table 34…………………………………………………………………………………………..84
Table 35 …………………………………………………………………………………………. 87
Table 36………………………………………………………………………………………….. 88
x|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 37…………………………………………………………………………………………..89
xi | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CHAPTER I
INTRODUCTION
This chapter includes the background of the study, which summarizes the system
on which the researchers will concentrate, as well as the importance, scope, and limitations
of the study.
weight, and test results, including prescriptions and allergies. The utilization of technology
has been widespread in the 21st century, making life easier and faster compared to
traditional methods. Digital medical records are necessary in this digital age to safeguard
information into an organized and relevant report has traditionally been challenging.
Manual paper-based record keeping can result in inaccuracies, damage, and manipulation
due to poor handwriting and unclear acronyms. Using traditional methods to report health
data takes more time, causing significant delays and inaccurate information. Creating
solutions to address primary healthcare problems and reducing healthcare access conflict
differs due to this issue. The researchers will develop a desktop application to store patients'
information digitally. It will act as the primary storage for a patient's medical care
information. The system includes demographic and medical information, and it aims to
1|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
doctors and clinic staff can manually add, edit and search patients' records from a single
database.
PROJECT CONTEXT
The Mary Angels Diagnostic Clinic used the traditional way of admitting patients
for the longest time. Using the manual method of storing and managing patient records
resulted in the said clinic, a lot of damage in terms of data management. Implementing
digitized patients’ record will resolve the problem. A desktop application that stores
patients' medical records containing different forms derived from Mary Angels Diagnostic
Clinic admitting section form. The application will also provide a user-friendly graphical
The system allows the doctors and clinic staff to manually add, edit, delete, and
search patients' records from a single database. It will also allow the doctor and staff to
keep track of their upcoming appointments with patients. The system will have a secure
login system where doctors and staff can create an account to log in to the system to provide
additional security.
As medical research advances, the population's life expectancy rises. Although this
development leads to positive outcomes, such as the elimination of some diseases, and the
discovery of new treatments for others, other challenges arise more frequently. However,
2|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
emerge that can assist physicians in addressing these issues. Healthcare providers currently
generate and store medical and non-medical data in large quantities. These records may
The Field Health Service Information System (FHSIS) is the Philippine Department
of Health's official recording and reporting system. The FHSIS, which was conceived in
1987 and implemented nationally in 1989, is now in its fourth revision. The FHSIS collects
delivery using key indicators. However, not all programs, such as those for rabies control
midwives and nurses at primary care level health centers record and report on health
services provided at the front lines (RHU or city local health centers). Data must be
aggregated at several levels of the health system, including the health facility, the City or
Provincial Health Office (CHO/PHO), the DOH's regional offices, and the DOH's National
medical records in a clinic. It has been repeatedly stated that medical practice can be
improved by reducing medical errors that occur during treatment. Most errors occur as a
histories with current treatment decisions. Furthermore, while paper-based records are
easier to create, they are challenging to search, as demonstrated in one study where
3|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
physicians were unable to find relevant information about the patient in traditional paper-
The developers are working to create a computer application that stores patient
records for small clinics that still use traditional paper-based record systems. The
application aims to reduce the time spent locating and retrieving patients' session histories.
1. Allow the doctor and clinic staff to create an account and log in.
a. Name
b. Age
c. Birthday
d. Address
e. Contact No.
g. Blood Pressure
h. Pulse Rate
4|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
i. Temperature
j. Allergies
k. Prescription
l. Diagnosis
a. Name
b. Age
c. Birthday
d. Address
e. Contact No.
g. Blood Pressure
h. Pulse Rate
i. Temperature
j. Allergies
k. Prescription
5|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
l. Diagnosis
The study aims to convert the traditional way of patient records into digital files
Doctors and Nurses. With the help of the system, the accessibility of a patient's history
will help the doctors and nurses to come up with a prescription that is suited to the patient
Clinic Staff. The system helps the clinic staff track and keep the patient’s medical record.
Patient. The system will accelerate the process of finding the patient's history, allowing
the consultation to proceed without the need to sort through piles of paper to locate the
patient's file.
Future Researchers. The future researchers will benefit in this study as they can use it as
6|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
SCOPE
The developers aim to develop a system that will ease the keeping and tracking of
patient data in small clinics that still use a paper-based method. The system consists of
software connected to a database that stores the patient's data and medical history. The
1. Software
It is a portable software application that can manage and track medical records for
patients.
2. Database
This serves as a way to store patients' information, such as their details and medical
history.
LIMITATION
patients.
2. Only the doctors and clinic staff can access the software.
7|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 1
In figure 1, the developers' perception of how the system will operate for the user
to convert the patient records into digital files. The admin, doctor, and staffs at the clinic
are the system's administrators, and they can only log in to the system.
The admin will be given an account to access the system and is required to provide
their contact number for the OTP. The clinic admin is the only one who can add, select
roles, update the user’s details, and archive its information from the user table.
8|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
As for the doctors and staff, after they have been given an account by the admin,
they can log on to the system and will receive an OTP for security purposes. They will be
Figure 2
Figure 2 shows the input, process, and output. The input is the login credentials of
the admin, doctor, and clinic staff, OTP, and the patient's information through the system.
The process is to add, edit, and archive. The output is exported or printed patient record
9|Page
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
For a better understanding of the study, the following terms are defined:
Admin - the person that provides clerical support to our managers and employees and
Short Messaging Service (SMS) - a messaging system that is most commonly used on
cell phones.
SMS API - is a set of protocols and tools that allows software developers to integrate SMS
10 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CHAPTER II
This chapter discusses the literature developers can use to help them create the
suggested system. This section provides traits and capabilities from recent studies that are
With the advancement of technology, many industries have integrated its use as a
productivity tool. One of these industries is the medical industry. This integration now
leads to many health information systems (HISs) and electronic health records (EHR).
FOREIGN LITERATURE
patient's medical record that is stored by a clinic or hospital. The data may include the
of medication, vaccination records, as well as the outcomes of lab tests and radiology
reports, may all be included in the data. The EHR can also directly or indirectly support
other care-related activities through various interfaces, such as quality control, outcomes
11 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Even though electronic data is available, 75% of businesses will still rely on manual
quality and safety systems on paper may appear to be a cost-effective option, it is inefficient
and error-prone. Data collection mistakes can result in lost or deleted records, which can
with 21 CFR Part 11, the FDA requires electronic recordkeeping for the pharmaceutical,
medical device, and food and beverage industries to guarantee customer safety and
traceability, recalls, corrective and preventive action (CAPA), and food safety audit
standards in order to comply with regulations and guarantee the safety of their customers.
In 2018, Pierce, MD noted that the transition from paper-based records to electronic
ones can be challenging for managers and employees alike. It is suggested that a gradual
developers can simplify the initially daunting process of converting paper documents into
electronic forms. It is possible to effectively implement the ideal solution and increase the
12 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
documenting and organizing information and plays a crucial role in modern healthcare,
particularly mental health care. When providing care to service users, medical workers rely
on health records for a variety of information practices like searching for, utilizing,
EHRs are a significant tool for improving healthcare quality. EHRs, in any case,
additionally present new practices and work processes, for example, organized information
passage frames that can disrupt the assortment of story information. EHRs have many
advantages, but their global adoption has been more sluggish than in other health settings
and sustainability can be negatively impacted if computerized accounting systems are not
implemented correctly. This is especially concerning given that the majority of workers in
the United States work for small businesses, but only 30% of them last for the long term,
and 50% fail within five years. A beauty salon successfully implemented a computerized
accounting system to address this issue and enhance its financial performance.
The article portrays a subjective different case research concentrates on the pre-
13 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
frameworks and grow their tasks past five years. Through semi-structured interviews and
corporate records, the study gathered information from six beauty salon owners and
analyzed it thematically. There were four major themes found in the study: expansion of
the business, operation of a good accounting system, financial management with a good
accounting system, and computer education and expertise. According to the study, clinic
development and economic viability in local communities resulting from the small clinic
owners' potential to foster growth, enhance financial stability, and act as business mentors
Dornan et al. (2019) state that in recent years, the use of electronic health records
(EHRs) in medical practice has significantly increased in recent years. EHR systems give
us a great chance to improve health surveillance and service delivery, which could lead to
better public health management and promotion. The majority of doctors, according to the
findings, use the information to look at the patient's overall condition, make clinical
Errors cannot be avoided in the current manual healthcare delivery method. In the
dental consideration area, strategy development is critically expected to resolve this issue,
as stressed by Salazar (2019). Exact well-being data given by patients is vital for dental
14 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
clinicians, yet research shows that such data is misreported in around 15% to 30% of dental
records. To fill in these gaps, we need a healthcare system that works together. Policies
that make it easier to integrate dental and medical records can improve the quality of care
The utilization of mobile personal health record (mPHR) systems has become
outcomes. According to Part et al (2023), patient volume, a younger patient age group, and
the proportion of inpatients and outpatients with cancer and hypertension were found to be
significantly associated with the adoption of mPHR systems by hospitals. Earlier studies
have also suggested that individuals with chronic diseases such as diabetes and
hypertension are more likely to adopt mPHR. However, some study findings were slightly
inconsistent and require further investigation, such as inpatients with hypertension and
organizations and government agencies are developing strategies. While the study's results
may not apply widely, they provide valuable information and recommendations for
15 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
LOCAL LITERATURE
according to Maguire (2019), who distinguishes between two types of it. The first type,
which requires using paper and a pen, is unreliable because it runs the risk of being
damaged and takes a long time to find information. The second type is computer-generated,
and it has become more common in the 21st century because it makes data management
easier and more efficient. This shift towards innovation is a reaction to the quick
development and arising issues confronting the MIS industry. Because of this, MIS has
effective method for providing each Filipino with high-quality medical care. As a result,
technology plays a crucial role in giving the medical industry a chance to innovate and
digitizes patients' medical records (R. Ebardo & N. Celis, 2019). However, some healthcare
16 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
As indicated by the paper composed By Ebardo and Celis, there are three (3) classes
or settings that partition these elements, Technology, Organization, and Environment, the
team likewise gave a potential method for resolving the issues relying upon their
classifications. Under the Technology context, the barriers that one medical care facility
may face, weak infrastructure, and poor interface design. By strengthening the vendor's
The organizational barriers are user resistance and unskilled IT staff, given that the
management influences these internal barriers, relevant interventions could include greater
compensation for the IT employees as well as enhanced resource allocation for training
medical professionals on the advantages of EMR technology. Last but not least, the
environmental barriers are privacy regulation compliance, and medical school orientation,
governmental entities should take into account a clear public policy and focused guidelines
specifically for EMRs to support the automation of EMR records. On the other hand, the
17 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Development Academy of the Philippines (2020), is a free, locally developed EMR system
in the Philippines. Reduced patient wait times, secure access to patient records, and
efficient data entry and storage are among its features. It makes it easier for health centers
and rural health units (RHUs) to schedule appointments, allocate resources, and provide
better services.
CHITS makes it possible for local health offices to create the necessary health
reports that are connected into the Department of Health's (DOH) official recording and
and outbreak detection, the system provides up-to-date information from RHU on the
Corporation (PHIC) and the Department of Health (DOH), it makes it easier for DOH to
better monitor the administrative performance of local offices and health programs.
According to instructions, it has been electronically submitting claims to PHIC since 2016.
Manila (UP Manila) on computer-based information systems. At that point, it was just
being executed in two well-being places in Pasay City. By the end of 2010, fifty health
facilities across the nation, ranging from Batanes in the north to the Zamboanga Peninsula
in the south, had begun using CHITS for their government health facilities. Real-Time
18 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
disadvantaged and isolated areas (GIDA), was added to CHITS in 2011. CHITS adopted
the more well-known Open Medical Records System (OpenMRS) as its new base system
in 2012. It also started using an LGU dashboard and a mobile reporting tool to better
collect, store, and analyze community health data. There were already 208 CHITS-using
local health facilities at the time. rCHITS was able to integrate a mobile midwife platform
in 2014 with the assistance of a non-governmental organization that extended funding for
Philippine government eHealth projects. This platform was able to capture aggregate
patient data at the barangay level and send patient alerts via SMS through Synchronized
device for diagnosing common medical issues that is one of the UPM-NTHC's products.
19 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CHAPTER III
TECHNICAL BACKGROUND
The researchers gathered all the relevant technologies that could possibly be used
in the proposed project, as the project is still ongoing. The researchers are still searching
for tools and software that can help them improve the development of the system.
The proposed project is a desktop application system with the ability to assist clinics
in storing, checking, and editing patient records without the need for the traditional method.
Because the project will be an IT-related study, some phrases or terminologies will be
Swing XAMPP, PHP MyAdmin, and Figma are some of the terms used. The researchers
For the desktop application to be created, the proponents used the software and
● Eclipse - is a free development platform based on Java that is well-known for its
plugins, which enable programmers to develop and test code written in other
programming languages.
20 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
variety of platforms.
● XAMPP - a free cross-platform to create a local web server host and interpret
● Figma – a web-based application that lets users collaborate to create a design for
protocols and tools that allows software developers to integrate SMS messaging
The Mary Angels Diagnostic Clinic is hoping to benefit from the computer-based
patient record system by having real-time access to patient records and appointment
schedules. This system will make it much simpler for the clinic doctor and staff to search
for and retrieve patient records as well as to add change and archive information.
21 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 3
The system has 3 users, the admin doctor, and the clinic staff. The admin
will be given an account to access the system, and is required to provide their contact
number for the OTP. The admin will be given an account to access the system and is
required to provide their contact number for the OTP. The clinic admin is the only one
who can add, select roles, update the user’s details, and archive its information from the
user table.
22 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
As for the doctors and staff, after they have been given an account by the admin, they can
log on to the system and will receive an OTP for security purposes. They will be given
After logging in, the doctor or the staff can add, edit, and view patients' information;
the doctor or staff can also export a soft copy or print the records if the patient requests a
hard copy. Another feature was adding, editing, viewing, or removing sessions for follow-
up check-ups if needed, the day before the set appointment, the patient will receive an
23 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CHAPTER IV
METHODOLOGY
REQUIREMENT SPECIFICATIONS
documents from the clinic and to ease the processing management of their health
proposed system must meet all the requirements and must be flexible enough for future
FISHBONE DIAGRAM
Figure 4
Fishbone Diagram
24 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
In this figure, the researchers investigate how fishbone diagrams can be used to
the review and complex findings in a straightforward, concise, and understandable manner.
Finding the optimal way to convey the risks and advantages of digitizing the traditional
The functional decomposition diagram below displays the process and performance
of the system. It helps the developers to properly create a system by identifying each
decomposition diagram. Developers can easily assess, understand, and handle issues.
25 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 5
TECHNICAL FEASIBILITY
Table 1
26 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 2
● Eclipse - is a free development platform based on Java that is well-known for its
plugins, which enable programmers to develop and test code written in other
programming languages.
variety of platforms.
● XAMPP - a free cross-platform to create a local web server host and interpret
● Figma – a web-based application that lets users collaborate to create a design for
27 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
protocols and tools that allows software developers to integrate SMS messaging
SCHEDULE FEASIBILITY
A project timeline is given to illustrate and measure the time required to conduct
Project Timeline
Figure 6
28 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 7
ECONOMIC FEASIBILITY
The developers should consider the financial aspects of the project. Although it may
amount of investment and offer fewer benefits. The economic feasibility of the proposed
system is analyzed to determine the possible expenses associated with the Digitized Patient
29 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 3
This table shows the breakdown of expenses for the system accomplishment
As for the breakdown of the cost, Laptop takes the biggest part which comes to
₱26,000 because it is being used to create the system. Followed by SQL Database with a
cost of ₱8,000. Next is the Internet with a cost of ₱2,000 for a fast Internet connection and
browsing. And SMS API takes the lowest part with a cost of ₱200. As we categorize the
cost or the expenses of the project, we can able to accomplish the system from its assumed
30 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
REQUIREMENTS MODELING
Figure 8
Requirements Modeling
Figure 8 shows the input, process, and output. The input is the login credentials of
the admin, doctor, and clinic staff, OTP and the patient's information through the system.
The process is to add, edit, and archive. The output is exported or printed patient record
These are used to digitize the traditional patient record and transform it into a
simple, clear presentation of the data process during the system development.
The Digitizing Patients Record was explained by the proponents using an array of
graphic techniques that they had examined. The context diagram, the data flow diagram
31 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
(DFD), and the system and program flow diagram are the diagrams that are used for data
Context Diagram
Figure 9
Context Diagram
Figure 9 Shows the entire system's process and interaction to the user is depicted
in the context diagram, which may be seen in the image up above. The entire system's
workflow is displayed, starting with administration and moving through the database and
system software.
32 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
The Level 1 Data Flow Diagram is shown in the diagrams below. Context Diagram
records and the interactions between the various entities are depicted in this diagram.
Figure 10
The data flow diagram above provides a clear overview of the entire system
program and how it interacts with the patient, doctor, clinic staff, and database. The
patient's information and appointment will be stored by the computer and loaded into the
database so that it can be read. The doctor and clinic staff will update the database and add
new information, while also adding records and reports about the patient's data.
33 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
System flowcharts show how data is transferred throughout a system and how decisions
are made to direct events. Symbols are used to show this. To show how data is used and
Figure 11
34 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 12
35 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 13
OBJECT MODELING
36 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 14
The connection between the clinic staff and the patient and the system application
is shown in the use case diagram. The doctor/nurse will store the patient’s information in
the database. The administrative tasks include adding and updating the patient's
information in the database, as indicated above. The user or patient will have all the
information needed for the admin to record it. the patient will need their information and
37 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CLASS DIAGRAM
Figure 15
Class Diagram
The Class Diagram shows how our system came to be; it is made up of 5 classes
with separate divisions. This would be crucial in demonstrating how the modeling process
flows. As presented above the illustration, the researchers let the clinic staffs process the
registration of the patient’s information and store it in the DB Server, which also allows
38 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
them to access the data, enabling the server to produce the digitized information for the
patients.
SEQUENCE DIAGRAM
Figure 16
Sequence Diagram
Figure 16 is the sequence diagram of the doctor's view for Digitizing the Patient
Record System. A sequence diagram shows the object interactions arranged in a time
sequence.
39 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 17
Clinic Staff
40 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 18
Admin
RISK ASSESSMENT/ANALYSIS
One potential risk is the possibility of data breaches and security breaches. As the
system stores sensitive patient information electronically, there is a risk of this information
41 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
theft, financial fraud, or other forms of harm to patients. Another risk associated with the
system is the potential for errors or inaccuracies in the data. While electronic health records
are designed to reduce errors, they are not foolproof. There is a risk that errors could occur
This section defines the design process of the computer-based patient record
system. The proponents discussed the inputs, processes, and outputs that were included in
the process for creating a solution to the current system at Mary Angels Diagnostic Clinic.
The developer developed a simple design to allow the user to understand and
operate the system. The clinic's traditional method of handling patient records is addressed
by the design of Digitizing Patients Records, which is primarily meant for patients who
would schedule an appointment there. The design concept should benefit the clinic and the
42 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Forms
The following figures are screenshots of all the forms used in the system. The
figures are labeled for clarity for readers and researchers. A brief explanation will be
Figure 19
Login Form
Figure 19 is the login form of Mary Angels Diagnostic Clinic. Users will choose if
they will login as admin, doctor or staff. Users must fill out the login form by entering their
43 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
username and password. In addition, a ‘Login’ button for users to click will check their
Figure 20
Figure 20 is the add doctor form of Mary Angels Diagnostic Clinic. After logging
on to the admin’s account, the admin can add a doctor. This will require the doctor’s name,
contact number, username, and password. It will also require and OTP to verify the doctor’s
number.
44 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 21
Figure 21 is the form for adding staff. Admin users can add staff, and it will require
the staff’s name, contact number, username, and password. It will also require an OTP to
45 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 22
Figure 22 is the form for editing the doctor’s account. Whenever the doctor forgets
his/her account they can request a password/email reset to the admin. Admin can edit
doctor’s information.
46 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 23
Figure 23 is the form for editing the clinic staff’s account. Whenever the staff
forgets his/her account they can request a password/email reset to the admin. Admin can
47 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 24
Figure 24 is the add patients’ session form. In this form, the clinic staff can schedule
48 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 25
Figure 25 is the edit patients’ session form. In this form, the clinic staff can edit the
49 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 26
Figure 26 is the add patient form. In this form, the clinic staff can add patients’
50 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 27
Figure 27 is the edit patients’ information form. In this form, the clinic staff can
51 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 28
Check-up Form
52 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 29
Figure 28 and Figure 29 is the check-up form. In this form, the clinic doctor can
53 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Reports
The digitized patient record system generates reports for a list of appointments and
Figure 30
Doctor’s List
Figure 30 is the Doctor’s List of Mary Angels Diagnostic Clinic. The clinic admin
can view the list of doctors' accounts registered in the clinic. The admin can also edit or
54 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 31
Staff List
Figure 31 is the Staff List of Mary Angels Diagnostic Clinic. The clinic admin can
view the list of staff accounts registered in the clinic. The admin can also edit or archive a
certain staff.
55 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 32
Session List
Figure 32 is the Session List of Mary Angels Diagnostic Clinic. The clinic staff can
view the list of sessions that have been scheduled at the clinic. The staff can also edit or
56 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 33
Patient List
Figure 33 is the Patient List of Mary Angels Diagnostic Clinic. The clinic staff can
view the list of patients that have been admitted to the clinic. The staff can also edit a
57 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 34
Medical Records
Figure 34 shows the Medical Records of Mary Angels Diagnostic Clinic. The clinic
doctor can view the list of medical record that has been stored in the clinic’s database. The
doctor can also issue a medical certificate and print a medical record if the patient needs it.
58 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Figure 35
Prescription
Figure 35 shows the list of the given prescriptions of Mary Angels Diagnostic
Clinic. The clinic doctor can view the list of prescriptions that have been given to the
patients. The doctor can also print the prescription to avoid errors because of bad
handwriting.
59 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
DATA DESIGN
The process of creating a detailed data model for a database. The physical storage
properties and every logical and physical design option required to create a design in the
data set that can then be used to create a database are all contained in this data model.
Data Dictionary
A data dictionary is a set of names, definitions, and attributes about the data
elements used in the Digitized Patient Record System. Mary Angels Diagnostic Clinic
database has three (12) tables, namely, admin, archdoc, archstaff, diagnosis, doctor, lab
Table 4
60 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 5
Table 6
61 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 7
Table 8
62 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 9
Table 10
63 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 11
Table 12
64 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
65 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 13
66 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 14
Table 15
67 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
SECURITY
The "Data Privacy Act of 2012" in the Philippines, also known as Republic Act No.
10173, will be compiled with and implemented by the Digitizing Patient Record System.
In terms of security, due to the constant changes in the world of technology that cause
variability in exposure and uncertain impact on the system and the user’s safety, we have
implemented the OTP security that acts as the wall in the user login, edit users, and add
users.
DEVELOPMENT
Implementation.
SOFTWARE SPECIFICATION
based Digitizing Patient Record System employing Java It outlines the system's operation
and details the user interaction that the program must enable. The list of specific software
utilized in the system, together with its specifications, may be seen below:
● Eclipse - is a free development platform based on Java that is well-known for its
plugins, which enable programmers to develop and test code written in other
programming languages.
68 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
variety of platforms.
● XAMPP - a free cross-platform to create a local web server host and interpret
● Figma – a web-based application that lets users collaborate to create a design for
protocols and tools that allows software developers to integrate SMS messaging
HARDWARE SPECIFICATION
69 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 16
Table 17
PROGRAM SPECIFICATION
70 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Deployment Diagram
Figure 36
Deployment Diagram
This figure shows the system application of Digitizing Patient Record System
deployment process. It has a workstation pc on the doctor and clinic staff Server where it
can input, manage, manage, and view patient records within the desktop application that is
stored in the MySQL database (data). The database server serves as the bridge between the
desktop application and Desktop Server for it has to link. The execution environment is the
minimum requirement of the Windows version, Windows 7, and the desktop application
deploy the resources for executing the Java package. Overall, this is the cycle that happens
to the user of the desktop application for the clinic and is able to use it afterward.
71 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Test Plan
A test plan was created by the developers for the proposed system's testing. The
part of the system that will be tested, the purpose of that page, the expected result, and the
actual test result are all included in the proposed system's test plan. The system's
TESTING
Unit Testing
Table 18
● Searching ● successfully
72 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
73 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Integration Testing
Table 19
74 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Module 1
Table 20
75 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 21
Table 22
Test Scenario
Table 23
76 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Module 2
Table 24
Table 25
Table 26
77 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Test Scenario
Table 27
Module 3
Table 28
78 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 29
Table 30
79 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Raymond Adornado
● age =21
● sex = m
● weight = 50kg
● height = 150cm
● civilstatus = single
● birthdate = 2000-07-07
● contactnum =
09123456789
● address = Mandaluyong
● bloodpressure =
140/90mmHg
● temperature = 37°C
● pulserate = 60bpm
● allergies = none
● midhist = none
● diagnosis = Fever
● prescription =
paracetamol
80 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Test Scenario
Table 31
81 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
table
Compatibility Testing
The table below shows the results of the system's compatibility testing with various
Table 32
82 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Table 33
83 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
System Testing
Table 34
84 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
PROGRAM PROPERTIES
● Eclipse - is a free development platform based on Java that is well-known for its
plugins, which enable programmers to develop and test code written in other
programming languages.
variety of platforms.
85 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
● XAMPP - a free cross-platform to create a local web server host and interpret
● Figma – a web-based application that lets users collaborate to create a design for
protocols and tools that allows software developers to integrate SMS messaging
86 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
FUNCTION PROPERTIES
The table below shows the function of each property of the proposed system:
Table 35
87 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
IMPLEMENTATION PLAN
Implementation Checklist
Table 36
88 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Implementation Contingency
Table 37
89 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Infrastructure/Deployment
Diagnostic Clinic will be users of the system which can be installed in the PC clinic. Users
are not required to have internet because the system is made is offline and it Desktop
application. The system has some feature like they can input and managing the data also it
has an appointment feature where the user can set follow-up appointment with the patient
The main function of the system is to transfer a patient's medical documents into
digital documents. They are digital patient records that authorized users can access in real-
time.
90 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CHAPTER V
CONCLUSION
traditional patient records into digital form at Mary Angels Diagnostic Clinic. This
application system manages patient records and uses MySQL to store information in a
database. It uses Java and Java Swing to provide a user-friendly graphical interface and
display data to its user. The system also has a follow-up appointment system that doctors
and clinic staff can access through their PC clinic, and it has an SMS API notifier that
The proponents gather all the information needed by the clinic to build the proposed
system and conduct an online interview with Mrs. Corazon Carancite, the clinic owner,
regarding the clinic's system, Mary Angels Diagnostic Clinic. They found out that the clinic
still uses paper records for their patient files. The proponents came up with a solution and
developed this study. They analyzed and gathered data to identify the problems to be solved
and the clinic's needs. The proponents created the system design that has features and
functions based on the information needed by Mrs. Carnacite. The proponents decided to
use MySQL, Java, and other tools to create and maintain the clinic's information
management system.
91 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
After the researchers came up with the design and features of the system, they began
to develop a system in which the researchers programmed the system's functionalities and
created a database to store all the records of the diagnostic clinic patients. They run the
system and test it to see if it meets the requirements of the clinic. Proponents conducted
testing methods to ensure the system's functionality and quality. They used software testing
to test the accuracy and effectiveness of the Digitizing Patient Record System in storing
records. They included the doctor and the clinic staff in the testing phase so they could see
if it fits the clinic's needs. The researchers guided the doctor and clinic staff on how to use
The following are the functionalities of Digitizing the Patient Record System:
● Login - The system only allows authorized personnel to access the system. The
users need to specify their username, password, and assigned role. After clicking
the button, the system will check their login credentials for security purposes.
● Appointments - The assistant of the clinic can add, remove and update the follow-
up appointment of patients.
● Patients - Doctors can access the patients’ table, wherein they can add, edit, and
print the patient’s information. They must provide all the necessary details like the
● Admin - The admin has the right to add, edit, and archive users.
92 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
● Doctor - The doctor has access to the medical records of the patients. The doctor
can add diagnosis, prescription, laboratory reports and can also print the patient’s
medical record.
● Staff - The staff has the access to add and edit patient information. The staff can
RECOMMENDATION
● It is advised to the clinic to expand the system online if the clinic is expanding or
branching to other places to easily transfer the data to another clinic branch.
● Clinic is advised to make a website of their clinic to know more about clinic
information.
the patient.
93 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
REFERENCES
Health/EHealthRecords
Prictor, M., & Gray, K. (2022). Impact of Electronic Health Records on Information
Dornan, L., Pinyopornpanish, K., Jiraporncharoen, W., Hashmi, A., Dejkriengkraikul, N.,
Ebardo, R., & Celis, N. J. (2019). Barriers to the Adoption of Electronic Medical Records
https://library.ucmerced.edu/data-
dictionaries#:~:text=A%20Data%20Dictionary%20is%20a,part%20of%20a%20r
esearch%20project
https://scholarworks.waldenu.edu/dissertations/10027/
94 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
https://www.solvexia.com/blog/manual-data-processing-the-secrets-of-automation
Advantive. (2023, March 16). 4 Steps to Convert from Paper-Based to Electronic Record
2019/4-steps-to-convert-from-paper-based-to-electronic
https://ojs.aaresearchindex.com/index.php/spuprd/article/view/429/81
Adibi, S., Li, M., De Los Reyes-Gavilán, C. G., Seferovic, D., Kookal, K. K., Holland, J.
N., Walji, M. F., & Farach-Carson, M. C. (2020). Medical and Dental Electronic
https://doi.org/10.1177/2380084419879387
Park, Y., Park, H., Lee, J. M., & Choi, B. K. (2023). Hospitals’ Adoption of Mobile-
Sectional Study Analyzing National Healthcare Big Data. NQUIRY: The Journal
https://doi.org/10.1177/00469580231160892
to-convert-from-paper-based-to-electronic-record-keeping/
95 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
https://www.solvexia.com/blog/manual-data-processing-the-secrets-of-automation
Admin. (2021, June 27). Community Health Information Tracking System (CHITS) -
health-information-tracking-system-chits-2/
96 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
APPENDICES
97 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Random;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.Timer;
import javax.swing.border.LineBorder;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.type.PhoneNumber;
import javax.swing.JComboBox;
import javax.swing.JCheckBox;
@SuppressWarnings("serial")
public class Login extends JFrame {
private JPanel contentPane;
private JTextField username;
private JPasswordField password;
private JTextField oTP;
private int otp;
private Timer timer;
98 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Login frame = new Login();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public Login() {
setUndecorated(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 630, 400);
contentPane = new JPanel();
contentPane.setBackground(new Color(232, 252, 255));
contentPane.setBorder(null);
setContentPane(contentPane);
contentPane.setLayout(null);
99 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
else {
username.selectAll();
}
}
@Override
public void focusLost(FocusEvent e) {
if(username.getText().equals("")) {
username.setText("Username");
}
}
});
username.setBorder(null);
username.setFont(new Font("Segoe UI Emoji", Font.PLAIN, 20));
username.setText("Username");
username.setBounds(10, 11, 204, 18);
panel.add(username);
username.setColumns(10);
100 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
password.setText("");
}
else {
password.selectAll();
}
}
@SuppressWarnings("deprecation")
@Override
public void focusLost(FocusEvent e) {
if(password.getText().equals("")) {
password.setText("Password");
}
}
});
password.setBorder(null);
password.setText("Password");
password.setFont(new Font("Segoe UI Emoji", Font.PLAIN, 20));
password.setBounds(10, 11, 177, 24);
panel_1.add(password);
101 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
panel_1.add(showPass);
102 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
}
conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null,
exc);
}
}else if(getUser.equals("Doctor")) {
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
String sql = "Select * from doctor Where
username = '"+User+"'";
Statement sta = conn.createStatement();
ResultSet rs= sta.executeQuery(sql);
if(rs.next()) {
String connum
=rs.getString("contact");
Twilio.init(ACCOUNT_SID,
AUTH_TOKEN);
Message message = Message.creator(new
PhoneNumber(connum), new PhoneNumber(TWILIO_NUMBER),
"Your OTP is "+ otp +"." ).create();
}else {
103 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
String connum
=rs.getString("contact");
Twilio.init(ACCOUNT_SID,
AUTH_TOKEN);
Message message = Message.creator(new
PhoneNumber(connum), new PhoneNumber(TWILIO_NUMBER),
"Your OTP is "+ otp +"." ).create();
}else {
104 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
oTP.addFocusListener(new FocusAdapter() {
@Override
public void focusGained(FocusEvent e) {
if(oTP.getText().equals("OTP")) {
oTP.setText("");
}
else {
oTP.selectAll();
}
}
@Override
public void focusLost(FocusEvent e) {
if(oTP.getText().equals("")) {
oTP.setText("OTP");
}
}
});
oTP.setColumns(10);
oTP.setBorder(null);
oTP.setBackground(new Color(232, 252, 255));
oTP.setBounds(10, 11, 103, 18);
panel_3.add(oTP);
setLocationRelativeTo(null);
105 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
JOptionPane.showMessageDialog(null,"Username
can't be empty!!","Login Error", JOptionPane.ERROR_MESSAGE);
}else{
if(pass.equals("")) {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta =
conn.createStatement();
String sql =
"SELECT * from admin WHERE username= '"+ User +"' and password='"+ pass +"'";
ResultSet rs =
sta.executeQuery(sql);
if(rs.next()) {
JOptionPane.showMessageDialog(null,"Login Successfully...");
adminDB
dashboard= new adminDB();
setVisible(false);
dashboard.setVisible(true);
}else {
JOptionPane.showMessageDialog(null, exc);
106 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
};
}else if(getUser.equals("Doctor")) {
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta =
conn.createStatement();
String sql =
"SELECT * from doctor WHERE username= '"+ User +"' and password='"+ pass +"'";
ResultSet rs =
sta.executeQuery(sql);
if(rs.next()) {
JOptionPane.showMessageDialog(null,"Login Successfully...");
doctorDB
dashboard= new doctorDB();
setVisible(false);
dashboard.setVisible(true);
}else {
JOptionPane.showMessageDialog(null, exc);
};
}else if(getUser.equals("Staff")) {
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta =
conn.createStatement();
String sql =
"SELECT * from staff WHERE username= '"+ User +"' and password='"+ pass +"'";
107 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
ResultSet rs =
sta.executeQuery(sql);
if(rs.next()) {
JOptionPane.showMessageDialog(null,"Login Successfully...");
staffDB
dashboard= new staffDB();
setVisible(false);
dashboard.setVisible(true);
}else {
JOptionPane.showMessageDialog(null, exc);
};
}
}
}
}
}
});
108 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
@Override
public void mouseClicked(MouseEvent e) {
if(JOptionPane.showConfirmDialog(null, "Are you sure
you want to close this
application?","Confirmation",JOptionPane.YES_NO_OPTION)==0)
Login.this.dispose();
}
@Override
public void mouseEntered(MouseEvent e) {
lblx.setForeground(Color.RED);
}
@Override
public void mouseExited(MouseEvent e) {
lblx.setForeground(Color.black);
}
});
lblx.setVerticalAlignment(SwingConstants.BOTTOM);
lblx.setHorizontalAlignment(SwingConstants.TRAILING);
lblx.setFont(new Font("Segoe UI Black", Font.PLAIN, 20));
lblx.setBounds(589, 0, 31, 28);
contentPane.add(lblx);
109 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
@Override
public void mouseExited(MouseEvent e) {
if(panel.isEnabled())
panel.setBackground(new Color(0,160,152));
}
@Override
public void mousePressed(MouseEvent e) {
if(panel.isEnabled())
panel.setBackground(new Color(0, 204, 194));
}
@Override
public void mouseReleased(MouseEvent e) {
if(panel.isEnabled())
panel.setBackground(new Color(0,160,152));
110 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
}
}
}
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.JButton;
import javax.swing.UIManager;
import javax.swing.border.BevelBorder;
111 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
try {
adminDB frame = new adminDB();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public adminDB() {
setUndecorated(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 1244, 935);
contentPane = new JPanel();
contentPane.setBackground(new Color(232, 252, 255));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
112 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
}
@Override
public void mouseExited(MouseEvent e) {
lblx.setForeground(Color.black);
});
lblx.setVerticalAlignment(SwingConstants.BOTTOM);
lblx.setHorizontalAlignment(SwingConstants.TRAILING);
lblx.setFont(new Font("Segoe UI Black", Font.PLAIN, 15));
lblx.setBounds(1200, 0, 26, 21);
contentPane.add(lblx);
panel_Doctor.setLayout(null);
panel_Doctor.setBorder(new BevelBorder(BevelBorder.LOWERED, null,
null, new Color(0, 0, 0), null));
panel_Doctor.setBackground(new Color(0, 160, 152));
113 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
@Override
public void mouseClicked(MouseEvent e) {
menuClicked(docList);
}
});
114 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
115 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
panel_logout.setLayout(null);
panel_logout.setBorder(new LineBorder(new Color(0, 0, 0), 3, true));
panel_logout.setBackground(new Color(0, 160, 152));
panel_logout.setBounds(35, 718, 193, 44);
panel.add(panel_logout);
116 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
117 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
};
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from staff";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
ttlStaff.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
}
});
updatebtn.setBackground(new Color(255, 255, 255));
updatebtn.setFont(new Font("Segoe UI Black", Font.PLAIN, 15));
updatebtn.setBounds(140, 470, 88, 36);
panel.add(updatebtn);
118 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from staff";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
ttlStaff.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
panel_main.add(addDoctor);
panel_main.add(addStaff);
panel_main.add(docList);
panel_main.add(staffList);
menuClicked(docList);
}
//for navigation
public void menuClicked(JPanel panel) {
docList.setVisible(false);
addDoctor.setVisible(false);
addStaff.setVisible(false);
staffList.setVisible(false);
panel.setVisible(true);
}
//panel-button mouse interaction
public class PanelButtonMouseAdapter extends MouseAdapter{
JPanel panel;
119 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
@Override
public void mouseExited(MouseEvent e) {
panel.setBackground(new Color(0,160,152));
}
@Override
public void mousePressed(MouseEvent e) {
panel.setBackground(new Color(0, 204, 194));
}
@Override
public void mouseReleased(MouseEvent e) {
panel.setBackground(new Color(0,160,152));
}
}
}
1.2. Doctor Dashboard
package AdminControl;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
120 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
import javax.swing.AbstractButton;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.BevelBorder;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
doctorDB frame = new doctorDB();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
121 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
*/
public doctorDB() {
setUndecorated(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 1244, 935);
contentPane = new JPanel();
contentPane.setBackground(new Color(232, 252, 255));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
122 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
lblx.setForeground(Color.RED);
}
@Override
public void mouseExited(MouseEvent e) {
lblx.setForeground(Color.black);
});
lblx.setVerticalAlignment(SwingConstants.BOTTOM);
lblx.setHorizontalAlignment(SwingConstants.TRAILING);
lblx.setFont(new Font("Segoe UI Black", Font.PLAIN, 15));
lblx.setBounds(1200, 0, 26, 21);
contentPane.add(lblx);
panel_session.setLayout(null);
panel_session.setBorder(new BevelBorder(BevelBorder.LOWERED, null,
null, new Color(0, 0, 0), null));
panel_session.setBackground(new Color(0, 160, 152));
panel_session.setBounds(35, 172, 193, 44);
panel.add(panel_session);
123 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
@Override
public void mouseClicked(MouseEvent e) {
menuClicked(medhist);
}
});
lbl_medhist = new
JLabel("<html><center>MEDICAL<br>RECORD/HISTORY</html>");
lbl_medhist.setHorizontalAlignment(SwingConstants.CENTER);
lbl_medhist.setForeground(Color.WHITE);
lbl_medhist.setFont(new Font("Segoe UI Black", Font.PLAIN, 16));
lbl_medhist.setBounds(0, 0, 193, 41);
panel_medhist.add(lbl_medhist);
panel_logout.setLayout(null);
panel_logout.setBorder(new LineBorder(new Color(0, 0, 0), 3, true));
panel_logout.setBackground(new Color(0, 160, 152));
panel_logout.setBounds(35, 718, 193, 44);
panel.add(panel_logout);
124 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
icon_logout.setHorizontalAlignment(SwingConstants.CENTER);
icon_logout.setBounds(5, 0, 41, 44);
panel_logout.add(icon_logout);
icon_logout.setIcon(new
ImageIcon(adminDB.class.getResource("/res/logout.png")));
125 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
126 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from medhist";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
records.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
}
});
updatebtn.setBackground(new Color(255, 255, 255));
updatebtn.setFont(new Font("Segoe UI Black", Font.PLAIN, 15));
updatebtn.setBounds(140, 470, 88, 36);
panel.add(updatebtn);
127 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
lbl_Doctor_1.setForeground(Color.WHITE);
lbl_Doctor_1.setFont(new Font("Segoe UI Black", Font.PLAIN, 20));
lbl_Doctor_1.setBounds(10, 5, 173, 39);
panel_prescription.add(lbl_Doctor_1);
128 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from session where date =
'"+today+"'";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
todaySession.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from medhist";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
records.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
panel_main.add(session);
panel_main.add(medhist);
panel_main.add(pres);
menuClicked(session);
}
129 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
//for navigation
public void menuClicked(JPanel panel) {
session.setVisible(false);
medhist.setVisible(false);
pres.setVisible(false);
panel.setVisible(true);
}
@Override
public void mouseExited(MouseEvent e) {
panel.setBackground(new Color(0,160,152));
}
@Override
public void mousePressed(MouseEvent e) {
panel.setBackground(new Color(0, 204, 194));
}
@Override
public void mouseReleased(MouseEvent e) {
panel.setBackground(new Color(0,160,152));
}
}
}
130 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.BevelBorder;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
/**
* Launch the application.
*/
public static void main(String[] args) {
131 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
staffDB frame = new staffDB();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public staffDB() {
setUndecorated(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 1244, 935);
contentPane = new JPanel();
contentPane.setBackground(new Color(232, 252, 255));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
132 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
}
@Override
public void mouseExited(MouseEvent e) {
lblx.setForeground(Color.black);
});
lblx.setVerticalAlignment(SwingConstants.BOTTOM);
lblx.setHorizontalAlignment(SwingConstants.TRAILING);
lblx.setFont(new Font("Segoe UI Black", Font.PLAIN, 15));
lblx.setBounds(1200, 0, 26, 21);
contentPane.add(lblx);
133 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
@Override
public void mouseClicked(MouseEvent e) {
menuClicked(addsession);
}
});
panel_Session.setLayout(null);
panel_Session.setBorder(new BevelBorder(BevelBorder.LOWERED,
null, null, new Color(0, 0, 0), null));
panel_Session.setBackground(new Color(0, 160, 152));
panel_Session.setBounds(35, 172, 193, 44);
panel.add(panel_Session);
134 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
lbl_sessionlist.setHorizontalAlignment(SwingConstants.CENTER);
lbl_sessionlist.setForeground(Color.WHITE);
lbl_sessionlist.setFont(new Font("Segoe UI Black", Font.PLAIN, 20));
lbl_sessionlist.setBounds(10, 0, 173, 41);
panel_sessionlist.add(lbl_sessionlist);
panel_logout.setLayout(null);
panel_logout.setBorder(new LineBorder(new Color(0, 0, 0), 3, true));
panel_logout.setBackground(new Color(0, 160, 152));
panel_logout.setBounds(35, 718, 193, 44);
panel.add(panel_logout);
135 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
lbl_logout.setForeground(Color.WHITE);
lbl_logout.setFont(new Font("Segoe UI Black", Font.PLAIN, 20));
136 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
try {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from session";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
ttlSession.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
try {
Class.forName("com.mysql.jdbc.Driver");
Date date = new Date();
DateFormat df = new SimpleDateFormat("YYYY-
MM-dd");
today = df.format(date);
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from session
where date = '"+today+"'";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
todaySession.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
}
});
updatebtn.setBackground(new Color(255, 255, 255));
updatebtn.setFont(new Font("Segoe UI Black", Font.PLAIN, 15));
137 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
138 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from session";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
ttlSession.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
try {
Class.forName("com.mysql.jdbc.Driver");
Date date = new Date();
DateFormat df = new SimpleDateFormat("YY-MM-dd");
today = df.format(date);
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/maryangels", "root", "");
Statement sta = conn.createStatement();
String sql = "SELECT COUNT(*) from session where date =
'"+today+"'";
ResultSet rs = sta.executeQuery(sql);
while (rs.next()) {
int count = rs.getInt(1);
todaySession.setText(Integer.toString(count));
}conn.close();
}catch(Exception exc) {
JOptionPane.showMessageDialog(null, exc);
};
139 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
panel_main.setLayout(null);
setLocationRelativeTo(null);
panel_main.add(addsession);
panel_main.add(sessionList);
panel_main.add(patInfo);
menuClicked(sessionList);
}
//for navigation
public void menuClicked(JPanel panel) {
sessionList.setVisible(false);
addsession.setVisible(false);
patInfo.setVisible(false);
panel.setVisible(true);
@Override
public void mouseExited(MouseEvent e) {
panel.setBackground(new Color(0,160,152));
140 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
@Override
public void mousePressed(MouseEvent e) {
panel.setBackground(new Color(0, 204, 194));
}
@Override
public void mouseReleased(MouseEvent e) {
panel.setBackground(new Color(0,160,152));
}
}
}
141 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CHAPTER 1
142 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CHAPTER 2
143 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
PRACTICES
144 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
145 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
146 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
CHAPTER 3
147 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
TURN IT IN RESULT
COPYRIGHT CERTIFICATE
148 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
User’s Guide
149 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
150 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Only clinic staff can edit Only the doctor can add
Patient info laboratory results ,diagnoses and
presicription
Lists
Only the admin can view Only the admin can view
the list of doctors the list of staff
151 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
152 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Documentation
153 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
154 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
155 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Approval Form
156 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
157 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
158 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
159 | P a g e
Republic of the Philippines
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
160 | P a g e