0% found this document useful (0 votes)
14 views31 pages

Cs - Project File 11-Jan-08-58-38 - Unlocked

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views31 pages

Cs - Project File 11-Jan-08-58-38 - Unlocked

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

KHALSA MONT.SR.SEC.

SCHOOL
BULANDSHAHR, UTTAR PRADESH -203001

Computer Science
Project
entitled as

Hospital Management System


Submitted By :- Submitted To :-
Name:- Aryan Singh Name :- Yassin Saifi

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 Subject Signature


of External
Teacher Examiner

Signature of Principal
Acknowledgment
I am thankful to my Cs teacher Mr. Yassin Saifi who helped
and guided me while making this project.

Without his guidance my project would have been


incomplete and imperfect.

The guidance and support received from all the members


who contributed and who contributed and who are
contributing to this project, was vital for the success of the
project.
“HOSPITAL
DATA
MANAGEMENT”

(PATIENTS, DOCTORS
APPOINTMENT
DETAILS)
1. Brief Review of the Project

Title
Introduction

1.1 Choice of Language


1.2 Choice of Data base
2. Prerequisites

3. Program Listing (Source Code)


4. Sample Data

5. User Documentation

6 .Conclusion

7. Bibliography
1.BRIEF REVIEW OF
PROJECT

Title: HOSPITAL DATA


MANAGEMENT

1.2 Introduction:

During search for a project topic, working of

“HOSPITAL DATA MANAGEMENT” impresses

me. Use of computer is very essential and

necessary in all the fields of life. Computerization

of hospital data will obviously save the time and

will offer speed to the work.


Thus it will support to our service to people,

by using computerized mechanism we maintain

all the information. This project is very useful in

handling hospital data as requirements in

hospitals.

This new technique will certainly introduce in

various hospitals for maintaining the hospital

data.

I have tried my level best to make this project

more and more efficient for practical use.


CHOICE OF LANGUAGE

Python is an object oriented programming

language that provides a way of modularizing

programs.

Python is versatile for handling very large

programs. It is suitable for virtually any

programming task including database,

communication system and complex real life

application.

Python programs are easily maintainable


and expandable when a new feature needs
to be implemented. It is very easy to add
to existing structure of an object. In
Python we can create variables at any
place of programs.
Python is a high-level, interpreted,

interactive, and object-oriented scripting

language. Python was designed to be highly

readable which uses English keywords

frequently whereas other languages use

punctuation and it has fewer syntactical

constructions than other languages.

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

that facilitates effective management of

databases by connecting them to the software. It

is a stable, reliable and powerful solution with

advanced features like the following:

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

offers a wide range of high availability solutions like

specialized cluster servers and master/slave

replication configurations.

5. Comprehensive Transactional Support


MySQL tops the list of robust transactional database
engines available on the market. With features
like complete atomic, consistent, isolated,
durable transaction support, multi-version
transaction support, and unrestricted row-level
locking, it is the go-to solution for full data
integrity. It guarantees instant deadlock
identification through server-enforced referential
integrity.
6. Complete Work flow Control
Withtheaveragedownloadandinstallationtimebei
nglessthan30minutes,MySQL means usability
from day one. Whether your platform is Linux,
Microsoft, Macintosh or UNIX, MySQL is a
comprehensive solution with self-management
features that automate everything from space
expansion and configuration to data design and
database administration.
7. Reduced Total Cost Of Ownership
By migrating current database apps to MySQL,
enterprises are enjoying significant cost savings
on new projects. The dependability and ease of
management that accompany MySQL save your
troubleshooting time which is otherwise wasted
in fixing downtime issues and performance
problems.
8. The Flexibility Of Open Source
All the fears and worries that arise in an open
source solution can be brought to an end with My
SQL’s round-the-clock support and enterprise
indemnification. The secure processing and
trusted software of MySQL combine to provide
effective transactions for large volume projects.
It makes maintenance, debugging and upgrades
fast and easy while enhancing the end-user experience
2. PRE REQUISITES

1. Python Language
2. Mysql 8
3. PIP

Mysql Details installed in computer:

host:localhost
user :
root
password:
abcd
database:
jnv
tables: patients, doctors,
appointments(with
following details)

create table patients(pid int primary key,


pname char(20), pcell char(10));
Create table doctors(did int primary key, dname
char(20), dcell char(10));
create table appointments(tidint
primary key, pidint ,did int ,fees
float ,Adate date);
Source Code
class HospitalManagementSystem:
def __init__(self):
self.patients = []
self.doctors = []
self.appointments = []

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: ")

patient = next((p for p in self.patients if p['id'] ==


patient_id), None)
doctor = next((d for d in self.doctors if d['id'] ==
doctor_id), None)

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")

choice = input("Enter your choice (1-7): ")

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.")

# Run the system


if __name__ == "__main__":
hms = HospitalManagementSystem()
hms.menu()
4.Sample Data
WELCOME TO HOSPITAL
MANAGEMENT SYSTEM
1. DISPLAY ALLPATIENTSD ETAILS
2. DISPLAY ALL DOCTORS DETAILS
3. DISPLAY ALL APPOINTMENT DETAILS
4. ADD PATIENT DETAILS
5. ADD DOCTOR DETAILS
6. APPOINTMENT DETAILS
Enter your choice (1-6):4
Enter Patient ID: 2001
Enter Patient Name : K.RAJENDRA
Enter Patient Cell Number: 8734234543
Do you want to continue.....Y/N Y

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

1. DISPLAY ALL PATIENTS DETAILS


2. DISPLAY ALL DOCTORS DETAILS
3. DISPLAY ALL APPOINTMENT
DETAILS
4. ADD PATIENT DETAILS
5. ADD DOCTOR DETAILS
6. APPOINTMENT DETAILS
Enter your choice (1-6): 1
Patient ID: 2001 Patient Name= K.RAJENDRA
Patient Cell=8734234543 Patient ID: 2002
Patient Name=B.SUBBA RAO Patient
Cell=9876453456 Do you want to
continue.....Y/N Y

WELCOME TO HOSPITAL
MANAGEMENT SYSTEM

1. DISPLAY ALL PATIENTS DETAILS


2. DISPLAY ALL DOCTORS DETAILS
3. DISPLAY ALL APPOINTMENT DETAILS
4. ADD PATIENT DETAILS
5. ADD DOCTOR DETAILS
6. APPOINTMENT DETAILS
Enter your choice (1-6):5
Enter Doctor ID: 101
Enter Doctor Name: Dr. MUKESH
Enter Doctor Cell Number: 7773452345
Do you want to
continue.....Y/N Y
WELCOME TO HOSPITAL
MANAGEMENT SYSTEM

1. DISPLAY ALL PATIENTS DETAILS


2. DISPLAY ALL DOCTORS DETAILS
3. DISPLAY ALL APPOINTMENT DETAILS
4. ADD PATIENT DETAILS
5. ADD DOCTOR DETAILS
6. APPOINTMENT DETAILS
Enter your

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

WELCOME TO HOSPITAL MANAGEMENT SYSTEM

1. DISPLAY ALL PATIENTS DETAILS


2. DISPLAY ALL DOCTORS DETAILS
3. DISPLAY ALL APPOINTMENT DETAILS
4. ADD PATIENT DETAILS
5. ADD DOCTOR DETAILS
6. APPOINTMENT DETAILS
Enter your choice (1-6):6

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

1. DISPLAY ALL PATIENTS DETAILS


2. DISPLAY ALL DOCTORS DETAILS
3. DISPLAY ALL APPOINTMENT DETAILS
4. ADD PATIENT DETAILS
5. ADD DOCTOR DETAILS
6. APPOINTMENT DETAILS
Enter your choice (1-6):3
Transaction ID: 1Patient ID= 2001 Doctor
ID= 101 Fees=5 00.0
Appointment Date= 2022-02-15
Transaction ID: 2 Patient
ID=2002DoctorID=102Fees=700.0Appoint
ment
Date=2022-02-16
Do you want to continue.....Y/N N
5.USER DOCUMENTATION
REALLIFE APPLICATIONS

This project is very easy to manage


patients and doctors data in hospitals. This
project is mainly used for the purpose of
hospitals. It handless huge data very efficiently
with 100% accuracy and saves time.
The main - menu is displayed on the
screen. On the main menu the following options
is displayed on the screen.

WELCOME TO LIBRARY
MANAGEMENT SYSTEM

1. DISPLAY ALL PATIENT DETAILS


2. DISPLAY ALL DOCTORS DETAILS
3. DISPLAY ALL APPOINTMENT
DETAILS
4. ADD PATIENT DETAILS
5. ADD DOCTOR DETAILS
6. APPOINTMENT DETAILS
Enter your choice(1-6):
DATA IMPLEMENTATION

For this project, the sample input data


is collected from the user. It is very tedious
and time consuming process .Though a man
have a very intelligent mind but he should
not solve heavy calculations fast and accurate
and he makes errors.
A hospital can use one computer for
the implementation of the project. It
processes automatically important hospital
related data without time waste and without
any errors. This process gives accurate result
with 100% accuracy than manual system.
7. CONCLUSION

While selecting this project, I decided to


make a computerized “Hospital
Management” very efficiently. To make a
provision for user level program facility, to
give flexibility to user and also to make my
software user friendly, all the time return to
the main menu, when the work in the
particular sub-menu is completed! Python is
an object oriented language, it gives the full
facility for any future modification without
any much complexity!

The concept of the Hospital data


management ie Storing patients, doctors and
appointments information using 3 tables ie
patients, doctors and tables. These details is
common in all hospital also this project will
be applicable in each hospital.

This project can be extended to all other


modules of Hospital all like employes salary
module, etc.

8.BIBLIOGRAPHY

1.PYTHON TEXT BOOK FOR CLASSXII -


SUMITA ARORA
2 .Website links, which provides Python,
Mysql .

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy