Professional Documents
Culture Documents
MNR SCHOOL
OF
EXCELLENCE
ACKNOWLEDGEMENT
I would like to express my gratitude towards my school
Principal Mrs. Rajani Nair, who was a constant source of
motivation and inspiration for the students.
Index
SR.NO CONTENTS Page no
1. CERTIFICATE 1
2. ACKNOWLEDGEMENT 2
3. INDEX 3
4. OBJECTIVE 4
5. INTRODUCTION 5
6. THEORY 6
7. SOFTWARE REQUIREMENTS 7
8. SOURCE CODE 8
9. OUTPUT 12
10. CONCLUSION 13
11. BIBLIOGRAPHY 14
12. CD 15
13. Thank you 16
objective
Introduction
The Hospital Management System (HMS) is designed for Any
Hospital to replace their existing manual, paper based system. This
System targets to provide complete solution for Hospital and Health
care services. This System can be used in any Hospital, Clinic,
Diagnostics or Pathology labs for maintaining patient details and
their test results. It Integrates the entire Resources of a Hospital into
One Integrated Software Application.
Since the purpose of the hospital information system is the
arrangement of necessary, precise and appropriate data, the hospitals
should ensure the system work and can be accessed at any time.
Theory
Hospital management system is a Python based project and we have
developed it using MYSQL and MYSQL connector. (HIS) is an
element of health informatics that focuses mainly on the
administrational needs of hospitals. In many implementations, a HIS
is a comprehensive, integrated information system designed to
manage all the aspects of a hospital's operation, such as medical,
administrative, financial, and legal issues and the corresponding
processing of services.
Hospital information systems provide a common source of
information about a patient's health history. These systems enhance
the ability of health care professionals to coordinate care by
providing a patient's health information and visit history at the place
and time that it is needed. Hospital software is easy to use and
eliminates error caused by handwriting.
Software requirements
Software Requirements:
Windows 7 or higher
Python
Django framework
Mysql database
Any text editor
Hardware Components:
Processor –Core i3
Hard Disk – 160 GB
Memory – 1GB RAM
Monitor
Source code
from sys import exit
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='',database='pro
ject')
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=='vasu'and pwd1=='vasu6072':
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
conclusion
The project Hospital Management System(HMS) is for
computerizing the the working in a hospital. It is a great improvment
over the manual system the computerization of the system has speed
up the process in the current system, the front office managing is very
slow. The hospital management system was thoroughly checked and
and tested with dummy data and thus is formed to be very reliable .
The software takes care of all the requirements of a average hoispital
and is capable to provide easy and effective storage of information
related to patients that come up to hospital
BIBLIOGRAPHY
Books referred:
Computer Science with Python -- By Sumita Arora
The Python book by Anil Kushwaha
Let us Python by Yashavant and Aditya Kanetkar
Think Python by Allen B. Downey
Python Programming by John Zelle
Websites referred:
https:// projects.icbse.in
http://ashwanihms.blogspot.com
http://python.mykvs.in
https://www.w3schools.com/
https://www.python.org/
Learn python
Learn python programming -offline
Python Tutorial
Python 3 Tutorials
Python Pandas Tutorials
CD
THANK
You