Cs - Project File 11-Jan-08-58-38 - Unlocked
Cs - Project File 11-Jan-08-58-38 - Unlocked
SCHOOL
BULANDSHAHR, UTTAR PRADESH -203001
Computer Science
Project
entitled as
Class :- Xllth A
Roll No.:- 08
Certificate
This is to certify that Aryan Singh of class Xll –A has
worked successfully under the supervision of Mr. Yassin
Saifi academic year 2024– 25 on the project “Hospital
Management System” as per the guidelines issued by
Central Board of Secondary Education(CBSE).
Signature of Principal
Acknowledgment
I am thankful to my Cs teacher Mr. Yassin Saifi who helped
and guided me while making this project.
(PATIENTS, DOCTORS
APPOINTMENT
DETAILS)
1. Brief Review of the Project
Title
Introduction
5. User Documentation
6 .Conclusion
7. Bibliography
1.BRIEF REVIEW OF
PROJECT
1.2 Introduction:
hospitals.
data.
programs.
application.
It is used in:
1. Software Development
2.Web Development
3.System Scripting
4.Mathematics
That is why I have selected Python
programming language for my project.
CHOICE OF DATABASE
MySQL is a free-to-use, open-source database
1. Data Security
MySQL is globally renowned for being the most
secure and reliable database management system
used in popular web applications like WordPress,
Drupal, Joomla, Facebook and Twitter. The data
security and support for transactional processing
that accompany the recent version of MySQL,
can greatly benefit any business especially if it is
an eCommerce business that involves frequent
money transfers.
2. On-Demand Scalability
MySQL offers unmatched scalability to facilitate
the management of deeply embedded apps using
a smaller footprint even in massive warehouses
that stack terabytes of data. On-demand
flexibility is the star feature of MySQL. This open
source solution allows complete customization to
eCommerce businesses with unique database
server requirements.
3. High Performance
MySQL features a distinct storage-engine
framework that facilitates system administrators
to configure the MySQL database server for a
flawless performance. Whether it is an
eCommerce website that receives a million
queries every single day or a high-speed
transactional processing system, MySQL is
designed to meet even the most demanding
applications while ensuring optimum speed, full-
text indexes and unique memory caches for
enhanced performance.
4. Round-The-Clock Uptime
My SQL comes with the assurance of 24X7 uptime and
replication configurations.
1. Python Language
2. Mysql 8
3. PIP
host:localhost
user :
root
password:
abcd
database:
jnv
tables: patients, doctors,
appointments(with
following details)
def display_patients(self):
if not self.patients:
print("No patients found.")
else:
print("\n--- Patient Details ---")
for patient in self.patients:
print(f"ID: {patient['id']}, Name:
{patient['name']}, Cell: {patient['cell']}")
def display_doctors(self):
if not self.doctors:
print("No doctors found.")
else:
print("\n--- Doctor Details ---")
for doctor in self.doctors:
print(f"ID: {doctor['id']}, Name: {doctor['name']},
Specialty: {doctor['specialty']}")
def display_appointments(self):
if not self.appointments:
print("No appointments found.")
else:
print("\n--- Appointment Details ---")
for appointment in self.appointments:
print(f"Transaction ID: {appointment['id']},
Patient ID: {appointment['patient_id']}, "
f"Doctor ID: {appointment['doctor_id']},
Fees: {appointment['fees']}, "
f"Date: {appointment['date']}")
def add_patient(self):
patient_id = input("Enter Patient ID: ")
name = input("Enter Patient Name: ")
cell = input("Enter Patient Cell Number: ")
self.patients.append({'id': patient_id, 'name': name,
'cell': cell})
print("Patient added successfully.")
def add_doctor(self):
doctor_id = input("Enter Doctor ID: ")
name = input("Enter Doctor Name: ")
specialty = input("Enter Doctor Specialty: ")
self.doctors.append({'id': doctor_id, 'name': name,
'specialty': specialty})
print("Doctor added successfully.")
def add_appointment(self):
print("\n--- Previous Appointments ---")
self.display_appointments()
transaction_id = input("Enter New Transaction ID: ")
patient_id = input("Enter Patient ID: ")
doctor_id = input("Enter Doctor ID: ")
fees = float(input("Enter Fees: "))
date = input("Enter Appointment Date: ")
if not patient:
print("Patient not found. Please add the patient
first.")
return
if not doctor:
print("Doctor not found. Please add the doctor first.")
return
self.appointments.append({
'id': transaction_id,
'patient_id': patient_id,
'doctor_id': doctor_id,
'fees': fees,
'date': date
})
print("Appointment added successfully.")
def menu(self):
while True:
print("\n--- Hospital Management System ---")
print("1. Display All Patients")
print("2. Display All Doctors")
print("3. Display All Appointments")
print("4. Add Patient")
print("5. Add Doctor")
print("6. Add Appointment")
print("7. Exit")
if choice == '1':
self.display_patients()
elif choice == '2':
self.display_doctors()
elif choice == '3':
self.display_appointments()
elif choice == '4':
self.add_patient()
elif choice == '5':
self.add_doctor()
elif choice == '6':
self.add_appointment()
elif choice == '7':
print("Exiting the system. Goodbye!")
break
else:
print("Invalid choice. Please try again.")
WELCOME TO HOSPITAL
MANAGEMENT SYSTEM
1. DISPLAY ALL PATIENTS DETAILS
2. DISPLAY ALL DOCTORS DETAILS
3. DISPLAY AL LAPPO INTMENT DETAILS
4. ADDPATIENT DETAILS
5. ADDDOCTOR DETAILS
6. APPOINTMENT DETAILS
Enter your choice (1-6):4
Enter Patient ID: 2002
Enter Patient Name
: B.SUBBA RAO
Enter Patient Cell
Number:
9876453456
Do you want to continue.....Y/N Y
WELCOME TO HOSPITAL
MANAGEMENT SYSTEM
WELCOME TO HOSPITAL
MANAGEMENT SYSTEM
choice (1-6):5
Enter Doctor
ID: 102
Enter Doctor Name: Dr. SUNITHA
Enter Doctor Cell Number : 8884565768
Do you want to continue.....Y/N Y
Previous Appointments....
Transaction ID: 1Patient ID= 2001 Doctor
ID= 101 Fees=500.
Appointment Date=2022-02-15
Enter New
Transaction
ID: 2 Enter
Patient ID :
2002Enter
Doctor ID :
102
Enter Fees: 700
Enter Appointment
Date: 2022-02-16 Do
you want to continue
....................... Y/N
Y
WELCOME TO HOSPITAL MANAGEMENT SYSTEM
WELCOME TO LIBRARY
MANAGEMENT SYSTEM
8.BIBLIOGRAPHY