Hospital Management System
Hospital Management System
CHAPTER 1
INTRODUCTION
1.1 Introduction of
project:
The project Hospital Management system includes registration of patients, storing their
details into the system. The software has the facility to give a unique id for every patient and
stores the details of every patient .
The Hospital Management System can be entered using a username and password. It is
accessible either by an administrator .Only they can add data into the database. The data can be
retrieved easily. The interface is very user-friendly. The data are well protected for personal use
and makes the data processing very fast.
Hospital Management System is powerful, flexible, and easy to use and is designed and
developed to deliver real conceivable benefits to hospitals.
Hospital Management System is a software product suite designed to improve the quality
and management of hospital management in the areas of clinical process analysis and activity-
based costing. Hospital Management System enables you to develop your organization and
improve its effectiveness and quality of work. Managing the key processes efficiently is critical
to the success of the hospital helps you manage your processes
The information is very difficult to retrieveand to find particular information like- E.g. -
To find out about the patient’shistory, the user has to go through various registers. This results in
inconvenience and wastage of time.
The information generated byvarious transactions takes time and efforts to be stored at
Manual calculations are error prone andtake a lot of time this may result in incorrect
information. For examplecalculation of patient’s bill based on various treatments.
This becomes a difficult task as information is difficult to collect from various register.
Objective:
1) Define hospital
2) Recording information about the Patients that come.
3) Generating bills.
4) Recording information related to diagnosis given to Patients.
5) Keeping record of the Immunization provided to children/patients.
6) Keeping information about various diseases and medicines available to cure them.
These are the various jobs that need to be done in a Hospital by the operational staff andDoctors.
All these works are done on papers.
1) Information about Patients is done by just writing the Patients name, age and gender.
Whenever the Patient comes up his information is stored freshly.
2) Bills are generated by recording price for each facility provided to Patient on a separate
sheet and at last they all are summed up.
3) Diagnosis information to patients is generally recorded on the document, which contains
Patient information. It is destroyed after some time period to decrease the paper load in
the office.
4) Immunization records of children are maintained in pre-formatted sheets, which are kept
in a file.
5) Information about various diseases is not kept as any document. Doctors themselves do
this job by remembering various medicines.
All this work is done manually by the receptionist and other operational staff and lot ofpapers
are needed to be handled and taken care of. Doctors have to remember variousmedicines
available for diagnosis and sometimes miss better alternatives as they can’tremember them at
that time.
Hospital Management System is web application for hospital which manages doctors and
patients. In this project, we use PHP and MySQL database.
Admin module
User module (patient)
Doctor module
1. Dashboard: In this section, admin can view the Patients, Doctors, Appointments and
New queries.
2. Doctors: In this section, admin can add doctor’s specialization and mange
doctors (Add/Update).
3. Users: In this section, admin can view users detail(who take online appointment) and
also have right to delete irrelevant user.
4. Patients: In this section, admin can view patient’s details.
5. Appointment History: In this section, admin can view appointment history.
6. Contact us Queries: In this section, admin can view queries which are send by users.
7. Doctor Session Logs: In this section, admin can see login and logout time of doctor.
8. User Session Logs: In this section, admin can see login and logout time of user.
9. Reports: In this section, admin can view reports of patients in particular periods.
10. Patient Search: In this section, admin can search patient with the help of patient name
and mobile number.
1. Dashboard: In this section, patients can view the his/her profile, Appointments and
Book Appointment.
2. Book Appointment: In this section, Patient can book his/her appointment.
3. Appointment History: In this section, Patients can see his/her own appointment history.
4. Medical History: In this section, Patients can see his/her own appointment history.
User can update his/her profile, change the password and recover the password.
1. Dashboard: In this section, doctor can view his/her own profile and online appointments.
2. Appointment History: In this section, Doctor can see patient’s appointment history.
3. Patients: In this section, doctor can manage patients (Add/Update).
4. Search: In this section, doctor can search patient with the help of patient name and
mobile number.
Doctor can also update his profile, change the password and recover the password.
CHAPTER
2
BUSINESS REQUIRMENTS:
2.1 INTRODUCTION TO DOMAIN BUSINESS AND RELATED TERMS:
To be used efficiently, all computer software needs certain hardware components or the
other software resources to be present on a computer. These pre-requisites are known
as(computer) system requirements and are often used as a guideline as opposed to an absolute
rule. Most software defines two sets of system requirements: minimum and recommended. With
increasing demand for higher processing power and resources in newer versions of software,
system requirements tend to increase over time. Industry analysts suggest that this trend plays a
biggerpart in driving upgrades to existing computer systems than technological advancements.
The most common set of requirements defined by any operating system or software
application is the physical computer resources, also known as hardware. A hardware
requirements list is often accompanied by a hardware compatibility list (HCL), especially in case
of operating systems. An HCL lists tested, compatibility and sometimes incompatible hardware
devices for a particular operating system or application. The following sub-sections discuss the
various aspects of hardware requirements.
RAM : 1 GB
HARD DISK : 80 GB
Software Requirements deal with defining software resource requirements and pre-
requisites that need to be installed on a computer to provide optimal functioning of an
application. These requirements or pre-requisites are generally not included in the software
installation package and need to be installed separately before the software is installed.
DATABASE : MySQL
CHAPTER 3
DATABASE DESIGN MODULE
3.1 INTRODUCTION TO DATABASE MODEL:
3.1.1
INTRODUCTION TO UML:
UML Design
Constructing
UML models can be directly connected to a variety of programming language
through mapping a model from UML to a programming language like JAVA or C++ or
VB. Forward Engineering and Reverse Engineering is possible through UML.
Documenting
The Deliverables of a project apart from coding are some Artifacts, which are
critical in controlling, measuring and communicating about a system during its
UML Diagram
View Users
View Patients
Manage Queries
Generate Reports
Doctors /Users
Session Logs
Dashboard
Manage
Appointment History
Manage Patient
(Add / Update)
Add patient
History
Search Patient
Update Own
Profile
Change Password
Password Recovery
Signup
Sign in
Dashboard
Book Appointment
Appointment History
View Medical
History
Update Own
Profile
Change Password
Password
Recovery
Class Diagram:
A Class is a category or group of things that has similar attributes and common behavior.
A Rectangle is the icon that represents the class it is divided into three areas. The upper most
area contains the name, the middle; area contains the attributes and the lowest areas show the
operations. Class diagrams provides the representation that developers work from. Class
diagrams help on the analysis side, too.
3.2 ER Diagram
The data in the system has to be stored and retrieved from database. Designing the
database is part of system design. Data elements and data structures to be stored have been
identified at analysis stage. They are structured and put together to design the data storage and
retrieval system.
many users quickly and efficiently. The general objective is to make database access easy, quick,
inexpensive and flexible for the user. Relationships are established between the data items and
unnecessary data items are removed. Normalization is done to get an internal consistency of data
and to have minimum redundancy and maximum stability. This ensures minimizing data storage
required, minimizing chances of data inconsistencies and optimizing for updates. The MS Access
admin table Structure : This table store the login details of admin.
doctors table Structure : This table store the logins and personal details of doctors.
doctorslog table Structure : This table store the doctor login and logout details.
users table Structure : This table store the users login and personal details.
userlog table Structure : This table store the users login and personal details.
appointment table Structure : This table store the users appointment details.
tblmedicalhistory table Structure : This table store the patient medical history .
tblcontactus table Structure : This table store the contact us query details .
CHAPTER
4
DATABASE IMPLIMENTATION
DATATABEL CREATION:
ADMIN TABEL:
In the table create admin use variable “id” which is of integer type and has
a constraint NOT NULL .
It has a variable “user name”of data type variable character (255) and has “NOT
NULL” constraint
It has a another variable “password” of data type variable character and has “NOT
NULL” constraint
It has another variable “updation time” of data type variable character length and
has a “NOT NULL” constraint
APPOINTMENT TABEL :
It has a variable “id” of data type integer and not null constraint
It has a variable “ doctor specialization “of data type variable length character ( if
we not enter any value to it it will take null has default )
It has a variable “ doctor id” of data type integer and has a default value NULL
It has a variable “user id” of data type integer and has a default NULL values
It has a variable “ consultancy fee” of data type integer and has default value NULL
It has variable “appointment date” of data type variable length character and has
default value NULL
It has a variable “appointment time” of data type variable length character and has
default value NULL
It has a variable “posting date “ of data type time stamp and has a default value
NULL and to fetch current time we have current_timestamp( ) function
It has a variable “user status” of data type integer and has default value NULL
It has a variable “doctor status” of data type integer and default value NULL
It has a variable “updation time” of data type time stamp and has a default value NULL
and to current_timestamp( ) function
DOCTOR TABEL:
It has following variable:
It has variable “id” of data type integer and has not null constraint
It has variable “specialization of data type variable length and has default value NULL
It has variable “doctor name” of data type variable length and has default value NULL
It has character variable ”address” of data type longtext and has default value NULL
It has variable “doctor “of data type variable length character and default value to NULL
It has variable “doemail “ of variable length character and has default value NULL
It has variable “password” of variable length character and has default value NULL
It has variable “certain data” and data type timestamp and default value NULL and to
fetch current time we use current_timestamp ( ) function
It has variable “updation data” and data type timestamp and default value NULL and felt
current time we use current time stamp ( ) function.
CHAPTER 5
ANALYSIS
5.1 EXISTING SYSTEM:
Hospitalscurrently use a manual system for the management and maintenance of critical
information. The current system requires numerous paper forms, with data stores spread
throughout the hospital management infrastructure.Often information is incomplete or does not
follow management standards.Forms are often lost in transit between departments requiring a
comprehensive auditing process to ensure that no vital information is lost.Multiple copies of the
same information exist in the hospital and may lead to inconsistencies in data in various data
stores.
This study is carried out to check the economic impact will have on the system
will have on the organization. The amount of fund that the company can pour into
the research and development of the system is limited. The expenditures must be
justified. Thus the developed system as well within the budget and this was
achieved because most of the technologies used are freely available. Only the
customized products have to be purchased.
DEPT OF CSE, Page 2022-
HOSPITAL MANAGEMENT SYSTEM
5.4 SOFTWARE
SPECIFICATION HTML:
HTML or Hypertext Markup Language is the standard markup language used to create web
pages.
HTML is written in the form of HTML elements consisting of tags enclosed in angle
brackets (like <html>). HTML tags most commonly come in pairs like <h1> and </h1>, although
some tags represent empty elements and so are unpaired, for example <img>. The first tag in a
pair is the start tag, and the second tag is the end tag (they are also called opening
tags and closing tags). Though not always necessary, it is best practice to append a slash to tags
which are not paired with a closing tag.
The purpose of a web browser is to read HTML documents and compose them into
visible or audible web pages. The browser does not display the HTML tags, but uses the tags
to interpret the content of the page. HTML describes the structure of a website semantically
along with cues for presentation, making it a markup language rather than a programming
language.
HTML elements form the building blocks of all websites. HTML allows images and
objects to be embedded and can be used to create interactive forms. It provides a means to
create structured documents by denoting structural semantics for text such as headings,
DEPT OF CSE, Page 2022-
HOSPITAL MANAGEMENT SYSTEM
paragraphs, lists, links, quotes and other items. It can embed scripts written in languages such
as JavaScript which affect the behavior of HTML web pages.
MySQL:
The data in MySQL is stored in tables. A table is a collection of related data, and it
consists of columns and rows.Databases are useful when storing information
categorically.
FEATURES OF MySQL:
Security:
A privilege and password system that is very flexible and secure, and that enables host-
based verification.
Password security by encryption of all password traffic when you connect to a server.
Support for up to 64 indexes per table (32 before MySQL 4.1.2). Each index may consist of 1
to 16 columns or parts of columns. The maximum index width is 767 bytes for InnoDB tables,
or 1000 for MyISAM; before MySQL 4.1.2, the limit is 500 bytes. An index may use a prefix
of a column for CHAR, VARCHAR, BLOB, or TEXT column types.
CONNECTIVITY:
Clients can connect to MySQL Server using several protocols:
On Windows systems in the NT family (NT, 2000, XP, 2003, or Vista), clients
can connect using named pipes if the server is started with the --enable-named-
pipe option. In MySQL 4.1 and higher, Windows servers also support shared-memory
connections if started with the --shared-memory option. Clients can connect through
shared memory by using the --protocol=memory option.
On UNIX systems, clients can connect using Unix domain socket files.
LOCALIZATION:
The server can provide error messages to clients in many languages.
All data is saved in the chosen character set.
MySQL includes several client and utility programs. These include both
command- line programs such as mysqldump and mysqladmin, and graphical
programs such as MySQL Workbench.
MySQL Server has built-in support for SQL statements to check, optimize,
and repair tables. These statements are available from the command line
through
the mysqlcheck client. MySQL also includes myisamchk, a very fast command-line
utility for performing these operations on MyISAM tables.
MySQL programs can be invoked with the --help or -? option to obtain online
assistance.
JAVASCRIPT:
JavaScript is the scripting language of the Web. All modern HTML pages are using
JavaScript. A scripting language is a lightweight programming language.JavaScript code can be
inserted into any HTML page, and it can be executed by all types of web browsers. JavaScript is
easy to learn.
pages Example
JAVASCRIPT STATEMENTS:
Semicolon;
Semicolon separates JavaScript statements.
Normally you add a semicolon at the end of each executable statement.
Using semicolons also makes it possible to write many statements on one line.
JAVASCRIPT CODE:
PHP:
WHAT IS PHP?
PHP files can contain text, HTML, CSS, JavaScript, and PHP code
PHP code are executed on the server, and the result is returned to the browser as
plain HTML
PHP files have extension ".php"
With PHP you are not limited to output HTML. You can output images, PDF files, and even
Flash movies. You can also output any text, such as XHTML and XML.
WHY PHP?
CHAPTER 6
IMPLEMENTATION
6. IMPLEMENTATION:
6.1Introduction:
Implementation is the stage of the project when the theoretical design is turned out into a
working system. Thus 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
constraints on implementation, designing of methods to achieve changeover and evaluation of
changeover methods.
CHAPTER 7
RESULTS AND SNAPCHATS
Home Page
Contact Us
Admin Login
Admin Dashboard
Change Password
Add Doctor
Doctor Info
Manage Users
View Patient
Doctor Logs
User Logs
Reports
Patient Search
Doctor Login
User Login
Patient Registration
CHAPTER 8
TESTING
8.1 INTRODUCTION TO SYSTEM TESTING:
The purpose of testing is to discover errors. Testing is the process of trying to discover
every conceivable fault or weakness in a work product. It provides a way to check the
functionality of components, sub assemblies, assemblies and/or a finished product It is the
process of exercising software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in an
unacceptable manner. There are various types of test. Each test type addresses a specific testing
requirement.
TYPES OF TESTING:
Unit testing:
Unit testing involves the design of test cases that validate that the internal program logic
is functioning properly, and that program inputs produce valid outputs. All decision branches and
internal code flow should be validated. It is the testing of individual software units of the
application .it is done after the completion of an individual unit before integration. This is a
structural testing, that relies on knowledge of its construction and is invasive. Unit tests perform
basic tests at component level and test a specific business process, application, and/or system
configuration. Unit tests ensure that each unique path of a business process performs accurately
to the documented specifications and contains clearly defined inputs and expected results.
Integration testing:
Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic
outcome of screens or fields. Integration tests demonstrate that although the components were
individually satisfaction, as shown by successfully unit testing, the combination of components is
correct and consistent. Integration testing is specifically aimed at exposing the problems that
arise from the combination of components.
Functional test:
Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user manuals.
invoked.
System Test:
System testing ensures that the entire integrated software system meets requirements. It tests a
configuration to ensure known and predictable results. An example of system testing is the
configuration oriented system integration test. System testing is based on process descriptions
and flows, emphasizing pre-driven process links and integration points.
Unit Testing:
Unit testing is usually conducted as part of a combined code and unit test phase of the
software lifecycle, although it is not uncommon for coding and unit testing to be conducted as
two distinct phases.
Test objectives
All field entries must work properly.
Pages must be activated from the identified link.
The entry screen, messages and responses must not be delayed.
Features to be tested
Verify that the entries are of the correct format
No duplicate entries should be allowed
All links should take the user to the correct page.
Integration Testing:
Software integration testing is the incremental integration testing of two or more
integrated software components on a single platform to produce failures caused by interface
defects.
The task of the integration test is to check that components or software applications, e.g.
components in a software system or – one step up – software applications at the company level –
interact without error.
Test Results:
All the test cases mentioned above passed successfully. No defects encountered.
Acceptance Testing:
User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional requirements.
Test Results:
All the test cases mentioned above passed successfully. No defects encountered.
CHAPTER 9
CONCLUSION AND FUTURE SCOPE
CONCLUSION:
Since we are entering details of the patients electronically in the” Hospital Management
System”, data will be secured. Using this application we can retrieve patient’s history with a
single click. Thus processing information will be faster. It guarantees accurate maintenance of
Patient details. It easily reduces the book keeping task and thus reduces the human effort and
increases accuracy speed.
FUTURE SCOPE :
We have very good future scope in this project it is a game changing in hospitals students
data in future because with the help of this project patients can book their doctor from home only
without waiting in queue and doctor can also see their medical history to treat patient and for
hospital to manage the queries of patients regarding hospital managemnet
CHAPTER 10
REFERENCES