Hospital Managemt FINAL PROJECT
Hospital Managemt FINAL PROJECT
Hospital Managemt FINAL PROJECT
PROJECT REPORT
GRADE – XII
Management…System…………………….”
Date:
Registration No.:
Signature of Principal
ACKNOWLEDGEMENT
2
I would like to take this opportunity to express my deep sense
of gratitude to all those people without whom this project could
have never been completed. First and foremost I like to thank God
for giving me such a great opportunity to work on this project, and
I would like to express my special thanks and gratitude to the
Management, the Directors and the Correspondent of
KENDRIYA , VIDYALAYA , AFS SALUA School, for their
constant guidance and providing a very nice platform to learn.
3
Index
S.No Contents Pg.No
1
SYSTEM REQUIREMENT
2
FEASIBILITY STUDY
3
ERRORS AND ITS TYPES
4
TESTING
5
MAINTENANCE
6
FUNCTION USED
7
FLOW CHART OF PROGRAM
8
SOURCE CODE
9
OUTPUT
10
CONCLUSION
11
BIBLIOGRAPHY
SIGNATURE
….….….………………………...
SYSTEM REQUIREMENTS
4
1. HARDWARE:-
Processor
Keyboard
Minimum memory - 2GB
2. SOFTWARE:-
Python IDLE
MYSQL
5
FEASIBILITY STUDY
Feasibility study is a system proposal according to its work,
ability, impact on the operation ability to meet the needs of
users and efficient use of resources. An important outcome
of preliminary investigations the determination of that
system requested feasible.
ECONOMICAL FEASIBILITY:-
Economic analysis is the most frequently used method for
measuring the records of the customers, their bookings and
offers that they expect etc., and compare them with the cost.
This software is not very costly. So customer’s records can
be maintained at a cheaper cost and every hotel would like
to use this software so that the customer’s records can be
managed easily.
TECHNICAL FEASIBILTY:-
Technical feasibility center on the existing computer system
and to what extent it can support the proposed task. This
involves financial consideration to accommodate technical
enhancements. It is technically feasible because whatever
technology is needed to develop this software is easily
available.
6
ERRORS AND ITS TYPES
An error, some time called “A BUG” is anything in the code
that prevents a program from compiling and running
correctly. There are broadly three types of errors as follows:
a. Syntax error:-
It refers to formal rules governing the construction of
valid statements in a language.
b. Semantics error:-
It refers to the set of rules which give the meaning of a
statement.
7
3. Logical Errors:-
Sometimes, even if you don’t encounter any error during
compiling-time and runtime, your program does not provide
the correct result. This is because of the programmer’s
mistaken analysis of the problem he or she is trying to solve.
Such errors are called logical error.
8
TESTING
1.Alpha Testing:-
It is the most common type of testing used in the
software industry. The objective of this testing is to
identify all possible issues or defects before releasing it
into the market or to the user. It is conducted at the
developer’s site.
2. Beta Testing:-
AcceptsIt is a formal type of software testing which is
carried out by the customers. It is performed in a real
environment before releasing the products into the
market for the actual end-users. It is carried out to
ensure that there are no major failures in the software or
product and it satisfies the business requirement. Beta
Testing is successful when the customerthe software.
9
4. Black Box Testing:-
It is a software testing, method in which the internal
structure or design of the item to be tested is not known to
the tester. This method of testing can applied virtually to
every level of the software testing.
10
MAINTENANCE
Programming maintenance refers to the
modifications in the program. After it has been
completed, in order to meet changing requirement
or to take care of the errors that shown up. There
are four types of maintenance:-
1.Corrective Maintenance:-
When the program after compilation shows error because of
some unexpected situations, untested areas such errors are
fixed up by Corrective maintenance.
2.Adaptive Maintenance:-
Changes in the environment in which an information system
operates may lead to system management. To accommodate
changing needs time to time maintenance is done and is
called Adaptive maintenance.
3.Preventive Maintenance:-
If possible the errors could be anticipated before they
actually occur; the maintenance is called Preventive
maintenance.
11
4.Perfective Maintenance:-
In this rapidly changing world, information technology is
the fastest growing area. If the existing system is maintained
to keep tuned with the new features, new facilities, new
capabilities, it is said to be Perfective maintenance.
12
Functions Used
Commit():-
This method sends a COMMIT statement to the MySQL
server, committing the current transaction. Since by default
Connector/Python does not autocommit, it is important to
call this method after every transaction that modifies data
for tables that use transactional storage engines.
Fetchall():-
The method fetches all (or all remaining) rows of a query
result set and returns a list of tuples. If no more rows are
available, it returns an empty list.
Exec():-
It dynamically execute code of python programs. The code
can be passed in as string or object code to this function.
The object code is executed as is while the string is first
parsed and checked for any syntax error.
13
FLOWCHART
14
Source Code:-
##hospital management software
while(True):
print("""
================================
WELCOME TO MYHOSPITAL
================================
""")
import mysql.connector
mysql=mysql.connector.connect(host="localhost",user="root",passwd="admin")
mycursor=mysql.cursor()
#creating database
mycursor.execute("use my_hospitals")
15
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))")
#creating table for storing the username and password of the user
#printing option
while(True):
print("""
1. SIGN IN (LOGIN)
2. SIGN UP (REGISTER)
""")
if r==2:
print("""
=======================================
=======================================
""")
16
#ENTERING THE ENTERED VALUE TO THE USER_DATA TABLE
mysql.commit()
print("""
=======================================
!!!!!!!!REGISTERED SUCCESSFULLY!!!!!!!!
=======================================
""")
elif r==1:
print("""
==================================
==================================
""")
row=mycursor.fetchall()
for i in row:
a=list(i)
17
if a[0]==str(ps):
while(True):
print("""
1.ADMINISTRATION
3.SIGN OUT
""")
if a==1:
print("""
1. SHOW DETAILS
4. EXIT
""")
if b==1:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
18
""")
if c==1:
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)
elif c==2:
row=mycursor.fetchall()
for i in row:
v=list(i)
k=["NAME","SPECIALISATION","AGE","ADDRESS","CONTACT","MONTHLY_SALARY"]
d=dict(zip(k,v))
print(d)
elif c==3:
19
mycursor.execute("select * from other_workers_details")
row=mycursor.fetchall()
for i in row:
v=list(i)
k=["NAME","SPECIALISATION","AGE","ADDRESS","CONTACT","MONTHLY_SALARY"]
d=dict(zip(k,v))
print(d)
elif b==2:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
if c==1:
spe=input("ENTER SPECIALISATION:")
age=input("ENTER AGE:")
add=input("ENTER ADDRESS:")
fees=input("ENTER FEES:")
ms=input("ENTER MONTHLY_SALARY:")
20
mycursor.execute("insert into doctor_details
values('"+name+"','"+spe+"','"+age+"','"+add+"','"+cont+"','"+fees+"','"+ms+"')")
mysql.commit()
print("SUCCESSFULLY ADDED")
elif c==2:
age=input("ENTER AGE:")
add=input("ENTER ADDRESS:")
ms=int(input("ENTER MONTHLY_SALARY:"))
mysql.commit()
print("SUCCESSFULLY ADDED")
elif c==3:
age=input("ENTER AGE:")
add=input("ENTER ADDRESS:")
ms=input("ENTER MONTHLY_SALARY:")
21
mysql.commit()
print("SUCCESSFULLY ADDED")
elif b==3:
print("""
1. DOCTOR DETAILS
2. NURSE DETAILS
3. OTHER WORKERS
""")
if c==1:
row=mycursor.fetchall()
print(row)
if p=="y":
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
22
elif c==2:
row=mycursor.fetchall()
print(row)
if p=="y":
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
elif c==3:
row=mycursor.fetchall()
print(row)
if p=="y":
mysql.commit()
print("SUCCESSFULLY DELETED!!")
else:
print("NOT DELETED")
23
elif b==4:
break
elif a==2:
print("""
3. DISCHARGE PATIENT
4. EXIT
""")
if b==1:
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)
elif b==2:
24
name=str(input("ENTER NAME: "))
address=str(input("ADDRESS: "))
mysql.commit()
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:
row=mycursor.fetchall()
print(row)
if bill=="y":
25
mysql.commit()
elif b==4:
break
###SIGN OUT
elif a==3:
break
else:
break
26
27
28
29
30
31
32
33
34
35
36
37
CONCLUSION
Python supports both function-oriented and
structure-oriented programming. It has
features of dynamic memory management
which can make use of computational
resources efficiently. It is also compatible
with all popular operating systems and
platforms. Hence this language can be
universally accepted by all programmers.
38
BIBLIOGRAPHY
WWW.GEEKSFORGEEKS.ORG
WWW.PROJECTWORLDS.IN
WWW.PYTHONWOLRD.IN
WWW.WIKIPEDIA.COM
39