Hospital Management Project
Hospital Management Project
Objectives:
2. To implement features like patient registration, doctor assignment, appointment scheduling, and bill gene
Modules:
Python Code:
import datetime
patients = []
doctors = []
appointments = []
def menu():
print("5. Exit")
# Patient Management
def manage_patients():
if choice == 1:
add_patient()
elif choice == 2:
view_patients()
elif choice == 3:
update_patient()
elif choice == 4:
delete_patient()
else:
print("Invalid choice!")
def add_patient():
patient_id = len(patients) + 1
def view_patients():
Disease: {patient['Disease']}")
def update_patient():
if patient["ID"] == patient_id:
return
def delete_patient():
global patients
# Doctor Management
def manage_doctors():
if choice == 1:
add_doctor()
elif choice == 2:
view_doctors()
else:
print("Invalid choice!")
def add_doctor():
doctor_id = len(doctors) + 1
def view_doctors():
# Appointment Scheduling
def schedule_appointment():
# Billing System
def generate_bill():
# Main Function
while True:
menu()
if choice == 1:
manage_patients()
elif choice == 2:
manage_doctors()
elif choice == 3:
schedule_appointment()
elif choice == 4:
generate_bill()
elif choice == 5:
break
else:
print("Invalid choice!")