Professional Documents
Culture Documents
On
“Expert System on Hospital Management System”
A Report Submitted for a mini project for Artificial Intelligence Laboratory (310256) in 2nd
Semester of Third Year Computer Engineering
Academic Year 2023-24
Submitted by-
Sr No. Name of Student Roll No.
1. Aniket Prakash Salunkhe T213031
Guided by-
Prof. Rahul Naware
CERTIFICATE
This is to certify that Project Entitled “Expert System on Hospital Management System”
carried out by Aniket Salunkhe (T213031) are Bonafide students of this institute and the work
has been carried out by him under the supervision of Prof. Rahul Naware and it is approved for
the partial fulfilment of the requirement of Savitribai Phule Pune University, for the award of
Third Year Engineering (Computer Engineering). It is certified that all corrections/suggestions
indicated for internal assignment have been incorporated in the report. The project report has been
approved as it satisfies the academic requirements in respect of project work prescribed for the
Bachelor of Engineering Degree.
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.
ABSTRACT
A Hospital Management System (HMS) is a software solution that helps healthcare providers
manage their daily operations more efficiently. The system is designed to streamline administrative
and clinical processes, improve communication between staff members, and enhance patient care.
The HMS typically includes features such as patient registration, appointment scheduling, medical
billing and coding, inventory management, and patient medical records. The system can also help
healthcare providers manage staff schedules, track patient progress, and generate reports for data
analysis.
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.
INDEX
1. INTRODUCTION 1
2. ARCHITECTURE 2
4. OUTPUT 13-16
5. CONCLUSION 17
6. REFERENCES 18
Introduction
An expert system is a computer programmer created to solve complicated issues and offer decision-
making capabilities similar to those of a human expert. This is accomplished by the system retrieving
information from its knowledge base in accordance with user queries, utilizing reasoning and inference
procedures.
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")
else :
print("Please Enter a correct choice")
except :
print("Patient ID should be an integer number")
else :
print("Please enter a correct choice\n")
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)
New_Appointment.append(Session_Start)
New_Appointment.append(Session_End)
9
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")
Write_Hospital_Excel_Sheet.Write_Patients_DataBase(Patients_DataBase)
Write_Hospital_Excel_Sheet.Write_Doctors_DataBase(Doctors_DataBase)
else :
print("Please Enter a correct choice")
else :
13
14
15
16
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.
17
REFERENCES
https://www.javatpoint.com/expert-systems-in-artificial-intelligence
https://www.researchgate.net/publication/367532226_Expert_system_in_hospital
https://github.com/ronak-07/Medical-Expert-System-Knowledge-Base
https://www.geeksforgeeks.org/expert-systems/
Submitted By:
Aniket Salunkhe
Roll no.: T213031
Div: TE-C
18