Addis Alem Hospital Management System
Addis Alem Hospital Management System
Faculty of Computing
Submitted to the faculty of computing in partial fulfillment of the requirements for the
degree of Bachelor of Science in software engineering
Group members
Name ID Number
[2015]
i
Declaration
The Project is our own and has not been presented for a degree in any other university and
all the sources of material used for the project have been duly acknowledged.
KIDUS MARU
Name Signature
REDIET GASHAW
Name Signature
MEBRATU AWOKE
Name Signature
Faculty: Computing
This is to certify that I have read this project and that in my supervision and the students’
performance, it is fully adequate, in scope and quality, as a project for the degree of Bachelor of
Science.
TADELE MENGISTU
1. Examiner1 ___________________
2. Examiner2 __________________
Roles and Responsibilities of the Group Members
Task List of members
Requirement
gathering
Analysis
Design
Implementation
Testing
iii
Acknowledgement
First of all, would like to thanks to God for the success of this project. Next to that project
team would like to thanks to our advisor (instructor) Mr. Tadele Mengistu for this valuable
guidance, unreserved advance and constructive comment through the project without any
hesitate and encouragement given to us would be realized and also the project team would
like to extend our gratefulness to Addis Alem hospital officers who greatly help us in
providing information considering the existence system and give us special orientation
about how the service in the Addis Alem hospital management is done.
Acronyms
AAHPMS: Addis Alem Hospital Management System
DBMS: Database Management System
MRN: Medical Record Number
OPD: Out Patient Department
PRPFHI: Palliative, Rehabilitative and Pain Free Hospital Initiative
UML: unified modeling language
v
Table of Figure
FIGURE 1.1 ORGANIZATION STRUCTURE OF ADDIS ALEM HOSPITAL .................................................................................................................. 9
FIGURE 2.1 SYSTEM USE CASE DIAGRAM FOR ADDIS ALEM HOSPITAL MANAGEMENT SYSTEM ................................................................ 15
FIGURE 2.3 STATE DIAGRAM FOR DOCTOR IN HOSPITAL MANAGEMENT SYSTEMS FOR ADDIS ALEM HOSPITAL................................... 29
FIGURE 2.4 STATE DIAGRAM FOR PATIENT IN WEB-BASED HOSPITAL MANAGEMENT SYSTEM FOR ADDIS ALEM HOSPITAL ............. 30
FIGURE 2.17 CLASS DIAGRAM OF HOSPITAL MANAGEMENT SYSTEM FOR ADDIS ALEM HOSPITAL............................................................ 42
FIGURE 2.17 CLASS DIAGRAM OF HOSPITAL MANAGEMENT SYSTEM FOR ADDIS ALEM HOSPITAL............................................................ 50
FIGURE 2.18 CONCEPTUAL CLASS DIAGRAM OF HOSPITAL MANAGEMENT SYSTEM FOR ADDIS ALEM HOSPITAL ................................. 50
FIGURE 3.2 COMPONENT DIAGRAM OF ADDIS ALEM HOSPITAL MANAGEMENT SYSTEM .............................................................................. 53
FIGURE 3.3 DEPLOYMENT DIAGRAM OF HOSPITAL MANAGEMENT FOR ADDIS ALEM HOSPITAL................................................................ 54
FIGURE 3.4 DETAILED CLASS DIAGRAM OF HOSPITAL MANAGEMENT SYSTEM FOR ADDIS ALEM HOSPITAL ......................................... 56
FIGURE 3.9 USER INTERFACE FOR PATIENT REGISTRATION BY RECORD OFFICER .......................................................................................... 60
List of tables
TABLE 2.1 USE CASE DESCRIPTION FOR LOGIN PAGE .................................................................................. 16
TABLE 2.2 USE CASE DESCRIPTION FOR GENERATE REPORT PAGE .......................................................... 17
TABLE 2.6 USE CASE DESCRIPTION FOR MAKE PATIENT APPOINTMENT ................................................ 20
TABLE 2.7 USE CASE DESCRIPTION FOR SUBMIT LAB ORDER .................................................................... 20
TABLE 2.8 USE CASE DESCRIPTION FOR VIEW LAB RESULT ....................................................................... 21
TABLE 2.11 USE CASE DESCRIPTION FOR VIEW DRUG PRESCRIPTION ..................................................... 22
TABLE 2.12 USE CASE DESCRIPTION FOR VIEW MEDICAL RESULT ........................................................... 23
TABLE 2.16 USE CASE DESCRIPTION FOR MANAGE PATIENT DETAIL ...................................................... 25
TABLE 2.18 USE CASE DESCRIPTION FOR SEND LAB RESULT ..................................................................... 26
TABLE 2.19 USE CASE DESCRIPTION FOR VIEW HOSPITAL REQUEST FORM........................................... 26
TABLE 2.20 USE CASE DESCRIPTION FOR GENERATE PRICE LIST FOR PAYMENT ................................. 27
TABLE 2.21 USE CASE DESCRIPTION FOR ORDER BILL FOR PATIENT ....................................................... 27
TABLE 2.22 HARDWARE REQUIREMENTS IN HOSPITAL MANAGEMENT PROJECT FOR ADDIS ALEM
HOSPITAL ....................................................................................................................................................... 48
HOSPITAL ....................................................................................................................................................... 49
vii
Catalog
Declaration........................................................................................................................................................................................ ii
Roles and Responsibilities of the Group Members ..................................................................................................................... iii
Acknowledgement ...................................................................................................................................................................... iv
Acronyms ..................................................................................................................................................................................... v
Table of Figure............................................................................................................................................................................ vi
List of tables .............................................................................................................................................................................. vii
Abstract ....................................................................................................................................................................................... ix
CHAPTER ONE ............................................................................................................................................................................... 9
INTRODUCTION ............................................................................................................................................................................ 2
1.1 Background of the Project...................................................................................................................................................... 2
1.2 statement of the problem and justification ............................................................................................................................. 2
1.3 Objective of the project .......................................................................................................................................................... 3
1.4 Beneficiaries of project .......................................................................................................................................................... 4
1.5 Significance of project ........................................................................................................................................................... 4
1.6 Limitation of the project ........................................................................................................................................................ 5
1.7 System development Methodology ........................................................................................................................................ 5
1.8 Feasibility study .................................................................................................................................................................... 6
1.9 Scope of the project................................................................................................................................................................ 7
1.10 organization of the project .................................................................................................................................................. 9
CHAPTER TWO ............................................................................................................................................................................ 10
SYSTEM FEATURES ................................................................................................................................................................... 10
2.1 Existing system .................................................................................................................................................................... 10
2.2 Proposed system ................................................................................................................................................................. 11
2.3 Requirement Analysis .......................................................................................................................................................... 12
2.3.6 State Chart diagram ........................................................................................................................................................... 29
2.4 System Requirement ............................................................................................................................................................ 48
2.5 Key Abstraction with CRC Analysis.................................................................................................................................... 50
CHAPTER THREE ........................................................................................................................................................................ 51
SYSTEM DESIGN ......................................................................................................................................................................... 51
Introduction................................................................................................................................................................................ 51
3.1 Architectural Design ............................................................................................................................................................ 51
3.2. Design class Model ............................................................................................................................................................. 55
3.3 User Interface Design........................................................................................................................................................... 57
3.4 Access control and security .................................................................................................................................................. 60
CHAPTER FOUR .......................................................................................................................................................................... 62
IMPLEMENTATION ..................................................................................................................................................................... 62
4.1 Introduction:......................................................................................................................................................................... 62
4.2 Sample code: ........................................................................................................................................................................ 62
References ...................................................................................................................................................................................... 77
Appendix ........................................................................................................................................................................................ 78
Abstract
When the project team investigates about the current system of Addis Alem hospital to
gathers information, project team have found some limitations with the existing system.
Those are the system use large usage of paper to record data which requires large space for
storage. The manual system that the hospital uses do not provide effective way to back up
data, as a result data can be permanently lost, damaged or misplaced. And also, it is
challenging and takes time to treat the patient with proper drug control because of
registration the patient data manually and moving the paper from one office to other and the
project team proposed to develop a system that solves the problem of the manual system.
These system record patient information that registered by record officer and by patients
themselves into database and the system also allows doctors to see histories of patient
repeatedly and it helps the doctor to change medicine for the patient from the recorded
history online. The proposed system allow patients to write comment about hospital
activity. To develop this system the project team used Iterative development model starting
from requirement phase, analysis and design phase, implementation and test phase and
review phase. Each phase guided the project team in the development of the project and
helped them to organize the work flow of each task. The development and implementation
of hospital management system for the Addis Alem hospital is beneficial for the patients
and for the employees who work at the hospital.
ix
CHAPTER ONE
INTRODUCTION
3
1.3.2 Specific objective
Study the existing manual system major functions and problem.
Find out the functional and nonfunctional requirements.
Design interactive user interface for Addis Alem hospital management system.
Design database based up on analyzed data.
Implement the proposed new system.
Testing new system and make the required modification.
5
1.7.2 Analysis and Design methodology
We used object-oriented analysis and design methodology because Object-oriented analysis
and design (OOAD) allows effective management of software complexity by the virtue of
module. All the interfaces between the objects cannot be represented in a single diagram. It
can be upgraded from small to large systems at a greater ease than in systems following
structured analysis.
Our project team analyses and design this project using UML tools because UML is a visual
language that provides a way for us to construct, document, and visualize software systems.
These visual representations help us to better understand potential outcomes or errors in
programs, saving time and enhancing collaboration among team members. This project will
be conducted based on the Iterative Development method. Iterative methodologies provide
a cyclical approach to software development. There are many reasons why we use Iterative
Development Method for this project useful where requirements change to response
quickly. Allow more flexibility for changes to solve unforeseen problems.
In order to combine the system and existing system the management should use expertise
and train employee.
This system is capable of managing recorded patient’s history by avoiding redundant and
invalid data.
The system capable of recording drug details information with their expired date, dosage
amount and frequency of usage.
7
The system capable of recording employ details information with their job and
specialization.
The system able users to know the hospital working activity through the process they get,
the service they provide and about employee activity in patient treatment.
This system is done only for outpatient department that means the system doesn’t include
ward (patients that take bed in the hospital) because of this we don’t include nurse in the
system.
The system doesn’t include human resource administration and facility management
component in the hospital.
1.10 Organization of the project
9
CHAPTER TWO
SYSTEM FEATURES
2. The record officer gives patient card with card number by registering his/ her history and
delegate to triage room.
3. nurses in the triage measure temperature and pressure of patient and decide the room the
patient must go and delegate patient to doctor class and the patient goes to doctor room and
the porter receive the patients medical record from record officer and give to the doctor.
4. The doctor who treats the patient, ask the symptom, what the patient feels, the doctor decide
the disease and write patient history based on his/her record .
5. If the symptom needs lab test, the doctor will send the patient to laboratory for checkup
with lab hospital request form that has to be tested by the lab technician.
6. The lab technician test lab order and send back the result to doctor then the doctor check the
result and order medicine with prescription paper.
7. If the symptom doesn’t need lab test or if it’s known, the doctor will send the patient to
pharmacist to get medicine with prescription paper.
8. The patient gives the prescription paper to pharmacist then the pharmacist checks the paper
and give medicine to patient with command of how he/she takes medicine.
9. If the hospital finished the medicine which they were asked the pharmacist tell to manager
to order from store.
10. If the hospital can’t treat a patient or the patients are on critical condition the hospital writes
refer to Felegehiwot referral hospital.
2.2 Proposed system
Project team observes the existing system and proposes a hospital management System for
Addis Alem hospital. This proposed system has the following purpose: -
1. The system allows for doctors to order one or more lab tests for patients.
2. In the pharmacy page the system will allow for pharmacists to give one or more medicines
for patients when prescribed by the doctor and show the expired medicine in red color for
pharmacist to remove that medicine from the drug store.
3. The system provides chat box for doctors and patients to communicate with each other.
4. The system will allow for patients to register themselves and to get order or queue of cards
(ካ ር ድ ማዉጣት እ ና ወ ረ ፋ መያ ዝ ) before they go to the hospital or when they are at home.
That means minimize the workload for record officer.
5. The system provides interactive user interface for its users (easy to use).
7. The system has a mobile app interface for patients that want to use the system service.
8. The system has payment integration for patients to pay for the service they get to the
cashier’s of the hospital.
11
2.3 Requirement Analysis
The new system achieves some functional requirement that must include in the system to
achieve objectives and help to create acceptable system by the patients and employees.
Functional requirement defines what the system supposed to do.
Manager
The system allows the manager to manage employees.
The system allows the manager to add a price list for the service .
The system allows the manager to view written comment by patient in hospital activity and
employee
Doctors
The system allows the doctor to make patient Appointment.
The system allows the doctor to refer patient.
The system allows the doctor to view lab report.
The system allows the doctor to make drug prescription.
The system allows the doctor to submit lab order
The system allows the doctor to view appointment for patient.
Patient
The system allows the patient to view medical result.
The system allows the patient to view medical prescription.
The system allows the patient to view appointment day.
The system allows the patient to give comment for hospital activity and about employee.
The system allows the patients to communicate with the doctors using chat-box.
The system allows the patient to register themselves to get service from the hospital.
Pharmacist
The system allows the pharmacist to view medical prescription.
The system allows the pharmacist to dispense drug.
The system allows the pharmacist to generate report.
Lab Technician
The system allows the Lab Technician to send lab result.
The system allows the Lab Technician to generate report.
The system allows the lab technician to view lab order
Record Officer
The system allows for record officer to record patient.
The system allows the Record officer to manage patient
The system allows the Record officer to assign room for patients to doctor
Cashier
The system allows the cashier to order invoice to payment.
The system allows the cashier to take payment.
The system allows the cashier to view payment history of patient.
2.3.2.4 Reliability: The performance of the system is good which will increase the
13
reliability of the service. The system deploys on server computers and systems allow
multiple clients to access the server at the same time.
The system has a backup procedure to maintain and secure data of the employer, researcher, and
others. The system can handle invalid inputs and display error messages to users. This system is
likeability to work without failure for a given time period.
2.3.2.5 Security:
Security requirement are important factors in this system as classified data/information will be
stored in the database. User validation will be done during login to ensure that the user is valid
and that the user only has access to his/her permitted information.
2.3.2.6 Maintainability: The system is easily maintained because it uses backup method to
2.3.2.7 Accuracy:
The proposed system has better reduction of error. All data can fill correctly if it does not
the system will notify.
2.3.2.8 Accessibility: we must make sure that the system be accessible for all authorized
staff and not accessibility by anyone else who don’t have the privilege to access.
2.3.2.9 Usability:
The system is user friendly and self-explanatory.
The menu must be clear for user.
The system must have functionalities like (edit, delete, update, next, search)
The system must be able to store and retrieve patient information.
The system must be able to provide error message.
The system must have good arrangement of objects.
The system must be consistence (ex. Color and line size)
2.3.2.10 Interoperability: Interoperability refers to the ability to share and manage
information between computer devices and information systems within and across
organizational boundaries. This system is interoperable because it exchanges the information to
user and from the users through user interface.
Figure 2.1 system use case diagram for Addis Alem hospital management system
15
2.3.3.2 Use case Documentation
The following consecutive tables show the use case description for each use cases. Each table
contains the use case name, the actor which initiates and interacts with the use case,
Use case Id UC 01
Use case name Login
Participating actor Patient, lab technician, Doctor, Pharmacist, Manager,
Record Officer.
Pre-condition The user must have username and password
The login page contains the login form to be displayed
Basic course of action The user wants to login into the system.
The system displays the form.
The user enters username and password, click on login
button.
The system verifies that the user is eligible to login into
the system.
The user must login into the system.
17
Use case Id UC 03
Use case name Manage Drug
Participating actor Pharmacist
Pre-condition Login into the system
Extends -------register, delete and update drug, edit,
Basic course of action 1. Pharmacist want to add drug, delete drug, update drug
information must click to manage drug link.
2. The system display manage drug link.
3. The Pharmacist can perform add drug, delete drug, or
update drug information.
4. The Pharmacist must fill the form when add drug and
request drug.
5. Pharmacist must clicks submit button to add drug,
delete drug, or request drug.
Alternative course of action If the Pharmacist makes the form empty go to 3
The system displays please fill the form.
The Pharmacist continues to fill form correctly
Post-condition Message are generated as the action performed properly or
not
Table 2.3 use case description for Manage Drug
Use case Id UC 04
Use case name Manage Employee
Participating Actor Manager
Pre-condition Login into the system
Extends -------register, delete and update employee
Best course of action Manager want to manage Employee
manager must click Manage Employee link
The system display Manage Employee form.
Manager can perform delete Employee, add employee and
update employee information
When manager want to add Employee manager must fill
the form
Manager clicks Add or delete and update button to perform
the action.
Alternative course of action If the manager makes the form empty go to 3
The system displays please fill the form correctly
The manager continues to fill the form
Use case Id UC 05
19
Use case Id UC 06
Use case name Make Patient Appointment
Participating Actor Doctor
Pre-condition Login into the system
Best course of action Doctor wants to make appointment
click Appointment link
The system display Appointment form
The Doctor must fill Appointment form.
The Doctor must click submit button
Alternative course of action If the Doctor make the Appointment form empty
The system displays please fill Appointment form
correctly
The Doctor continues to fill Appointment form Again
Post-condition Message are generated appointment submitted
successfully
Table 2.6 use case description for Make Patient Appointment
Use case Id UC 07
Use case name Submit lab order
Participating Actor Doctor
Pre-condition Login into the system
Best course of action Doctor wants to send lab order
click Send lab order link
The system display lab order
The doctor must fill lab order Form correctly.
The doctor must click submit button
Alternative course of action If the Doctor make the lab order Form empty
The system displays please fill the lab order Form
correctly
The doctor continues to fill the lab order Form
Post-condition Messages generated lab order submitted successfully
Table 2.7 use case description for Submit lab order
Use case Id UC 08
Use case name View Lab Result
Participating Actor Doctor
Pre-condition Login into the system
Best course of action Doctor wants to view Lab Result click Lab Result link
The system display lab result Form
The Lab result displayed
Alternative course of action If there is no Lab Result the Page Became Empty
space
Post-condition The System Generate there is no Lab Result
Table 2.8 use case description for View Lab Result
Use case Id UC 09
Use case name Drug Prescription
Participating actor Doctor
Pre-condition Login into the system
Best course of action Doctor wants to prescribe drug must click Drug
Prescription link.
The system display Drug Prescription form.
The Doctor fills the Drug Prescription form.
The Doctor must submit Drug Prescription.
Alternative course of action If the Doctor make Drug prescription forms empty go
to 2.
The system displays please fill Drug Prescription form
correctly
The Doctor continues to fill Drug Prescription form
again
Post –condition Messages are generated drug prescription done
successfully
Table 2.9 use case description for Drug Prescription
21
Use case Id UC 10
Use case name Dispense Drug
Use case Id UC 11
Use case name View Drug Prescription
Participating actor Pharmacist, patient
Pre-condition Login into the system
Best course of Action Pharmacist and patient must click View Drug
Prescription link.
The system display Drug Prescription.
Alternative course of Action If no Drug Prescription the Page Became Empty space
Table 2.11 use case description for View Drug Prescription
Use case Id UC 12
Use case name View Medical Result
Participating actor Patient
Pre-condition Login into the system
Best course of Action Patient must click View medical result link.
The system display box.
The patient must enter their password
Alternative course of Action If no medical history sent the Page Became Empty space
Table 2.12 use case description for View Medical Result
Use case Id UC 13
Use case name View Appointment
Participating actor Patient
Pre-condition Login into the system
Best course of Action The system display box.
The patient must enter their password.
The patient click submit button.
Alternative course of Action If no Appointment the Page Became Empty space
Table 2.13 use case description for View Appointment
Use case Id UC 14
23
Use case Id UC 15
Use case name Record Patient
Participating Actor Record officer
Pre-condition Login into the system
Best course of action To record patient record officer must select record patient
link.
The system display patient registration form.
The record officer must fill correctly record patient form.
Record officer clicks record patient button.
Alternative course of action If the record officer makes the record patient form empty go
to 2
The system displays message please fill the form correctly
The record officer continues to fill the record patient form
Post-condition The system displays a message that tells the patient recorder
successfully
Table 2.15 use case description for Record Patient
Use case Id UC 16
Alternative course of action If the Record officer make the form empty go to 2
The system displays please fill the form correctly
The Record officer continues to fill the form
Use case Id UC 17
Use case name View Comment
Alternative course of Action If no comment sent the Page Became Empty space
25
Use case Id UC 18
Use case name Submit Lab Result
Participating Actor Lab Technician
Pre-condition Login into the system
Best course of action Lab Technician want to send lab result
select lab result link
The system display lab result Form
The Lab Technician must fill lab result Form correctly.
The Lab Technician must click submit button
Alternative course of action If the Lab Technician make the lab result Form empty
go to 2
The system displays please fill the lab result Form
correctly
The Lab Technician continue to fill the lab result Form
Post-condition Messages are generated as the action performed
properly
Table 2.18 use case description for Send Lab Result
Use case Id UC 19
Use case name View lab order
Participating Actor Lab Technician
Pre-condition Login into the system
Best course of action Lab Technician want to view lab order Form click
Hospital lab order link
The system display lab order Form
Alternative course of action If there is no lab order the Page Became Empty space
Post-condition The System Generate there is no lab order
Table 2.19 use case description for View hospital Request form
Use case Id UC 20
Use case name Generate price list for payment
Participating Actor Manager
Pre-condition Login into the system
Best course of action manager want to Generate price list for payment
select Generate price list for payment link
click Generate price list for payment link
The system display price list for payment Form
The manager must click submit button
Alternative course of action If the manager makes the Generate price list for
payment Form empty go to 2
The system displays please fill the Generate price list
for payment Form correctly
The manager continues to fill the Generate price list
for payment Form
Post-condition Messages are generated as the action performed
properly
Table 2.20 use case description for Generate price list for payment
Use case Id UC 21
Use case name Order Bill for patient
Participating Actor Cashier
Pre-condition Login into the system
Best course of action Cashier wants to Order Bill for patient
click Order Bill for patient
The system display Order Bill for patient Form
The cashier must click submit button
Alternative course of action If the Cashier make the Order Bill for patient Form empty go
to 2
The system displays please fill the Order Bill for patient
Form correctly
The cashier continues to fill the Order Bill for patient Form
Post-condition Messages are generated as the action performed properly
Table 2.21 use case description for Order Bill for patient
27
2.3.4 Business rules
Specific instructions or constraints on how certain day-to-day actions, operations,
definitions that applies to a hospital
Br1: the doctor must know the disease before giving drug prescription
Br2: The lab technician must test the requested lab before sending lab result.
Br3: Name of drug will be unique for every disease in the hospital.
Br4: Users can access their own history and no one can access other medical history.
Br5: New patients must be registered by record officer.
Br6: Patents ID must be unique.
Figure 2.3 state diagram for doctor in hospital management systems for Addis Alem hospital
29
Figure 2.4 State diagram for patient in web-based hospital management system for Addis
Alem hospital
2.3.7 Activity diagram
Activity diagrams are used to document the logic of a single operation/method. It includes
modeling the sequential process.
31
Figure 2.6 activity diagram for manage drug
Figure 2.7 Activity Diagram for Make Patient Appointment
33
Figure 2.8 Activity Diagram Manage Employee
Figure 2.9 Activity Diagram to register Patient
35
Figure 2.10 Activity Diagram to Refer Patient
Figure 2.11 Activity Diagram to lab order
37
Figure 2.12 Activity Diagram to Prescribe Drug
2.3.8 Sequence Diagram
The Sequence Diagram is collaboration of objects based on a time sequence. It shows how
the objects interact with others in a particular scenario of a use case. One of the primary
uses of sequence diagrams is in the transition from requirements expressed as use cases to
the next and more formal level of alteration.
39
Figure 2.14 sequence diagram for send Lab Result
41
2.3.9 Analysis Class Model
Class diagram is a static diagram used to shows a collection of classes, interfaces,
associations, collaborations, and constraints. It is also known as a structural diagram.
Figure 2.17 class diagram of hospital management system for Addis Alem Hospital
2.3.10 Logical Model
1, Scenario name: Login.
Participating actor: Patient, Lab Technician, Doctor, Pharmacist, Manager, Record Officer.
Patient, Lab Technician, Doctor, Pharmacist, Manager, and Record Officer can login into
website by using their own username and password to perform tasks.
2, Scenario name: Generate Report.
Participating actor: Manager, Doctor, lab technician or pharmacist.
The Manager, Doctor or pharmacist must select generate report link.
The system displays Report form.
The Manager, Doctor or pharmacist can write report that he/she want to send
The Manager, Doctor or pharmacist must clicks submit button.
The system displays message that action performed properly or not.
3, Scenario name: View comment
Participating actor: Manager:
Manager must select View comment link.
The system display comment Form.
The Manager can see written comment.
4, Scenario name: Manage Employee.
Participating actor: Manager.
Manager must select manage employee link.
System display form to manage employee
The manager can perform deleting employee, registering employee update employee
information.
The manager must clicks submit button.
The system displays message that action performed properly or not.
5, Scenario name: Manage Drug.
Participating actor: Manager.
Manager must click Manage Drug link.
The system display form to Manage Drug.
Manager can perform deleting drug, adding drug, updating drug information.
The manager must clicks submit button.
43
The system displays message that action performed properly or not.
6, Scenario name: Send Hospital Lab Request Form
Participating actor: doctor:
Doctor must select lab order link.
The system display lab order.
Doctor can write lab order for lab technician to test the sign of patient illness.
The doctor must click submit button.
The system displays message that action performed properly or not.
7, Scenario name: View lab Result
Participating actor: doctor:
Doctor must click on View lab Result link.
The system displays lab Result Form.
The Doctor can see lab result.
8, Scenario name: Refer-out Patient:
Participating actor: Doctor
Doctor must select refer patient link.
The system display form to refer patient.
The Doctor must fill refer form clearly.
The Doctor must click send button.
The message does not send, it put in database server because out of scope.
9, Scenario name: Prescribe Drug:
Participating actor: Doctor:
Doctor must select Prescribe Drug link.
The system display form to Prescribe Drug.
The Doctor must fill Drug Prescription form clearly.
The Doctor must click send button either for patient or pharmacist.
The system displays message that action performed properly or not.
10, Scenario name: Make Patient Appointment
Participating actor: Doctor:
Doctor must select Make Patient Appointment link.
The system displays Patient Appointment form.
The Doctor must fill Patient Appointment form clearly.
The Doctor must click send button.
The message sent to patient
The system displays message that action performed properly or not.
11, Scenario name: Write Comment.
Participating actor: Patient.
The Patient must select Write Comment link.
The system displays Comment form.
The Patient can Comment that he/she want to send
The patient must click send button.
The system displays message that action performed properly or not.
12, Scenario name: View Medical Result:
Participating actor: patient:
Patient must select View Medical Result link.
The system displays Medical Result form.
The Patient can view his/her medical Result.
The patient can know their illness.
13, Scenario name: View Drug Prescription:
Participating actor: Patient, pharmacist:
Patient and pharmacist must select View Drug Prescription link.
System displays Drug Prescription.
The Patient and pharmacist can view Drug Prescription
14, Scenario name: Dispense Drug
Participating actor: Pharmacist:
Pharmacist must select Dispense Drug link.
System display form to Dispense Drug.
Pharmacist must write the form of Drug Dispassion
Pharmacist must clicking submit button for patient.
The system displays message that action performed properly or not.
15, Scenario name: Send Lab Result:
Participating actor: lab technician:
45
Lab technician must click submit Lab Result link.
The system displays Lab Result form.
Lab technician must test the lab requested by the doctor.
Lab technician must write lab report clearly.
Lab technician must click submit button to doctor.
The system displays message that action performed properly.
16, Scenario name: View lab order
Participating actor: Lab Technician:
Lab Technician must select View lab order link.
The system display lab order Form.
The Lab Technician can see lab order.
17, Scenario name: View Appointment
Participating actor: Patient:
Patient must select View Appointment link.
The system display Appointment Form.
The Patient can see Appointment.
18, Scenario Name: Create Record Patient:
Participating actor: Record officer:
Record officer must click Create Record Patient link.
The system displays the form to Record Patient.
Record officer must fill the form correctly.
The Record officer must click record button.
The system displays message that action performed properly or not.
19 Scenario name: Manage patient detail.
Participating actor: Record officer.
Record officer must select manage patient detail link.
System display form to manage patient detail
The Record officer can perform deleting patient, registering patient, update patient
information and viewing patient information.
The Record officer must clicks submit button.
The system displays message that action performed properly or not.
20, Scenario name: Generate price list for payment.
Participating actor: Manager.
Manager must select Generate price list for payment link.
System display form to Generate price list for payment
The manager can perform registering price list, update price list information.
The manager must clicks submit button.
The system displays message that action performed properly or not.
21, Scenario name: Order bill for patient
Participating actor: Cashier:
Cashier must select Order bill for patient link.
System display form to Order bill for patient.
Cashier must write Order bill for patient
Cashier must clicking submit button for patient.
The system displays message that action performed properly or not.
22, Scenario name: Log Out.
Participating actor: Patient, Lab Technician, Doctor, Pharmacist, Manager,Record Officer.
Users are login to system and after finishing their task, they can log out.
47
2.4 System Requirement
After having all the required data different software and hardware tools are used.
Table2.13 Software requirement in hospital management system for Addis Alem hospital
49
2.5 Key Abstraction with CRC Analysis
Figure 2.18 conceptual class diagram of hospital management system for Addis Alem Hospital
SYSTEM DESIGN
Introduction
In this chapter we are going to describe the current and proposed system software
architecture and we specify design goals to improve the quality of the system by reducing
response time, increasing availability and improving its reliability to function correctly
under incorrect conditions. Software architecture is the process of defining a structured
solution that meets all of the technical and operational requirements, while optimizing
common quality attributes such as performance, security, and manageability. We describe
the Hardware/software mapping with deployment diagram, persistent data management,
subsystem decomposition or component, access control and security. Hardware/software
mapping is mapping subsystems to processors and components enable us to identify
potential concurrency among subsystems and to address performance and reliability goals.
We specify the boundary conditions for each subsystem by mentioning how the subsystems
initialized and terminates.
there is no Existing software architecture that will be considered. As a result, we only describe
51
the local area network of the hospital.
A web server is a program that runs on a network server (computer) to respond to HTTPS
requests. The web server used in this system is Node. HTTP is used to transfer data across
the internet. It is the standard protocol for moving data across the internet. The third tier,
called the data tier, maintains the applications data such as doctor data, manager data,
patient data… etc. It stores these data in a relational database management system
(RDBMS).
53
3.1.2 Deployment diagram
Deployment diagrams are used to visualize the topology of the physical
components of a system, where the software components are deployed and used to
Figure 3.3 deployment diagram of hospital management for Addis Alem hospital
3.2. Design class Model
55
Figure 3.4 detailed Class Diagram of hospital management system for Addis Alem hospital
3.2.1 ER Diagram
ER Diagram is a visual representation of data that describes how data is related to each
other using different ERD Symbols and Notations. Following are the main components and
its symbols in ER Diagrams: Rectangles: This Entity Relationship Diagram symbol
represents entity types. Ellipse symbol represent attributes.
application. The goal of effective UI is to make the user's experience easy and intuitive, requiring
57
Figure 3.7 User interface for patient signup
Figure 3.8 User interface for login
59
Figure 3.9 User interface for patient registration by record officer
61
CHAPTER FOUR
IMPLEMENTATION
4.1 Introduction:
Implementation is the stage of the project when the theoretical design is turned out into a
working system. It can be considered to be the most critical stage in achieving a successful new
system and in giving the user, confidence that the new system will work and be effective. The
implementation stage involves careful planning, investigation of the existing system and it’s
changeover methods.
<Routes>
63
<Route path='ContactUs' element={<ContactUs/>} />
<Route path='Add_Service_Price' element={<Add_Service_Price/>} />
<Route path="login" element={<Login />} />
<Route path="Employ_reg" element={<Employ_reg />} />
<Route path="Appointment" element={<Appointment />} />
<Route path="signin" element={<Signin />} />
<Route path="RecordOfficer" element={<RecordOfficer />} />
<Route path="PatientRecord" element={<PatientRecord/>} />
<Route path="Patient" element={<Patient/>} />
<Route path="Pharmasisit" element={<Pharmasist/>} />
<Route path="LabTechnitian" element={<LabTechnitian/>} />
</Routes>
</div>
</div>
);
}
export default App;
//app css
.copy{
text-decoration: none;
color:rgb(1, 12, 24);
background-color: rgb(212, 212, 212);
font-family: sans-serif;
font-style: oblique;
border-radius: 7px;
}
.info{
margin-top: 40px;
font-size: 15px;
text-align: center;
}
.login{
text-align: left;
border: none;
border-radius: 5px;
65
}
.signin{
text-align: left;
margin-left: 150px;
border: none;
border-radius: 5px;
}
.pri{
margin-top: 20px;
margin-bottom: 20px;
text-align: center;
}
.privacy{
margin-right: 100px;
border: none;
border-radius: 5px;
}
.about,.head{
margin-left: 100px;
border: none;
border-radius: 5px;
}
button{
background-color: rgb(143, 175, 164);
text-decoration: none;
color: inherit;
font-family: sans-serif;
font-style: oblique;
border: none;
border-radius: 7px;
h2{
text-decoration: none;
color:rgb(241, 246, 252);
font-family: sans-serif;
font-style: oblique;
border-radius: 10px;
margin-top: 60px;
margin-right: 100px;
}
h3{
font-family: sans-serif;
font-style: oblique;
border-radius: 10px;
}
h4{
color: rgb(249, 250, 252);
margin-top: 70px;
border: 1px solid #5666b6;
border-radius: 4px;
67
}
.df{
background-color: rgba(229, 233, 238, 0.493);
}
//end of app
//begining of home
<div className="info">
<div>
<video
width="70%" height="60%" preload='auto' controls
muted
autoPlay={true}
preLoad="auto"
loop>
<source src={h_Anime} type="video/mp4" />
something</video>
</div>
<p>
The platform supports the primary health-care provider at the community
level in diagnosis and treatment decisions.The provider can link the Patient
directly to the platform for a video consultation with a physician. If no diagnosis can be
made, the patient
is referred to a hospital associated with the platform.The platform is expected to
strengthen primary care and create a local
gatekeeping mechanism. Inspired by the Guangdong experience,
The directive encourages hospitals to provide primary care and a referral
system for patients with common conditions and chronic diseases through
online platforms. This approach also acts as a triage system for hospital services.
</p>
</div>
</header>
</div>
)
}
.back{
69
display: flex;
padding: 10px;
//end of home
});
alert("registred")
}
const imageHandlerUI = (e) =>{
setProfileImg(URL.createObjectURL(e.target.files[0]));
setFile(e.target.files[0]);
console.log("img: "+file)
setImgName(e.target.files[0].name)
}
return ( // this returns form filed to register patient
<div className="BodyArea">
71
<h3>
RECORD NEW PATIENT PAGE
</h3>
<div className="patientRecord">
<form>
<div className="Password">
<label for="MRN">Medical Record Number : </label>
<input id="MRN" name="MRN" type="text"
onChange={(event)=>{setMRN(event.target.value);}}/>
</div>
<div className="Password">
<label for="Name">Name :</label>
<input id="Name" name="Name" type="text"
onChange={(event)=>{setFirstName(event.target.value);}}/>
<label for="middleName">Middle Name :</label>
<input id="middleName" name="middleName" type="text"
onChange={(event)=>{setMiddleName(event.target.value);}}/>
</div>
<div className='Password'>
<label for="lastName"> Last Name :</label>
<input id="lastName" name="lastName" type="text"
onChange={(event)=>{setLastName(event.target.value);}}/>
<label for="sex"> Gender : </label>
<input id="male" name="sex" type="radio" defaultChecked={gender}
onChange={(event)=>{setGender("male");}}/>
<label for="male"> Male :</label>
<input type="radio" id="female" name="sex"
onChange={(event)=>{setGender("female");}}/>
<label for="female">Female</label>
</div>
<div className='Password'>
<label for="date">Age :</label>
<input id="date" name="date" type="text"
onChange={(event)=>{setAge(event.target.value);}}/>
<label for="adress"> Adress :</label>
<input id="regon" name="region" type="text"
onChange={(event)=>{setAddress(event.target.value);}}/>
</div>
<div className="Password">
<label id="">Image : </label>
<img
src={profileImg}
alt=""
className="img"
value={profileImg}
/>
<input
name="image"
type="file"
id="input"
accept="image/*"
onChange={imageHandlerUI }
/>
<label htmlFor="input" >
Choose File
</label>
</div>
73
<div className='Password'>
<label for="houseNumber"> House Number :</label>
<input id="houseNumber" name="houseNumber" type="text"
onChange={(event)=>{setId(event.target.value);}}/>
<label for="phoneNumber"> Phone Number :</label>
<input id="phoneNumber" name="phoneNumber" type="Number"
onChange={(event)=>{setPhoneNumber(event.target.value);}}/>
</div>
<div className='LoginReset'>
<button className='login' onClick={register}>Register </button>
<button className='reset'>Reset</button>
</div>
</form>
</div>
</div>
)
}
console.log(tmp_path);
var target_path = path.join(__dirname, 'Image/') + req.file.originalname;
var src = fs.createReadStream(tmp_path);
var dest = fs.createWriteStream(target_path);
src.pipe(dest);
75
tatus) values(?,?,?,?,?,?,?,?,?,?)";
db.query(registerPatient,[MRN, firstName,middleName, lastName, age, gender, imgName,
phoneNumber, address, patientStatus ],(err, result)=>{
if(err){
console.log(err);
}
else{
console.log(registerPatient," MRN = ",firstName," firstname = ",imgName);
// res.send("values inserted");
}
})
});
[1] Addis Alem hospital (2009 E.C). Document of patient service management manual.
Bahirdar.
may 2021].
[6] k. Brush, "use case model definition," 20 april 2019. [Online]. Available:
https://searchsoftwarequality.techtarget.com/definition/use-case. . [Accessed 24 april 2021].
77
Appendix
How many workers were when the AAH officially starts facility service?
How many workers were when the AAH officially current facility service?
Are there problems with this? and what are the problems?
How much is the cost expense of the AAH to perform the task monthly and annually?
79
81
83
85