You are on page 1of 25

JINVANI

BHARTI
PUBLIC
SCHOOL…

SYNOPSIS…
HOSPITAL
MANAGEMENT
SYSTEM… NAME-ARUSH
KUMAR
CLASS- XII-A
SUBJECT-COMPUTER
SCIENCE ROLL NO-
2021-2022
CERTIFIC
ATE….
This is to certify that Mr. ARUSH KUMAR of class
XII A has successfully completed the Computer Science project
on the topic HOSPITAL MANAGEMENT
under the guidance of Mrs. SHALINI
KHETARPAL MAM during the academic year 2021-
2022.
DATE-

INTERNAL EXAMINER-

EXTERNAL EXAMINER-

PRINCIPAL-
ACKNOWLEGME
NT
I would like to express my special thanks of
gratitude to my teacher Ms.SHALINI
KHETARPAL MAM as well as our
principal MS PREETI JAIN
mam who gave me golden opportunity to do
this project of COMPUTER SCIENCE ,
which also helped me in doing a lot of
research and I came to know new things about
it. Without their help, guidance and support it
would be impossible to complete this project.
CONTENTS
1.ABOUT PYTHON…………………
2.FEATURE OF PYTHON…………..
3.ABOUT MySQL……………………
4.FEATURE OF MySQL……………..
5.REQUIREMENTS…………………..
6.ABOUT THE PROJECT…………….
7.CODING……………………………..
8.OUTPUT……………………………..
9.TABLE STUCTURE…………………
10. BIBLIOGRAPHY…………………...
About PYTHON…..

Python is an interpreter, high level and general purpose


programming language. Python’s design philosophy emphasizes
code readability with its notable use of significant white space.
Its language constructs and object-oriented approach aim to help
programmers write clear, logical code for small and large scale
projects.
Python is dynamically typed and garbage-collected. It supports
multiple programming paradigms, including structured object-
oriented and functional programming. Python is often described
as a ‘batteries included’ language due to its comprehensive
standard library.
Python was created in the late 1980s, and first released in
1991, by Guido von Rossum as a successor to the ABC
programming language.
#FEATURES OF PYTHON

1. EASY TO USE.
2. INTEPRETED LANGUAGE
3. CROSS PLATFORM LANGUAGE
4. EXPRESSIVE LANGUAGE
5. COMPLETENESS
6. FREE & OPEN SOURCE
#SHORTCOMINGS OF
PYTHON
1.LESSER LIBRARIES
2.SLOW LANGUAGE
3.WEAK ON TYPE BINDING
About MySQL……
MySQL is currently the most popular open source database
software. It is a multi-user, multi threated database management
system. MySQL is espically popular on the web. It is one of the
parts of the very popular LAMP platform. Linux , Apache ,
MySQL and PHP or WIMP platform Windows. All was
founded by Michoel W ide (Monty).David Axmark and Allan
Larsson in Sweden in year 1995.
#FEATURES OF MySQL
Open source& Free of Cost:
1.Portability: Small enough in size to install and
run it in any types of Hardware and OS like Linux, MS
Windows, etc.
2.Security: Its Databases are secured & protected
with password.
3.Connectivity:Various APIs are developed to
connect it with many programming languages.
Requirements…….
HARDWARE REQUIRENENTS
1.Computer: for coding and typing the required documents
of the project.
2.Printer: to print the required documents of the
project. 3.Compact drive
4.Processor: Pentium quadcore
5.RAM:64mb
6.Hard disk:20gb
SOFTWARE REQUIREMENTS
1.Opening system: Windows 10
2.Python3: for execution of program
3.MySQL: for starting data in the database
4.Python-MySQL connector: for database connectivity
5.Microsoft word: for presentation of output.
About The Project…..
My project on “HOSPITAL MANAGEMENT SYSTEM”
give idea about the management in hospital. The package
gives all the information regarding the details Doctors,
,patient and other worker details medical facilities.
CODING:
from sys import exit
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='1234',d
atabase='HMScodes')
if conn.is_connected():
print('successfully connected')
c1=conn.cursor()
print(' ')
print("HOSPITAL MANAGEMENT SYSTEM")
print('-- ')
print('"GOD WISHES YOU"')
print("1.LOGIN")
print("2.EXIT")
choice=int(input("ENTER YOUR CHOICE:"))
if choice==1:
u1=input("enter user name:")
pwd1=input("enter the password:")
while u1=='ARUSH'and pwd1=='ARUSH2004':
print('connected')

print("WELCOME TO HOSPITAL")
print("successfully connected")
print('1.RegisteringPatient details')
print('2.RegisteringDoctor details')
print('3.RegisteringWorker details')
print("4.total patient details")
print("5.total doctor details")
print("6.total worker details")
print('7.Patient detail')
print('8.Doctor detail')
print('9.Worker detail')
print('10.Exit')
choice=int(input('ENTER YOUR CHOICE:'))
if choice==1:
p_name=input('Enter Patient Name:')
p_age=int(input('Enter Age:'))
p_problems=input('Enter the Problem/Disease:')
p_phono=int(input('Enter Phone number:'))
sql_insert="insert into patient_details
values(""'"+p_name+"',"+str(p_age)+",'"+p_problems+"',"+str(p
_phono)+")"
c1.execute(sql_insert)
print('SUCCESSFULLY REGISTERED')
conn.commit()
elif choice==2:
d_name=input('Enter Doctor Name:')
d_age=int(input('Enter Age:'))
d_department=input('Enter the Department:')
d_phono=int(input('Enter Phone number:'))
sql_insert="insert into doctor_details
values(""'"+d_name+"',"+str(d_age)+",'"+d_department+"',"+str
(d_phono)+")"
c1.execute(sql_insert)
print('successfully registered')
conn.commit()

elif choice==3:
w_name=input('Enter Worker Name:')
w_age=int(input('Enter Age:'))
w_workname=input('Enter type of work:')
w_phono=int(input('Enter Phone number:'))
sql_insert="insert into worker_details
values(""'"+w_name+"',"+str(w_age)
+",'"+w_workname+"',"+str( w_phono)+")"
c1.execute(sql_insert)
print('successfully registered')
conn.commit()

elif choice==4:
sql_w='select*from patient_details '
c1.execute(sql_w)
r = c1.fetchall()
for i in r :
print(i)

elif choice==5:
sql_x="select*from
doctor_details" c1.execute(sql_x)
s=c1.fetchall()
for i in s:
print(i)

elif choice==6:
sql_y="select*from worker_details"
c1.execute(sql_y)
t=c1.fetchall()
for i in t:
print(i)

elif choice==7:
h=input("Enter the name:")
sql_w='select*from patient_details where
p_name=("{}")'.format(h)
c1.execute(sql_w)
u = c1.fetchall()
for i in u:
print(i)

elif choice==8:
d=input("Enter the name:")
sql_d='select*from doctor_details where
p_name=("{}")'.format(d)
c1.execute(sql_d)
v=c1.fetchall()
for i in v:
print(i)

elif choice==9:
f=input("Enter the name:")
sql_f='select*from worker_details where
p_name=("{}")'.format(f)
c1.execute(sql_f)
w=c1.fetchall()
for i in w:
print(i)

elif choice==10:
exit()
break
else:
print('wrong username&password')
if choice==2:
exit()
OUTPUT
€.total patient details
S.t0tdl doEtoI detail9
€.total woikez details
7.PdtiRRt dûtdil
8.D0ctDI dRtail
â.Ñ0IËRI dRtail
10.Zxit
ïNIZRT0DRMDIX:1
Iztzz PatientName:AflASEK
ïntzI Age:18
Enter the PiobleNoisease: C0¥I0-IS
Enter Phone
500CïS5HI.hï RIGI5ïERE0

l.RzgistezingPatiezt details
2.RzgistezingDoctoi details
3RqüteflngWAeidetfll
4.total patient details
6.t0tdl d0Et0I det@il9
€.total Woikez details
Ÿ.ÊdtiRRt detail
D.Doctor detail
Û.Ñ0IËRI dRtail
l0.Exit
ESlf R ï00R CJtDIC£ : 1
Inter Patient 8zœ :MII
Entel à Që: 18
Enter the PiobleNoisease: Oiaiihea
Eztzi Pàoze nibei:l233S€7890
SDüZS5FJLL RGITERD
COŒŒOtûd

l.Rcçisteiinç£atieztdctails
2Rc0ütein0Doctoi Details
3.RegistezingNorZez details
4totl patient %tails
5.total d0Et0I detdil9
6.total workez details
LMtient útil
S. Doctoz detail
S . flozkez detail
10.Exit
INTER TODR MDII:1
Entez Patient Name:MEEAL
jntez lge:18
Entez the PI0blR
Êi9ed9e:Ä57 Entez PhoRR
Ribez:ll3€667890
sDüM5SF0LLT RE8ISTERED
connected
WELOOMZ TO flDSPITI

1.RegistezingDtient ttMls
2.RegistezingDoct0I details
3.RegistezingNorkez ttaMs
4.total patient details
5.total doot0I details
6.total workez details
7.PatientLtil
Ú.ü0Et0I dRtail
Ü.Ü0IkeI dRtail
10.Exit
ENTERTOOR DIV:2
ERtRI D0ctDI N& :ARDSH KDMAR
Entez Age:18
Entez the Depaztnent: 50RSERY
Entez Phonemmbez:lllM67890
successfully registered
connected
WELOOMZ TO flD5PITV
sucessfullyconnected
1.RegistezingPatient details
2.Regi9tRIiRQDOEt0I d&tdil9
3. RR@i9tRIiR@N0Ik&I d&tdil9
4. total0atient details
5. total doctoz
details 6.total wozkez
details 7.Patient
detail 5.Doctoz
detail 9.Wozkez
detail 10.Exit
ENTER 700R CDII:2
Inter Doctor Nene:ARYAF ßhRRDFAJ
Inter dge:lS
Inter the Depai tnent:
NODIDIFE Inter Phone nurbe
z:0000000000 successfully
iegistered connected
WELOOMZ T0 fD5PITI
successfullyonnected
1.RegistezingPatient details
2.RegistezingDoctoz details
3.RegistezingNozkez details
9.total patient details
5.total doctoz details
6.total wozkez details
7.Patient detail
5.Doctoz detail
9.Wozkez detail
10.Exit
]NTER î00R 03DII:2
Intez Doctoz Nene:à H5fI RAFà I
Intei hge:U
Intei the Department:
CARDI0£0GY Entez Phone
nibez:1111111110 successfully
iegistered connected
NEURONE IO itD5PIIñ L
successfully connected
1.RegistezingPatient details
2.RegistezingDoctoz details
3.RegistezingNozkez details
9.total patient details
5.total doctoz details
6.total wozkez details
Edit thell Debug Dgtioru Winde Help
1. Pat1eqt detalL
8. DDCtDI detall
9. gDIÈ gI detall

E1IT£R ï00P CfI0IH : 4


('49t+' , 19, ' Pt0ID' , 123456t890)
('BÏWEM , 18, ' C0YI%19 , 12386880)
('/\XII', 18, ' D1à IIbtb', 1233567890)
('àfl0FàL' , 18, 'àSTlWlX' , 1131S67890)

1. keg1stez1qgPat1eqt deta11g
É . Íttg19tt I 1ggDDEtDI detalls
3. Reg19te I1EtggDIÈ gz detalls
É . tDLü l bt1tot de tal Le
à . tDtü L dDCtDI deta11s
g. tDtü l HDIÈ tI deta11s
7. Patient detail
8. DDCtDI
detall 9.gDIÈ tI
detall

E1IT£R ï00P CfI0IH : 5

(' i BitiiDP ' , 1s, ' EDICIiiE ' , 0)


('z 5z RAz/c', ‹9, ' EzADIOz0 ', ‹11‹11‹110)
EO00tE¢tü
gELE0ffE 10 fl0SPI7àL
9UCCg99:EU1ï} CDOOgCtgü
1. keg1stez1qgPat1eqt deta11s
2. Reg1stez1cgDDCÈ DI detalls
3. keg1stez1qggDztez detalls
É . tDtü l Çbt1tqt deta1Ls
ò . tDÈ à L dDCtDI detalls
ò . tDtü L 6DItgI deta11g
7. Pat1eqt detalL
8. DDCtDI detall
9. gDIÈ tI detall

EiIRR ï00iI CfI0IH :10


TABLE STRUCTURE
BIBLIOGRAPHY
#TO DEVELOP THIS PROJECT MANY
REFERENCES WERE USED:
1.COMPUTER SCIENCE TEXTBOOK
CLASS12: SUMITA ARORA
2.WWW.GOOGLE.COM
3.WWW.PYTHON.ORG.IN
4.WWW.MYSQL.ORG.IN#

You might also like