Project Report Format Detail
Project Report Format Detail
INTRODUCTION
Page 1
Hospital Management System
1. INTRODUCTION:-
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
SOFTWARE SPECIFICATION
St. Anthony’s Sr. Sec. School Page 5
Hospital Management System
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
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
ADVANTAGES
HMS was introduced to solve the complications coming from managing all
the paper works of every patient associated with the various departments of
the paperwork in one place, reducing the work of staff in arranging and
Time-saving Technology
LIMITATIONS
HMS was introduced to solve the complications coming from managing all
the paper works of every patient associated with the various departments of
the paperwork in one place, reducing the work of staff in arranging and
Time-saving Technology
SOURCE CODE
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
""")
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
""")
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")
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
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)
break
# SIGN OUT
elif a == 3:
break
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
facilities as well as the creation of test reports. So it;s a important system for
modern day.s
FUTURE ENHANCEMENT
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
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:-
https://dev.mysql.com
https://www.tutorialspoint.com/mysql/mysql-introduction.htm
APPENDICES
10. APPENDICES:-
DATABASE:-
OUTPUT:-
St. Anthony’s Sr. Sec. School Page 27
Hospital Management System