0% found this document useful (0 votes)
17 views28 pages

Project Report Format Detail

Uploaded by

parmarsudhir26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views28 pages

Project Report Format Detail

Uploaded by

parmarsudhir26
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 28

Hospital Management System

INTRODUCTION

Page 1
Hospital Management System

1. INTRODUCTION:-

The project Hospital Management system includes registration of patients,


storing their details into the system, and also computerized billing in the
pharmacy, and labs. The software has the facility to give a unique id for every
patient and stores the details of every patient and the staff automatically. It
includes a search facility to know the current status of each room. Users can
search the availability of a doctor and the details of a patient using the id.
The Hospital Management System can be entered using a username and
password. It is accessible either by an administrator or receptionist. 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 make
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 designed
for multispeciality hospitals, to cover a wide range of hospital administration
and management processes.
It is an integrated end-to-end Hospital Management System that provides
relevant information across the hospital to support effective decision-making
for patient care, hospital administration, and critical financial accounting, in a
seamless flow. 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.

St. Anthony’s Sr. Sec. School Page 2


Hospital Management System

NEED OF COMPUTERIZATION

2. NEED OF COMPUTERIZATION:-
St. Anthony’s Sr. Sec. School Page 3
Hospital Management System

In this busy world we don’t have the time to wait in infamously long hospital
queues.The problem is, queuing at hospital is often managed manually by
administrative staff,then take a token there and then wait for our turn then ask
for the doctor and the mostfrustrating thing - we went there by traveling a
long distance and then we come to knowthe doctor is on leave or the doctor
can’t take appointments.
HMS will help us overcome all these problems because now patients can
book theirappointments at home, they can check whether the doctor they want
to meet isavailable or not. Doctors can also confirm or decline appointments,
this help bothpatient and the doctor because if the doctor declines’
appointment then patient will know this in advance and patient will visit
hospital only when the doctor confirms’ the appointment this will save time
and money of the patient. Patients can also pay the doctor’s consultant fee
online to save their time.
HMS is essential for all healthcare establishments, be it hospitals, nursing
homes, health clinics, rehabilitation centers, dispensaries, or clinics. The main
goal is to computerize all the details regarding the patient and the hospital.
The installation of this healthcare software results in improvement in
administrative functions and hence better patient care, which is the prime
Focus of any healthcare unit.
HMS provides the ability to manage all the paperwork in one place, reducing
the work of staff in arranging and analyzing the paperwork of the patients.
HMS does many works like:
• Maintain the medical records of the patient
• Maintain the contact details of the patient
• Keep track of the appointment dates
• Save the insurance information for later reference

St. Anthony’s Sr. Sec. School Page 4


Hospital Management System

SOFTWARE AND HARDWARE


REQUIREMENT

3. SOFTWARE AND HARDWARE REQUIREMENT:-

SOFTWARE SPECIFICATION
St. Anthony’s Sr. Sec. School Page 5
Hospital Management System

Operating System : Windows 11/10/8/7


Platform : Python IDLE 3.7/3.8
Database : MySQL
Languages : Python

HARDWARE SPECIFICATION
Processor : Dual core or above
Hard Disk : 40 GB
RAM : 1024 MB
Python:-
Python is a general-purpose, high-level, interpreted, interactive and object-oriented
scripting language. Python is designed to be highly readable. It has fewer syntactical
constructions than other languages.
Characteristics of Python
Following are important characteristics of Python Programming:-
 It supports functional and structured programming methods as well as OOP.
 It can be used as a scripting language or can be compiled to byte- code for
building large applications.
 It provides very high-level dynamic data types and supports dynamic type
checking.
 It supports automatic garbage collection.
 It can be easily integrated with C, C++, COM, ActiveX, CORBA and Java.
Applications of Python
As mentioned before, Python is one of the most widely used languages over the web.
A few of them here:
 Easy-to-learn − Python has few keywords, simple structure, and a clearly
defined syntax. This allows the student to pick up the language quickly.
 Easy-to-read − Python code is more clearly defined and visible to the eyes.
St. Anthony’s Sr. Sec. School Page 6
Hospital Management System

 Easy-to-maintain − Python's source code is fairly easy-to- maintain.


 A broad standard library − Python's bulk of the library is very portable and
cross-platform compatible on UNIX, Windows, and Macintosh.
 Interactive Mode − Python has support for an interactive mode which allows
interactive testing and debugging of snippets of code.
 Portable − Python can run on a wide variety of hardware platforms and has the
same interface on all platforms.
 Extendable − you can add low-level modules to the Python interpreter. These
modules enable programmers to add to or customize their tools to be more
efficient.
 Databases − Python provides interfaces to all major commercial databases.
 GUI Programming − Python supports GUI applications that can be created and
ported to many system calls, libraries and windows systems, such as Windows
MFC, Macintosh, and the X Window system of Unix.
 Scalable − Python provides a better structure and support for large programs
than shell scripting.
It contains so many modules as well as libraries like
1. Python Satndard Library which contains modules like Math, Cmath,
Random, URLlib ,
2. Numpy,
3. SciPyplot,
4. Tkinter
5. Matplotlib.
As well as various data structures like list, queue, stack.

MySQL:
A database is a separate application that stores a collection of data. Each database has
one or more distinct APIs for creating, accessing, managing, searching and replicating
St. Anthony’s Sr. Sec. School Page 7
Hospital Management System

the data it holds. Nowadays, we use relational database management systems


(RDBMS) to store and manage huge volume of data. This is called relational database
because all the data is stored into different tables or relations.
MySQL is the most popular Open Source Relational SQL Database Management
System. MySQL is one of the best RDBMS being used for developing various web-
based software applications. It is a fast, easy-to-use RDBMS being used for many
small and big businesses. MySQL is developed, marketed and supported by MySQL
AB, which is a Swedish company.
MySQL is becoming so popular because of many good reasons −
 MySQL is released under an open-source license.
 MySQL is a very powerful program in its own right. It handles a large subset of
the functionality of the most expensive and powerful database packages.
 MySQL uses a standard form of the well-known SQL data language.
 MySQL works on many operating systems and with many languages including
PHP, PERL, C, C++, JAVA, etc.
 MySQL works very quickly and works well even with large data sets.
 MySQL is very friendly to PHP, the most appreciated language for web
development.
 MySQL supports large databases, up to 50 million rows or more in a table.
 MySQL is customizable. The open-source GPL license allows programmers to
modify the MySQL software to fit their own specific environments.
SQL stands for Structured Query Language SQL is a database computer language
designed for the retrieval and management of data in a relational database and has
clearly established itself as a standard relational database language. SQL is divided
into Data Definition Language (DDL), Data Manipulation Language (DML), and
Transaction Control Language (TCL).

St. Anthony’s Sr. Sec. School Page 8


Hospital Management System

ADVANTAGES

4. ADVANTAGES OF THE PROJECT:-

HMS was introduced to solve the complications coming from managing all

the paper works of every patient associated with the various departments of

St. Anthony’s Sr. Sec. School Page 9


Hospital Management System

hospitalization with confidentiality. HMS provides the ability to manage all

the paperwork in one place, reducing the work of staff in arranging and

analysing the paperwork of the patients.

The advantages of HMS can be pinpointed to the following:

 Time-saving Technology

 Improved Efficiency by avoiding human errors

 Reduces scope for Error

 Data security and correct data retrieval made possible

 Cost effective and easily manageable

 Easy access to patient data with correct patient history

 Improved patient care made possible

 Easy monitoring of supplies in inventory

 Reduces the work of documentation

 Better Audit controls and policy compliance.

St. Anthony’s Sr. Sec. School Page 10


Hospital Management System

LIMITATIONS

5. LIMITATIONS OF THE PROJECT:-

HMS was introduced to solve the complications coming from managing all

the paper works of every patient associated with the various departments of

St. Anthony’s Sr. Sec. School Page 11


Hospital Management System

hospitalization with confidentiality. HMS provides the ability to manage all

the paperwork in one place, reducing the work of staff in arranging and

analysing the paperwork of the patients.

The advantages of HMS can be pinpointed to the following:

 Time-saving Technology

 Improved Efficiency by avoiding human errors

 Reduces scope for Error

 Data security and correct data retrieval made possible

 Cost effective and easily manageable

 Easy access to patient data with correct patient history

 Improved patient care made possible

 Easy monitoring of supplies in inventory

 Reduces the work of documentation

 Better Audit controls and policy compliance.

St. Anthony’s Sr. Sec. School Page 12


Hospital Management System

SOURCE CODE

6. SOURCE CODE OF THE PROJECT:-

(Your Entire Source code here –

Font style: Times New Roman

St. Anthony’s Sr. Sec. School Page 13


Hospital Management System

Size: 12)--- It will take many pages… Copy entire code here

while (True):
print("""
================================
Welcome To CityHospital
================================
""")
# creating database connectivity
import mysql.connector
passwd = str(input("Enter the Password Please!!:"))

mysql = mysql.connector.connect(
host="localhost", user="root", passwd=passwd)
mycursor = mysql.cursor()
mycursor.execute("create database if not exists city_hospitals")
mycursor.execute("use city_hospitals")
# creating the tables we need
mycursor.execute(
"create table if not exists patient_detail(name varchar(30) primary key,sex
varchar(15),age int(3),address varchar(50),contact varchar(15))")
mycursor.execute("create table if not exists doctor_details(name varchar(30) primary
key,specialisation varchar(40),age int(2),address varchar(30),contact varchar(15),fees
int(10),monthly_salary int(10))")
mycursor.execute(
"create table if not exists nurse_details(name varchar(30) primary key,age int(2),address
varchar(30),contact varchar(15),monthly_salary int(10))")
mycursor.execute(
"create table if not exists other_workers_details(name varchar(30) primary key,age
int(2),address varchar(30),contact varchar(15),monthly_salary int(10))")

# creating table for storing the username and password of the user
mycursor.execute(
"create table if not exists user_data(username varchar(30) primary key,password
varchar(30) default'000')")

while (True):
print("""
1. Sign In
2. Registration
""")

r = int(input("enter your choice:"))


if r == 2:

St. Anthony’s Sr. Sec. School Page 14


Hospital Management System

print("""

=======================================
!!!!!!!!!!Register Yourself!!!!!!!!
=======================================
""")
u = input("Input your username!!:")
p = input("Input the password (Password must be strong!!!:")
mycursor.execute(
"insert into user_data values('" + u + "','" + p + "')")
mysql.commit()

print("""
============================================
!!Well Done!!Registration Done Successfully!!
============================================
""")
x = input("enter any key to continue:")
# IF USER WANTS TO LOGIN
elif r == 1:
print("""
==================================
!!!!!!!! {{Sign In}} !!!!!!!!!!
==================================
""")
un = input("Enter Username!!:")
ps = input("Enter Password!!:")

mycursor.execute(
"select password from user_data where username='" + un + "'")
row = mycursor.fetchall()
for i in row:
a = list(i)
if a[0] == str(ps):
while (True):
print("""
1.Administration
2.Patient(Details)
3.Sign Out

""")

a = int(input("ENTER YOUR CHOICE:"))


if a == 1:
print("""
St. Anthony’s Sr. Sec. School Page 15
Hospital Management System

1. Display the details


2. Add a new member
3. Delete a member
4. Make an exit
""")
b = int(input("Enter your Choice:"))
# details
if b == 1:
print("""
1. Doctors Details
2. Nurse Details
3. Others
""")

c = int(input("Enter your Choice:"))


if c == 1:
mycursor.execute(
"select * from doctor_details")
row = mycursor.fetchall()
for i in row:
b=0
v = list(i)
k = ["NAME", "SPECIALISATION", "AGE", "ADDRESS",
"CONTACT", "FEES",
"MONTHLY_SALARY"]
d = dict(zip(k, v))
print(d)
# displays nurses details
elif c == 2:
mycursor.execute(
"select * from nurse_details")
row = mycursor.fetchall()
for i in row:
v = list(i)
k = ["NAME", "SPECIALISATION", "AGE",
"ADDRESS", "CONTACT", "MONTHLY_SALARY"]
d = dict(zip(k, v))
print(d)
# displays worker details
elif c == 3:
mycursor.execute(
"select * from other_workers_details")
row = mycursor.fetchall()
for i in row:
v = list(i)
St. Anthony’s Sr. Sec. School Page 16
Hospital Management System

k = ["NAME", "SPECIALISATION", "AGE",


"ADDRESS", "CONTACT""MONTHLY_SALARY"]
d = dict(zip(k, v))
print(d)
# IF USER WANTS TO ENTER DETAILS
elif b == 2:
print("""

1. Doctor Details
2. Nurse Details
3. Others
""")
c = int(input("ENTER YOUR CHOICE:"))
# enter doctor details
if c == 1:
# ASKING THE DETAILS
name = input("Enter the doctor's name")
spe = input("Enter the specilization:")
age = input("Enter the age:")
add = input("Enter the address:")
cont = input("Enter Contact Details:")
fees = input("Enter the fees:")
ms = input("Enter Monthly Salary:")
# Inserting values in doctors details
mycursor.execute("insert into doctor_details values('" + name + "','" +
spe +
"','" + age + "','" + add + "','" + cont + "','" + fees + "','" + ms
+ "')")
mysql.commit()
print("SUCCESSFULLY ADDED")
# for nurse details
elif c == 2:
# ASKING THE DETAILS
name = input("Enter Nurse name:")
age = input("Enter age:")
add = input("Enter address:")
cont = input("Enter Contact No:")
ms = int(input("Enter Monthly Salary"))
# INSERTING VALUES ENTERED TO THE TABLE
mycursor.execute("insert into nurse_details values('" + name + "','" +
age + "','" + add + "','" + cont + "','" + str(
ms) + "')")
mysql.commit()
print("SUCCESSFULLY ADDED")
# for entering workers details
St. Anthony’s Sr. Sec. School Page 17
Hospital Management System

elif c == 3:
# ASKING THE DETAILS
name = input("Enter worker name:")
age = input("Enter age:")
add = input("Enter address:")
cont = input("Enter Contact No.:")
ms = input("Enter Monthly Salary:")
# INSERTING VALUES ENTERED TO THE TABLE
mycursor.execute("insert into other_workers_details values('" +
name + "','" + age + "','" + add + "','" + cont + "','" + ms +
"')")
mysql.commit()
print("SUCCESSFULLY ADDED")
# to delete data
elif b == 3:
print("""
1. Doctor Details
2. Nurse Details
3. Others
""")
c = int(input("Enter your Choice:"))
# deleting doctor's details
if c == 1:
name = input("Enter Doctor's Name:")
mycursor.execute(
"select * from doctor_details where name='" + name + "'")
row = mycursor.fetchall()
print(row)
p = input(
"you really wanna delete this data? (y/n):")
if p == "y":
mycursor.execute(
"delete from doctor_details where name='" + name + "'")
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")

# deleting nurse details


elif c == 2:
name = input("Enter Nurse Name:")
mycursor.execute(
"select * from nurse_details where name='" + name + "'")
row = mycursor.fetchall()
print(row)
St. Anthony’s Sr. Sec. School Page 18
Hospital Management System

p = input(
"you really wanna delete this data? (y/n):")
if p == "y":
mycursor.execute(
"delete from nurse_details where name='" + name + "'")
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
# deleting other_workers details
elif c == 3:
name = input("Enter the worker Name")
mycursor.execute(
"select * from workers_details where name='" + name + "'")
row = mycursor.fetchall()
print(row)
p = input(
"you really wanna delete this data? (y/n):")
if p == "y":
mycursor.execute(
"delete from other_workers_details where name='" + name + "'")
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
elif b == 4:
break

# entering the patient details table


elif a == 2:

print("""
1. Show Patients Info
2. Add New Patient
3. Discharge Summary
4. Exit
""")
b = int(input("Enter your Choice:"))
# showing the existing details
# if user wants to see the details of PATIENT
if b == 1:
mycursor.execute(
"select * from patient_detail")
row = mycursor.fetchall()
for i in row:
St. Anthony’s Sr. Sec. School Page 19
Hospital Management System

b=0
v = list(i)
k = ["NAME", "SEX", "AGE",
"ADDRESS", "CONTACT"]
d = dict(zip(k, v))
print(d)

# adding new patient


elif b == 2:
name = input("Enter your name ")
sex = input("Enter the gender: ")
age = input("Enter age: ")
address = input("Enter address: ")
contact = input("Contact Details: ")
mycursor.execute("insert into patient_detail values('" + name + "','" +
sex + "','" +
age + "','" + address + "','" + contact + "')")
mysql.commit()
mycursor.execute(
"select * from patient_detail")
for i in mycursor:
v = list(i)
k = ['NAME', 'SEX', 'AGE',
'ADDRESS', 'CONTACT']
print(dict(zip(k, v)))
print("""
====================================
!!!!!!!Registered Successfully!!!!!!
====================================
""")
# dischare process
elif b == 3:
name = input("Enter the Patient Name:")
mycursor.execute(
"select * from patient_detail where name='" + name + "'")
row = mycursor.fetchall()
print(row)
bill = input(
"Has he paid all the bills? (y/n):")
if bill == "y":
mycursor.execute(
"delete from patient_detail where name='" + name + "'")
mysql.commit()
# if user wants to exit
elif b == 4:
St. Anthony’s Sr. Sec. School Page 20
Hospital Management System

break
# SIGN OUT

elif a == 3:
break

# IF THE USERNAME AND PASSWORD IS NOT IN THE DATABASE


else:
break

St. Anthony’s Sr. Sec. School Page 21


Hospital Management System

CONCLUSION

7. CONCLUSION:-

Hospital management system is all about the modernizing a hospital through use of

technology. Computers helps in it and take over the manual system for quick and

easy functioning. This hospital management system is a quite the reliable and is

proven on many stages. All the basic requirements of the hospital are provided in

the hospital in order to manage it perfectly and large amount of data can also be

stored . It gives many facilities like searching for the detail of patient , billing

St. Anthony’s Sr. Sec. School Page 22


Hospital Management System

facilities as well as the creation of test reports. So it;s a important system for

modern day.s

St. Anthony’s Sr. Sec. School Page 23


Hospital Management System

FUTURE ENHANCEMENT

8. FUTURE ENHANCEMENT OF THE PROJECT:-

The process of gathering information, diagnosing the problems, then interpreting facts
is known as System analysis. It also includes recommending system improvements
needed, based on the same data. The system is observed as a whole; the inputs need to
be identified firstly before turning them and then the system is subjected to study as a
whole to identify the problem areas. Although tunings any system as a whole is a
complex procedure, but tuning individual statements is not the best as something that
is correct for one input may hurt another inputs performance.
The solutions are given as a proposal. The suggestion is revised on user request and
optimal changes are made. This loop terminates as soon as the user is gratified with the

St. Anthony’s Sr. Sec. School Page 24


Hospital Management System

proposal. So on the whole, system analysis is done to improve the system performance
by monitoring it and obtaining the best throughput possible from it. Therefore system
analysis plays a crucial role in designing any system.

9. BIBLIOGRAPHY:-

 Computer Science with Python - Sumita Arora

 Informatics Practices with Python - Preeti Arora

 https://dev.mysql.com

 https://www.tutorialspoint.com/mysql/mysql-introduction.htm

St. Anthony’s Sr. Sec. School Page 25


Hospital Management System

St. Anthony’s Sr. Sec. School Page 26


Hospital Management System

APPENDICES

10. APPENDICES:-

DATABASE:-

(Screenshot of your MySQL database here. Can take as many pages


as you want)

OUTPUT:-
St. Anthony’s Sr. Sec. School Page 27
Hospital Management System

(Screenshot of your Output here . Can take as many pages as you


want)

St. Anthony’s Sr. Sec. School Page 28

You might also like