Hospital Management
Hospital Management
Hospital Management
BACHELOR OF ENGINEERING
in
Computer Science & Engineering
Submitted By
Neha C G 1VA21CS037
Dr. Varun E
Associate Professor
2023-2024
SAI VIDYA INSTITUTE OF TECHNOLOGY
(Approved by AICTE, New Delhi, Affiliated to VTU, Recognized by Govt. of Karnataka.
Accredited by NBA, New Delhi (CSE, ECE, ISE, MECH & CIVIL), NAAC – “A” Grade
Rajanukunte, Bengaluru- 560 064
CERTIFICATE
This is to Certify that the DBMS Mini-Project(21CSL55) work entitled “HOSPITAL
MANAGEMENY SYSTEM” carried out by Ms. Neha C G (1VA21CS037), a bonafide students
of SAI VIDYA INSTITUTE OF TECHNOLOGY, Bengaluru, in partial fulfillment for
the award of Bachelor of Engineering in Department of Computer Science & Engineering of
VISVESVARAYA TECHNOLOGICAL UNIVERSITY, Belagavi during the year 2023-
24. It is certified that all corrections/suggestions indicated for Internal Assessment have
been incorporated in the report. The Mini-Project report has been approved as it satisfies the
academic requirements in respect of DBMS Mini-Project work prescribed for the said
Degree.
External Viva
ACKNOWLEDGEMENT I
ABSTRACT II
LIST OF TABLES IV
1 INTRODUCTION 1
3 DATABASE DESIGN 6
4 IMPLEMENTATION 9
6 CONCLUSION 24
7 REFRENCES 26
ACKNOWLEDGEMENT
The completion of project brings with and sense of satisfaction, but it is never
completed without thanking the persons who are all responsible for its successful
completion. First and foremost, I wish to express our deep sincere feelings of gratitude to
my Institution, Sai Vidya Institute of Technology, for providing me an opportunity to do
our education.
I would like to thank the Management and Prof. M R Holla, Director, Sai Vidya
Institute of Technology for providing the facilities.
Finally, I would like to thank all the Teaching, Technical faculty and supporting
staff members of Department of Computer Science & Engineering, Sai Vidya Institute of
Technology, Bengaluru, for their support.
Neha C G 1VA21CS037
II
ABSTRACT
III
LIST OF FIGURES
IV
LIST OF TABLES
V
HOSPITAL MANAGEMENT
Chapter 1
INTRODUCTION
The data is scattered across multiple transactional systems, so we have to extract it from those
systems, transform it into a standardized format and finally load it into a central repository called a
data warehouse. The data has to be reorganized so that it is presented to the users in an understandable
way.
“The database Management System” is a system that manages databases and organizes the data, so
that it can be easily retrieved by the users. This system can be used to manage transactional databases,
such as HR systems, banking systems, hospital systems and so on. This project is typically optimized
for performing transactions and it provides discrete pieces of information for the users.
The database management system organizes the files to give user more control over their data. The
system makes it possible for users to create, edit and update data in database files. Once created, the
system makes it possible to store and retrieve data from those database files. It provides functions
such as concurrency, security, backup, integrity and data description. It also provides reliability.
Database administrators are responsible for creating backups of databases, controlling access and, in
general, making sure it works the way it was intended.
The system provides automated methods to create, store and retrieve data and also can make tedious
manual tasks a thing of the past. A data base system reduces data redundancy and inconsistency. It
allows for concurrent access by multiple users, each with their own specific role. Some users only
need to view the data, some contribute to adding new data, while others design and manages the
database- all at the same time.
Chapter 2
As previously mentioned there are many software that will be part of this project and all of
them are required for development.
2.2.1.1 MySQL
It is an open source Relational Database Management System (RDBMS) that is under the
GNU GPL and is one of the most widely used. It also allows to scale the project without much
overhead. It also has many features such as high availability, query caching, cross platform support
and security make it a good candidate for deployment. We will be using MySQL version 5.7.14 which
is the latest version.
2.2.1.2 HTML
HTML is a markup language used for structuring and presenting content on the World Wide
Web.HTML includes detailed processing models.HTML5 would be used to design front-end.
Server : Apache.
2.2.2Hardware Requirements
Most of the current computer have enough specification to implement a database. But we need
to mention some minimal requirement. These would be the minimum specifications to run the DBMS
project. Use cases that describe interactions the users will have with the software.
A basic fast processor is essential for efficient handling of load during server time and
development time. A processor with minimum 2 cores can handle the workload. Minimum
requirement processor is a Pentium 4(P4). Recommended processor is one with 4 cores like core i5
Sandy Bridge with larger L3 cache.
The RAM memory will be needed to efficiently run the server and the front end, hence at least 2GB of
DDR3 RAM would be necessary.
Python require 100MB of disk space. MySQL requires 1.3GB for Enterprise running. So in
total a minimum of 2GB disk space is required.
Intel I3 or Above
2GB RAM
Chapter 3
DATABASE DESIGN
3.1 E-R Diagram
ER diagram should have mainly 3 components namely, entity, attribute, relationship. The
following notations can be used for drawing an ER diagram.
Figure 3.2 shows the sample ER diagram which consists of Two entities Doctors, patient, tests related
by the relations treats, log. Each entity consists of attributes.
The relational schema diagram gives the relation of one entity with another as well as the
information about the key constraints. The below figure is a sample relational schema diagram in
which the attributes that are underlined are the primary key and the arrow line is used to represent the
mapping.
In figure 3.3. The Name in Doctor is the primary key , Type is primary key of Patient, Type is
primary key of Tests
Chapter 4
IMPLEMENTATIONS
4.1 RDBMS Tables and their Description
Below table shows the list of tables used in implementation of the database management system.
Sample tables:
tbl_user (login):
This table is used to authenticate the user who is logging into the system. Attribute’s and their
description of this table is:
Doctors:
This table holds the Doctor details who are working in the Hospital Attribute’s and their description of
this table is:
Patients:
This table holds the information about the Patients and their appointments in the hospital. Attribute’s
and their description of this table is:
Test:
This table holds the information about the tests to be done or been done by the patients. Attribute’s
and their description of this table is:
Trigger:
Table that holds the information about the Trigger. Attribute’s and their description of this table is:
User:
Table that holds the information about the User using HMS. Attribute’s and their description of this
table is:
Sample procedure:
START TRANSACTION;
--
-- --------------------------------------------------------
--
--
--
INSERT INTO `patients` (`pid`, `email`, `name`, `gender`, `slot`, `disease`, `time`, `date`, `dept`, `number`)
VALUES
(2, '[email protected]', 'anees1 rehman khan', 'Male1', 'evening1', 'cold1', '21:20:00', '2020-02-02',
'ortho11predict', '9874561110'),
--
-- Triggers `patients`
--
DELIMITER $$
CREATE TRIGGER `PatientDelete` BEFORE DELETE ON `patients` FOR EACH ROW INSERT INTO trigr
VALUES(null,OLD.pid,OLD.email,OLD.name,'PATIENT DELETED',NOW())
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `PatientUpdate` AFTER UPDATE ON `patients` FOR EACH ROW INSERT INTO trigr
VALUES(null,NEW.pid,NEW.email,NEW.name,'PATIENT UPDATED',NOW())
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `patientinsertion` AFTER INSERT ON `patients` FOR EACH ROW INSERT INTO trigr
VALUES(null,NEW.pid,NEW.email,NEW.name,'PATIENT INSERTED',NOW())
$$
DELIMITER ;
<html>
<body>
<?ph
echo “this is first print\n”;
$aa=mysql_connect(“localhost”,”apache”,”lamp”);
$bb=mysql_select_db(“HMS”);
$cc=”select * from Patients”;
$dd=mysql_query($cc);
While($res=mysql_fetch_row($dd))
{
Echo “$res[0] $res[1] $res[2]”;
}
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-
TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin="anonymous">
{% block css %}
{% endblock css %}
<title>
{% block title %}
{% endblock title %}
</title>
</head>
<body>
<span class="navbar-toggler-icon"></span>
</button>
</li>
{% if current_user.usertype=="Doctor" %}
<li class="nav-item">
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
{% else %}
<li class="nav-item">
</li>
<li class="nav-item">
</li>
{% endif %}
{% if current_user.is_authenticated %}
Welcome {{current_user.username}}
</a>
</div>
</li>
{% else %}
Authentication
</a>
</div>
</li>
{% endif %}
</ul>
</form>
</div>
</nav>
{% block body %}
{% endblock body %}
<div class="card-body">
<h5 class="card-title">Aneeqah</h5>
<h5 class="card-title">Astha</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the
card's content.</p>
</div>
</div>
</body>
</html>
Sample Query:
FROM doctors;
SELECT pid, email, name, gender, slot, disease, time, date, dept, number
FROM patients;
Chapter 5
RESULTS
5.1 Output 1
5.2 Output 2
Booking details:
5.3 Output 3
Chapter 6
In this mini project we have studied database management system and presented a database
application with the help of that study. We have learnt a lot about the entities and relation during this
progression. The necessity of reducing the redundancy also became clear. The fact that introduction of
the database management has reduced the manual work that can’t be denied. It has helped us in
understanding the overall architecture of the database and its working.
1. Integration with IoT Devices: Integrating the system with Internet of Things (IoT) devices
can enable real-time monitoring of patient vital signs, medication adherence, and equipment status.
This integration can facilitate proactive interventions and automate data collection, leading to better
patient outcomes.
2. Predictive Analytics and Machine Learning: Incorporating predictive analytics and
machine learning algorithms can help identify patterns and trends in patient data, aiding in early
disease detection, personalized treatment plans, and resource allocation optimization.
3. Enhanced Data Security Measures: Continuously updating and strengthening data security
measures to safeguard sensitive patient information from cyber threats, such as encryption, access
controls, and regular security audits.
4. Telemedicine Integration: Integrating telemedicine functionalities into the system can
enable remote consultations, follow-ups, and monitoring, expanding access to healthcare services and
improving patient engagement.
5. Interoperability with External Systems: Enhancing interoperability with external systems,
such as electronic health record (EHR) systems and public health databases, to facilitate seamless data
exchange and collaboration among healthcare providers, leading to better continuity of care.
6. Mobile Application Development: Developing mobile applications for patients and
healthcare providers to access medical records, schedule appointments, receive alerts, and
communicate with healthcare teams, enhancing convenience and patient engagement.
7. Advanced Reporting and Visualization Tools: Implementing advanced reporting and
visualization tools to generate comprehensive analytics reports, dashboards, and data visualizations,
enabling stakeholders to gain insights and make data-driven decisions more effectively.
REFERENCES
[1] Elmasri, Nawathe, Fundamentals of Database Systems, Pearson Education, 5 th Edition, 2006,
ISBN- 978-81-317-1625-0.
[2] Raghu Ramakrishnan and Johannes Gehrke, Database Management Systems, Tata McGraw-Hill,
3rd Edition, 2003, ISBN- 0-07-123151-X.
[3] Silberschatz, Korth and Sudarshan, Database System Concepts, Tata McGraw-Hill, 5 th Edition,
2002, ISBN- 007-124476-X.
[4] H.P. Mooney, J.W. Evans, ‘A complete relational DBMS for an EMS product’, IEEE Transactions
on Power Systems, Volume: 3, Issue: 1, Feb 1988.
[5] Andreas Lubcke , Martin Schaler , Veit Koppen , Gunter Saake, ‘Relational on demand data
management for IT-services’ ,2014 IEEE Eighth International Conference on research Challenges
in Information Science (RCIS), 28-30 May 2014.