??????? ???????? ????????? ????
??????? ???????? ????????? ????
public school
Sec. 8, JankipuramExtension, Lucknow
SESSION: 2023-2024
TOPIC: HOSPITAL MANAGEMENT SYSTEM
SUBMITTED BY: SUBMITTED TO:
Mr. Sumit Arora
CLASS: XII
ROLL NO.:
CERTIFICATE
This is to certify that of class: XII
of Maharaja Agrasen Public School has done
his project on HOSPITAL MANAGEMENT
SYSTEM under my supervision. He has taken
interest and has shown at most sincerity in
completion of this project.
I certify this project up to my expectation &
as per guidelines issued by CBSE, NEW DELHI.
1 Project Title
2 Certificate
3 Acknowledgement
4 Hardware and Software Required
Hospital & Hospital Management
5
System
Need of Hospital Management
6
System
7 Introduction
8 Existing System
Advantages of Hospital
9
Management System
10 Module List
11 Python Program Code
12 Output Screens
HARDWARE AND SOFTWARE REQUIRED
HARDWARE
1. X86 64-bit Intel/AMD CPU
2. 2 GB RAM
3. 5 GB free disk space
SOFTWARE
• Python 3.8.x or above
• MySQL Server
• Python Connector
HOSPITAL
A hospital is a health care institution providing patient
treatment with specialized staff and equipment. Hospital are
usually funded by public sector by health organizations (for
profit or non-profit), by health insurance companies, or by
departments (e.g., surgery, and urgent care etc.).
1. Lack of privacy
2. Risk in the management of the data.
3. Less security
4. Less user-friendly
5. Accuracy nor guaranteed
6. Not in reach of distant users.
7. There is no storage and automation if users
have some enquiry.
ADVANTAGES OF HMS
➢ Less paperwork
➢ Costs Reduction
➢ Improves patient’s experience
➢ Improve data security
➢ Better collaboration & Communication
➢ Analytic anytime anywhere
MODULE LIST
➢ ADMINISTRATION
• SHOW DETAILS
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
• ADD NEW MEMBER
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
• DELETE EXISTING ONE
1. DOCTOR DETAILS
2. PATIENT DETAILS
3. OTHER WORKERS
• EXIT
=======================================
!!!!!!!PLEASE REGISTER YOURSELF!!!!!!!!
=======================================
""")
u = input("Enter your preferred Username: ")
p = input("Enter your preferred Password: ")
# ENTERING THE ENTERED VALUE TO THE USER_DATA TABLE
my_cursor.execute("insert into user_data values('" + u + "','" + p + "')")
mysql.commit()
print("""
=======================================
!!!!!!!!REGISTERED SUCCESSFULLY!!!!!!!!
=======================================
""")
x = input("Enter any key to Continue: ")
# IF USER WANTS TO LOG-IN
elif r == 1:
print("""
==================================
!!!!!!!!!!!!!!SIGN IN!!!!!!!!!!!!!
==================================
""")
un = input("Enter your Username: ")
ps = input("Enter your Password: ")
""")
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
c = int(input("Enter your Choice: "))
# FOR ENTERING DETAILS OF DOCTORS
if c == 1:
# ASKING THE DETAILS
name = input("ENTER DR. NAME:")
spe = input("ENTER SPECIALISATION:")
age = input("ENTER AGE:")
add = input("ENTER ADDRESS:")
cont = input("ENTER CONTACT NO.:")
fees = input("ENTER FEES:")
ms = input("ENTER MONTHLY SALARY:")
# INSERTING VALUES ENTERED INTO THE DOCTORS_TABLE
my_cursor.execute(
"insert into doctor_details values('" + name + "','" + spe +
"','" + age "'" + add + "','" + cont + "','" + fees + "','" + ms + "')")
mysql.commit()
print("SUCCESSFULLY ADDED")
# for entering 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
my_cursor.execute(
"insert into nurse_details values('" + name + "','" + age + "','"
+ add + "','"
+ cont + "','" + str(ms) + "')")
mysql.commit()
print("SUCCESSFULLY ADDED")
# for entering workers details
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
my_cursor.execute(
"insert into other_workers_details values('" + name + "','" +
age + "','" + add + "','" + cont + "','" + ms + "')")
mysql.commit()
print("SUCCESSFULLY ADDED")
# If user wants to delete data
elif b == 3:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
c = int(input("ENTER YOUR CHOICE:"))
# deleting doctor's details
if c == 1:
name = input("ENTER DOCTOR'S NAME:")
my_cursor.execute("select * from doctor_details where
name=='" + name + "'")
row = my_cursor.fetchall()
print(row)
p = input("you really wanna delete this data? (y/n):")
if p == "y":
my_cursor.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: ")
my_cursor.execute("select * nurse_details where name=='" +
name + "'")
row = my_cursor.fetchall()
print(row)
p = input("D you really wanna delete this data? (Y/N): ")
if p == "y" or p == "Y":
my_cursor.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: ")
my_cursor.execute("select * from workers_details where
name=='" + name + "'")
row = my_cursor.fetchall()
print(row)
p = input("Do you really wanna delete this data? (Y/N): ")
if p == "y" or p == "Y":
my_cursor.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 PATIENT DETAILS
2. ADD NEW PATIENT
3. DISCHARGE PATIENT
4. EXIT
""")
b = int(input("ENTER YOUR CHOICE:"))
# Showing the existing details
# if user wants to see the details of PATIENT
if b == 1:
my_cursor.execute("select * from patient_details")
row = my_cursor.fetchall()
for i4 in row:
b=0
v = list(i4)
k = ["PATIENT ID", "NAME", "AGE", "ADDRESS", "DOCTOR
RECOMMENDED"]
d = dict(zip(k, v))
print(d)