Professional Documents
Culture Documents
On
TE(Computer Engineering)
(Academic Year :2023-24)
SUBMITTED BY
Chatrasal Jadhav
Roll. No: T212002
GUIDED BY
Prof. Rahul Naware
CERTIFICATE
Place: Pune
Date:
Acknowledgement
I would like to express our deepest appreciation to all those who provided me
the possibility to complete this report. A special gratitude I will give to my micro
project guide, Prof. Rahul Naware who invested his full effort in guiding me in
achieving the goal.
My great obligation would remain towards our Head of Department Prof.
Aparna Mote, whose contribution in stimulating suggestions and encouragement
helped me for writing report. She provided with an opportunity to undertake the
Micro project at Zeal College of Engineering & Research, Narhe, Pune. I appreciate
the guidance given by other staff members of Computer Engineering Department
for improving my presentation skills thanks to their comment and advice.
I sincerely thanks to our respected Principal proved to be a constant
motivation for the knowledge acquisition and moral support during our course
curriculum.
One of the key benefits of an HMS is that it can help healthcare providers improve the
quality of care they provide to patients. By automating processes and providing real-
time data insights, the system can help providers identify areas for improvement and
make more informed decisions about patient care.
Another benefit of an HMS is that it can improve the efficiency of healthcare operations.
By automating administrative tasks and reducing the amount of paperwork, staff
members can spend more time on patient care and other important tasks.
Overall, a hospital management system can be a valuable tool for healthcare providers
looking to improve the quality of care they provide and streamline their operations.
With the right system in place, providers can enhance patient care, reduce costs, and
improve their bottom line.
Contents
1. Introduction 1
2. Architecture 2
3. Program Code 3
4. Output 13
5. Conclusion 17
Introduction
The first expert system (ES), which was the first effective use of artificial intelligence, was established
in the year 1970 and is a subset of AI. By drawing on the knowledge that is kept in its knowledge base,
it can solve even the most complicated problems like an expert. Like a human expert, the system aids in
decision-making for difficult issues by using both facts and heuristics. It is so named because it
possesses in-depth knowledge of a certain field and is capable of resolving any challenging issue in that
field. These systems are created for a certain industry, like science, medical, etc.
The knowledge that an expert system has stored in its knowledge base determines how well it
performs. The performance of the system increases as more knowledge is kept in the KB. The Google
search box's recommendation of spelling problems is one of the typical examples of an ES.
1
Architecture
2
Program Code
import Read_Hospital_Excel_Sheet
import Write_Hospital_Excel_Sheet
print("********************************************************************")
print("* *")
print("* Welcome to Hospital Management System *")
print("* *")
print("********************************************************************")
tries = 0
tries_flag = ""
while tries_flag != "Close the program" :
Patients_DataBase = Read_Hospital_Excel_Sheet.Read_Patients_DataBase()
Doctors_DataBase = Read_Hospital_Excel_Sheet.Read_Doctors_DataBase()
print(" ")
print("|Enter 1 for Admin mode |\n|Enter 2 for User mode |")
print(" ")
Admin_user_mode = input("Enter your mode : ")
if Password == "1234" :
print(" ")
print("|To manage patients Enter 1 |\n|To manage doctors Enter 2 |\n|To manage
appointments Enter 3 |\n|To be back Enter E |")
print(" ")
AdminOptions = input ("Enter your choice : ")
3
AdminOptions = AdminOptions.upper()
Patients_DataBase[patient_ID]=[Department,DoctorName,Name,Age,Gender,Address,RoomNumber]
print(" Patient added successfully ")
except :
print("Patient ID should be an integer number")
4
print("patient room number : ",Patients_DataBase[patient_ID][6])
print("patient is in "+Patients_DataBase[patient_ID][0]+" department")
print("patient is followed by doctor : "+Patients_DataBase[patient_ID][1])
5
except :
print("Patient ID should be an integer number")
6
nEnter patient name : ")
print("----------------------Patient name edited successfully----------------------")
7
elif Admin_choice == "4" : Patients_DataBase[patient_ID][3]=input("\
nEnter patient Age : ")
print("----------------------Patient age edited successfully----------------------")
else :
print("Please Enter a correct choice")
except :
print("Patient ID should be an integer number")
else :
print("Please enter a correct choice\n")
9
while Doctor_ID not in Doctors_DataBase :
Doctor_ID = int(input("Incorrect ID, Please Enter doctor ID :
")) print(" ")
10
print("|To Edit doctor's department Enter 1 |")
print("|To Edit doctor's name Enter 2 |")
print("|To Edit doctor's address Enter 3 |")
print("To be Back Enter E |")
print(" ")
Admin_choice=input("Enter your choice : ")
Admin_choice = Admin_choice.upper()
if Admin_choice == "1" :
Doctors_DataBase[Doctor_ID][0][0]=input("Enter Doctor's Department : ")
print("/----------------------Doctor's department edited successfully----------------------
/")
11
Doctor_ID = int(input("Doctor ID incorrect, Please enter a correct doctor ID :
")) print(" ")
print("|For book an appointment for an exist patient Enter 1 |\n|For book an
appointment for a new patient Enter 2 |\n|To be Back Enter E |")
print(" ")
Admin_choice = input ("Enter your choice : ")
Admin_choice = Admin_choice.upper()
if Admin_choice == "1" :
patient_ID = int(input("Enter patient ID : "))
while patient_ID not in Patients_DataBase : #if Admin entered incorrect
ID patient_ID = int(input("Incorrect ID, please Enter a correct patient ID :
"))
Patients_DataBase[patient_ID]=[Department,DoctorName,Name,Age,Gender,Address,RoomNumber]
for i in Doctors_DataBase[Doctor_ID] :
if type(i[0])!=str :
while Session_Start >= i[1] and Session_Start < i[2] :
Session_Start = input("This appointment is already booked, Please Enter an
other time for start of session : ")
Session_End = input("Session ends at : ")
New_Appointment=list()
New_Appointment.append(patient_ID)
12
New_Appointment.append(Session_Start)
New_Appointment.append(Session_End)
13
Doctors_DataBase[Doctor_ID].append(New_Appointment)
print("/----------------------Appointment booked successfully----------------------/")
except :
print("Doctor ID should be an integer number")
for i in Doctors_DataBase[Doctor_ID] :
if type(i[0])!=str :
while Session_Start >= i[1] and Session_Start < i[2] :
Session_Start = input("This appointment is already booked, Please Enter an
other time for start of session : ")
Session_End = input ("Please enter the new end time : ")
Doctors_DataBase[PairKey][AppointmentIndex]=[patient_ID,Session_Start,Session_End]
print("/----------------------appointment edited successfully----------------------/")
except :
print("No Appointment for this patient")
except :
print("Doctor ID should be an integer number")
14
patient") except : #To avoid no return
function
print("Patient ID should be an integer number")
15
elif Admin_choice == "E" : #Back
break
else :
print("please enter a correct choice")
elif AdminOptions == "E" : #Back
break
else :
print("Please enter a correct option")
elif Password != "1234" :
if tries < 2 :
Password = input("Password incorrect, please try again : ")
tries += 1
else :
print("Incorrect password, no more tries")
tries_flag = "Close the program"
break
Write_Hospital_Excel_Sheet.Write_Patients_DataBase(Patients_DataBase)
Write_Hospital_Excel_Sheet.Write_Doctors_DataBase(Doctors_DataBase)
16
from "+Doctors_DataBase[i][0][2])
else :
print("Please Enter a correct choice")
else :
17
print("Please choice just 1 or 2")
18
Output
19
20
21
22
Conclusion
A hospital management system that includes admin and user management can greatly improve the
efficiency and effectiveness of healthcare facilities. With a user-friendly interface and streamlined
workflows, these systems can simplify administrative tasks and enable medical professionals to focus
more on patient care.
Admin management features can include functions such as patient admissions, doctors’ information,
appointment scheduling, departments updating etc. User management features can include access
control, user authentication, hospital information and their appointments.
By centralizing information and automating processes, hospital management systems can reduce
errors, improve communication between staff members, and increase overall productivity. These
systems can also provide valuable data insights that can help healthcare administrators make informed
decisions about resource allocation and facility management.
In conclusion, a hospital management system that includes admin and user management can provide
significant benefits to healthcare facilities, including improved efficiency, increased productivity, and
better patient care. Careful consideration and implementation of such a system can result in a positive
impact on the overall functioning of the hospital.
23