0% found this document useful (0 votes)
46 views

CS Ip

This document appears to be a certificate and report for a school project on developing a hospital management system. It includes sections on the introduction, hardware and software requirements, existing systems, proposed system modules, and program details. The project was completed by three students, S. Kasturi Rangan, P. Shojith, and G. Tamil Arasan for their class XII computer science project under the guidance of their teacher, Mrs. Ajitha.

Uploaded by

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

CS Ip

This document appears to be a certificate and report for a school project on developing a hospital management system. It includes sections on the introduction, hardware and software requirements, existing systems, proposed system modules, and program details. The project was completed by three students, S. Kasturi Rangan, P. Shojith, and G. Tamil Arasan for their class XII computer science project under the guidance of their teacher, Mrs. Ajitha.

Uploaded by

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

KENDRIYA VIDYALAYA

IIT CHENNAI

TOPIC: HOSPITAL MANAGMENT

NAME: S. KASTURI RANGAN ,


P.SHOJITH ,
G.TAMIL ARASAN
CLASS: XII-B
SUBJECT: COMPUTER SCIENCE
CERTIFICATE

This is to certify that Kasturi Rangan of class


XII-B has successfully completed the
investigatory project on the topic “HOSPITAL
MANAGEMENT” under the guidance of Mrs
Ajitha (PGT Computer science), during the
academic year 2023-2022

INTERNAL EXAMINER EXTERNAL EXAMINER

SIGN OF PRINCIPAL
DATE:
ACKNOWLEDGEMENT

I would like to express my special thanks of gratitude to my


Computer science teacher Mrs ajitha mam as well as our principal
Rd. M. Manickasamy who gave me the golden opportunity to do this
wonderful investigatory project on the topic

"Hospital Management" which also helped me doing a lot of research


and I came to know about so many new things. I am really thankful
to them.

Secondly, I would also like to thank my parents and friends who


helped me a lot in finishing this project within the limited time.

I sincerely thank each and every one who supported me and helped
me with their valuable suggestions and guidance.
INDEX
S.NO TOPICS PG.NO
TOPICS
1

8
INTRODUCATION
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 and the staff automatically. It includes a
search facility to know the current status of each room.

User can search 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 makes the data processing very fast. The
purpose of the project entitled as “HOSPITALMANAGEMENT
SYSTEM” is to computerize the Front Office Management of
Hospital to develop software which is user friendly, simple, fast,
and cost-effective.

It deals with the collection of patient’s information, diagnosis


details, etc., and also to manipulate these details meaningfully
System input contains patient details, diagnosis details; while
system output is to get these details on to the screen.
HARDWARE AND SOFTWARE
R REQUIRED

HARDWARE
• PC
• MOBILE PHONE

SOFTWARE
• PYTHON (latest version)
• MYSQL
• PYTHON CONNECTOR
HOSPITAL MANAGEMENT SYSTEM

A hospital management system is an information system that


manages the aspects of a hospital. This may include the
administrative, financial, and medical processing. 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. This program can look
after Inpatients, OPD patients, records, database treatment, status
illness, billing etc. it also maintains their hospital info such as ward
id, Doctor in charge, Department administering etc.

NEED OF HMS :
1. Minimized documentation and no duplication of records.
2. Reduced paper work.
3. Improved patient care
4. Better Administration Control
5. Faster information flow between various departments
6. Smart Revenue Management
7. Effective billing of various services
8. Exact stock information
EXISTING SYSTEM
In today’s world if someone wants to book a Doctor’s Appointment
we need to call in clinic or personally go to that place and book the
appointment. This consumes precious time of the patient. Also if the
doctor cancels his /her schedule, the patient does not come to know
about it unless he/she goes to the clinic.

DISADVANTAGES OF EXISTING SYSTEM


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
1.Less paperwork

2.Costs Reduction

3.Improves patient’s experience

4.Improve data security

5.Better collaboration & Communication

6.Analytic anytime anywhere


MODULE LIST
ADMIN
• ADD PATIENTS
• ADD STAFF
• VIEW PATIENTS RECORD
• VIEW STAFF RECORD
• CHANGE PASSWORD
• REMOVE PATIENTS
• REMOVE STAFF
• UPDATE PATIENT
• UPDATE STAFF INFORMATION
• ADD DOCTOR
• REMOVE DOCTOR
• CHECK DOCTOR JOB STATUS

PATIENT

• BOOK APPOINTMENT
• FIND DOCTOR
• VIEW DOCTOR PROFILE

DOCTER

• LOGIN
• APPLY JOB
• VIEW APPOINTMENT
PROGRAM
##PRINTING WELCOME NOTE

while(True):

print("""

================================

WELCOME TO MYHOSPITAL

================================

""")

##creating database connectivity

import mysql.connector

passwd=str(input("ENTER THE DATABASE PASSWORD;"))

mysql=mysql.connector.connect(host="localhost",user="root",passw
d="admin")

mycursor=mysql.cursor()

#creating database

mycursor.execute("create database if not exists my_hospitals")

mycursor.execute("use my_hospitals")

#creating the tables we need


mycursor.execute("create table if not exists patient_details(puid
int(10) primary key,name varchar(30) not null,age int(3),address
varchar(50),doctor_recommended varchar(30))")

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))")

#login or signup option

#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')")

#printing option

while(True):

print("""

1. SIGN IN (LOGIN)

2. SIGN UP (REGISTER)

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

#IF USER WANTS TO REGISTER

if r==2:

print("""

=======================================

!!!!!!!PLEASE REGISTER YOURSELF!!!!!!!!

=======================================

""")

u=input("ENTER YOUR PREFERRED USERNAME!!:")

p=input("ENTER YOUR PREFERRED PASSWORD (PASSWORD


SHOULD BE STRONG!!!:")

#ENTERING THE ENTERED VALUE TO THE USER_DATA TABLE

mycursor.execute("insert into user_data


values('"+u+"','"+p+"')")

mysql.commit()
print("""

=======================================

!!!!!!!!REGISTERED SUCCESSFULLY!!!!!!!!

=======================================

""")

x=input("enter any key to continue:")

#IF USER WANTS TO LOGIN

elif r==1:

#PRINTING THE SINGIN OPTION AGAIN TO THE USER AFTER


REGISTRATION

print("""

==================================

!!!!!!!! {{SIGN IN }} !!!!!!!!!!

==================================

""")

un=input("ENTER THE USERNAME!!:")

ps=input("ENTER THE 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):

##displaying the task you can perform

print("""

1.ADMINISTRATION

2.PATIENT (ADMISSION NAD DISCHARGE PROCESS)

3.SIGN OUT

""")

##asking for the task from user

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

#if user wants to enter administration option

if a==1:

print("""

1. SHOW DETAILS

2. ADD NEW MEMBER


3. DELETE EXISTING ONE

4. EXIT

""")

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

#showing the existing details

if b==1:

print("""

1. DOCTOR DETAILS

2. NURSE DETAILS

3. OTHER WORKERS

""")

#ASKING USER'S CHOICE

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

#if user wants to see the details of doctors

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)

#if user wants to see the details of nurses

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","MONT
HLY_SALARY"]

d=dict(zip(k,v))

print(d)

#if user wants to see the details of


other_workers

elif c==3:

mycursor.execute("select * from
other_workers_details")
row=mycursor.fetchall()

for i in row:

v=list(i)

k=["NAME","SPECIALISATION","AGE","ADDRESS","CONTACT","MONT
HLY_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. 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

mycursor.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


mycursor.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

mycursor.execute("insert into
other_workers_details
values('"+name+"','"+age+"','"+add+"','"+cont+"','"+ms+"')")

mysql.commit()

print("SUCCESSFULLY ADDED")

#if unser 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:")

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 * nurse_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 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 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:

mycursor.execute("select * from
patient_details")

row=mycursor.fetchall()

for i in row:

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=str(input("ENTER NAME: "))

sex=str(input("ENTER SEX: "))

age=str(input("ENTER AGE: "))

address=str(input("ADDRESS: "))

contact=str(input("CONTACT NUMBER: "))


mycursor.execute ("insert into patient_details
values('"+str(name)+"','"+str(sex)+"','"+str(age)+"','"+str(address)+"','
"+str(contact)+"')")

mysql.commit()

mycursor.execute("select * from
patient_details")

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_details


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_details


where name='"+name+"'")

mysql.commit()

#if user wants to exit

elif b==4:

break

###SIGN OUT

elif a==3:

break

#IF THE USERNAME AND PASSWORD IS NOT IN THE


DATABASE

else:

break

You might also like