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

Snehil Raj

Uploaded by

snehilraj98
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)
17 views24 pages

Snehil Raj

Uploaded by

snehilraj98
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/ 24

HOSPITAL MANACEMENT SATEM..

NAME -Munna Kumar


CLASS - XI
SUBJECT-Computer science
ROLL NO- 22640596
SUBMITED TO -Mr. Manoi
(PCT COMP. SO)
CERTIFICATE...
This is to certify that Mr. Munna Kumar of
class XI D has successfully completed the
Computer Science project on the topic
HOSPTAL MANÁÇEMEN under the
guidance of Mr. Manoj sir during the
academic year 2023-2024.

STUDENT'S SIGN TEACHER'S SIGN


ACKNDWLECMENT
Iwould like to express my special thanks of
gratitude to my teacher Mr. Manoj sir who
gave me golden opportunity to do this project
of COMPUTER SCENCE,which also helped me
in doing a lot of research and Icame to know
new things about it. Without their help,
guidance and support it would be impossible
to complete this project.
CONTENTS
1ABOUT PYTHON..
2.FBATURE OFPTHON..s.
3.ABOUT MySQL..
4FEATURE OF MySQL..s
S.REQUREMENTS.
6.ABOUT THE PROJECT.
7.CODING..
8.0UTPUT.
9TABLE STUCTURE..
10.BBLIOGRAPHY,
About PYTHON...
Python Applications
oftrare
Detabee
Development Dev cCes Developmen

ducation etror 30 Graphics


Progra

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
Easy 01 Etensible (07

Expressive 02 tnbeddable 08
Feattures of
Free ané
Open Source Intergreted 09
Migh-Lavel 04 Large Standard
Library 10

Partable

06
GUI
Programming

Dynamicaltly
Typed
11

(12)
Python

1. EASY TO USE.
2. INTEPRETED LANGUAGE
3. CROSS PLATFORMLANGUAGE
4. EXPRESSIVE LANGUAGE
5. COMPLETENESS
6. FREE& OPEN SOURCE
#SHORTCOMINGS OF PYTHON
1LESSER LIBRARIES
2.SLOWLANGUAGE
3.WEAK ON TYPE BINDNG

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.

#BATURES OF MySOL
Open source& Free of Cost:
1Portabjiiity: Smallenough in size to install and run
it in any types of Hardware and OS like Linux, MS Windows,
etc.

2.Security: Is Databases are secured &protected with


password.

3.ConnectivitvVarious APIs are developed to


connect it with many programming languages.

Requirements...
HARDWARE REOURENENTS
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 REQUREMENIS
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 LIBRARY MANAGEMENT" give idea
about the management in Library. The package gives all
the information regarding the details , ,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.Registering Doctor 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) +"y"
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 iin r:

print()

elif choice==5:

sql_x="'select*from doctor_details"
c1.execute(sql_x)
s=c1.fetchall)
for iin s:
print(i)

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

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

elif choice==8:
d=input("Enter the name:")
sql_d='select*from doctor_details where
P_name=("0").format(d)
c1.execute(sql_d)
V=c1.fetchall)
for i in V:

print()

elif choice==9:
f=input("Enter the name:")
sql_f='select*from worker_details where
P_name=("0").format()
c1.execute(sql_f)
w=c1.fetchall)
for iin w:
print()

elif choice==10:
exit)
break
else:

print('wrong username&password')
if choice==2:

exit)
QUTPUT
DLEShell3.102
Fie Edit Shell Debug Ogbons Window Help
Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64) ] on wins
Type "help", "copytight", "credits" or "license () " for 0OIe infornation.
>>>
RESTART: C:/Python310/final code.py
successiully connected

HOSPITAL ANAGEYENT SYSTEM

"GOD WISHES YOU"


1.LOGIN
2.EXIT
ENTER YOUR CHOICE:1
enter user name:AROSH
enter the passvord:ARUSR2004
connected
WELCOME TIO HOSPITAL
successtully connected
1.RegisteringPatient details
2.RegisteringDoctor detaíls
3.Registeringilozker details
4.total patient details
5.total doctor details
6.total worker details
7.Patient detail
8.Doctor detail
9.Worker detail
10.Exit
ENTER YOUR CHOICE:1l
Enter Patient Nane:ARYAN
|Enter Age:19
Enter the Prcblem/Disease:TYPHOID
Enter Phone nunber:l1234567890
SUCCESSEULLY REGISTERED
connected
WELCOME TO HOSPITAL
successtully connected
1.RegisteringPatient details
2.RegisteringDoctor details
3.Registeringiorker details
4.total patient details
5.total doctor details
6.total worker details
7.Patient detail
8.Doctor detail
9.Worker detail
10.Exit
ENTER YOUR CHOICE:1
Enter Patient Name:AMUSHK
Enter Age:18
Enter the Problem/Disease:COVID-19
Enter Phone nunber:1234567890
SUCCESSEULLY REGISTERED
connected
WELCOME TO HOSPITAL
successtully connected
1.RegisteringPatient details
2.RegisteringDoctor details
|3.Registeringiiorker details
4.total patient details
5.total doctor details
6.total vorker details
7.Patient detail
8.Doctor detail
9.Worker detail
10.Exit
ENTER YOUR CHOICE:l
Enter Patient Name:AMIT
Enter Age:18
Enter the Prcblem/Disease: Diarzhea
Enter Phone nunber:1233567890
SUCCESSPULLY REGISTERED
Connected
WELCOME TO HOSPITAL
successtully connected
1.RegisteringPatient details
|2.ReqisteríngDoctor decails
3.Registering®orker details
4.total patient details
5.tOtal doctor details
6.total worker details
7.Patient detail
8.Doctor detail
9.Worker detail
10.Exit
ENTER YOUR CHOICE:1
Enter Patient Name:ANCHAL
|Enter Age:18
Enter the Problen/Disease:ASTHAMA
Enter Phone nunber:l134567990
SUCCESSFULLY REGISTERED
connected
WELCOME TO HOSPITAL
successfully connected
1.RegisteringPatient details
2.RegisteringDoctor details
|3.RegisteringWorker details
4.total patient details
5.total doctor details
6.total worker details
7.Patient detail
8.Doctor detail
9.Norker detail
10.Exit
ENTER YOUR CHOICE:2
Enter Doctor Name:ARUSH KUHAR
Enter Age:18
Enter the Departnent:SURGERY
Enter Phone nunber:l111167990
successfully registered
connected
WELCOME TO HOSPITAL
successfully connected
1.RegisteringPatient details
|2.RegisteringDoctor details
3.RegisteringWozker details
4.total patient details
5.total doctor details
6.total worker details
7.Patient detail
8.Doctor detail
9.Worker detail
10.Exit
ENTER YOUR CHOICE:2
Enter Doctor Name :ARYAN BRARDWAJ
Enter Age:19
Enter the Departnent:MEDICINE
Enter Phone nunber:0000000000
successfully registered
connected
WELCOME TO HOSPITAL
successfully connected
1.RegisteringPatient details
2.RegisteringDoctor details
3.RegisteringWorker details
4.total patient details
|5.total doctor details
6.total worker details
7.Patient detail
8.Doctor detail
9.Worker detail
10.Exit
ENTER YOUR CHOICE:2
Enter Doctor Name:AYUSH RAWAT
Entez Age:19
Enter the Department:CARDIOLOGY
Enter Phone number:1111llll10
successfully registered
connected
WELCOME TO HOSPITAL
successfully connected
1. RegisteringPatient details
2.RegisteringDoctor details
3.RegisteringWorker details
4.total patient details
5.total doctor details
6.total worker details
DLE Shel3.102
File Edit Shel Debug 0gtions Window Hep
7.Patient detail
8.Doctor detail
9.Norker detail
10.Exit
ENTER YOUR CHOICE:4
('ARYAN, 19, 'TYFHOID', 123456780)
('AUSHK, 18, "COVID-19, 1234567880)
("AIT,18, 'Diarrhea', 1233567890)
('AMCHAL, 18, 'ASTHAMA', 134567890)
connected
WELCONE TO HOSPITAL
successtully connected
1.RegisteringPatient details
|2.BegisteringDoctor details
3.Registeringäorker details
4.total patient details
5.total doctor details
6.total worter details
7.Patient detail
8.Doctor detail
|9.Worker etail
10.Exit
ENTER YOUR CHOICE:S
('ARUSH KUAR', 18, 'SURGERY', 111167890)
('ARYAN BHAREKAJ, 19, "MEDICINE, 0)
("AYUS# RANAT", 19, 'CARDIOLOGY', 1111111110)
connected
WELCOME TO HOSPITAL
Successfully connected
1.RegisteringPatient details
2.RegisteringDoctor details
3.Registeringlorker details
1.total patient details
5.total doctor details
6.tOtal wOrker details
7.Patient detail
8.Doctor detail
9.Worker detail
|10.Exit
ENTER YOUR CHOICZ:10
TABLE STRUCTURE
nysql> use HMScodes;
Database changed
nysql> desc patient_details;
Field | Type Null | Key | Default | Extra |
PName varchar (30) YES NULL
age int YES NULL
Problems | varchar(28) YES NULL
phono int YES NULL

A rows in set (0.02 sec)

mysql> desc doctor_details;


-+-------+

Field Type Null Key Default | Extra |


DName varchar(30) YES NULL
age int YES NULL
problems varchar(49) YES NULL
phono int YES NULL

4 rows in set (0.00 sec)


mysql> desc Worker_ details;
Field Type | Null Key | Default | Extra |
WName varchar(30) YES NULL
age int YES NULL
Workname varchar (40) YES NULL
phono int YES NULL

4 rowsin set(0.00 sec)


mysql> select from patient_details;

| PName | age|Problems | phono


ARYAN 19 TYPHOID 1234567890
ANUSHK 18 COVID- 19 1234567880
AMIT 18 Diarrhea 123356789
ANCHAL 18 ASTHAMA 1134567890

4 rows in set (0.00 sec)


mysql> select from doctor_details;

DName age problems phono

ARUSH KUMAR 18 SURGERY 1111167890


ARYAN BHARDWAJ 19 MEDICINE
AYUSH RAWAT 19 CARDIOLOGY 1111111110

3 rows in set (0.00 sec)

mysql>
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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy