0% found this document useful (0 votes)
3 views24 pages

ip project

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 24

GRAPHITE HIGHER SECONDARY SCHOOL, MANDIDEEP

Session: 2024-2025

Topic hospital Management

For Partial Fulfilment Of Credit For The Informatics Practices Project


Evaluation Of All India Secondary School Certificate Examination-2025 Of
Central Board Of Secondary Education.

SUBMITTED TO SUBMITTED BY
Ms. Vartika Rai Name: yogita oad
P.G.T Roll No. :
ACKNOWLEDGEMENT

I Take This Opportunity To Express My Gratitude In Few Words And Respect To

All Who Helped Me In Completion Of This Investigatory Project. The Successful

Completion Of Any Task Would Be Incomplete Without Mentioning The Name

Of Those Entire People Who Helped Me To Make It Possible.

It Is My Pleasure To Acknowledge My Deep Sense Of Gratitude Ad Heartfelt

Indebtedness To My Informatics Practices Teacher Ms. Vartika Rai For Her

Valuable Support, Constant Help And Guidance At Each And Every Stage,

Without Which This Project Would Not Have Come Forth.

I Also Register My Sense Of Gratitude To Our Honourable Principal Mrs.


Swati

Rahatekar For Her Immense Encouragement That Has Made This Project

Successful.

I Would Also Like To Thank My Friends And Family For Their Endless Support

Without Which I Could Not Have Completed This Work On Time.

Name Of Student:yogita oad


Class: 12 th ‘B’
GRAPHITE HIGHE SECOND SCHOOL

CERTIFICATE

This is to certify that MISS YOGITA OAD, Roll No. , of


class XII-B has successfully completed the project entitled “hospital
management” under the guidance of Ms. Vartika rai, P.G.T , during
the academic year 2024-25 in partial fulfilment of English practical of
AISSCE-2025 conducted by CBSE. He has taken proper care and
shown utmost sincerity in completing this project. I certify that this
project is up to my expectations and as per the guidelines issued by
CBSE.

Internal’s Signature Principal’s Signature


(P.G.T )

External’s Signature
INTRODUCTION
A Hospital Management System (HMS) is an integrated
software solution used by healthcare institutions, such
as hospitals, clinics, and medical centers, to manage
various administrative, clinical, and financial
operations. The primary aim is to streamline hospital
activities and improve the overall quality of patient
care. The key functionalities of an HMS include:

1. Patient Management: Recording patient details,


appointment scheduling, admission and
discharge processes.
2. Medical Records Management: Storing and
managing patient medical history, test results,
and diagnoses.
3. Billing and Accounting: Generating bills for
consultations, treatments, and hospital services,
and handling payments.
4. Inventory Management: Managing hospital
supplies like medicines, medical equipment, and
consumables.
5. Staff Management: Managing details of doctors,
nurses, and other hospital staff, including
schedules, payroll, and performance
6. Reporting: Generating various reports for better
decision-making, performance analysis, and
compliance with healthcare standards
A CSV (Comma Separated Values) file is a simple text-
based file format used to store and exchange data
in a tabular form. In the context of a Hospital
Management System
PROBLEM IDENTIFIED
traditional manual hospital system the following
problems are commonly encountered ,

1. Manual Processes and Paper-Based Records:


Many traditional systems rely heavily on paper
records and manual processes, which can lead to
data loss, errors, and delays in patient care. This
also makes it difficult to quickly access and share
patient information.
2. Inefficient Communication: Communication
between different departments (e.g., doctors,
nurses, billing, pharmacy) is often fragmented,
leading to delays, miscommunication, and errors in
patient care.
3. Data Duplication and Redundancy: With multiple
departments and records, data duplication often
occurs. This can result in unnecessary tests,
treatments, and billing issues, as patient
information may not be consistently updated
across all systems.
4. Limited Data Analytics:
5. Slow Decision-Making:
OBJECTIVE OF THE PROJECT

 To automate the management of


hospital accounts.
 To allow easy and efficient records of
patients
 To provide persistent data storage using
CSV file .
 To keep patients information safe
and secure.
 To maintain accurate information and
patient details.
Feature of the system
The hospital management system
includes the following key features:
1.Add a New PatientRecord
(newPatient):Collects details such as Patient
ID, Name, Disease, Fee, and Doctor Name.
Saves the record into a CSV file named
Patient.csv.
2.Modify an Existing Patient Record
(editPatient):Reads all patient records and
identifies the record to be modified based on
the Patient ID.
3.Delete a Patient Record (delPatient):
Deletes a record from the file based on the
Patient ID after confirmation from the user.
4.Search for a Patient Record
(searchPatient):Searches for a specific patient
record using the Patient ID and displays the
details.
5.List All Patient Records (listofPatients):
Displays a list of all stored patient records in a
tabular format.
6.Exit the Program:Allows the user to
terminate the program.
TOOLS AND
TECHNOLOGIES USED
PYTHON: is the primary programming
language
Used in this project. Python is chosen because
of Its simplicity, versatility, and strong file
handlingCapabilities. It also provides built-in
libraries like Csv that make it easy to interact
with CSV files.
CSVFiles:CSV (Comma Separated Values) is a
simple file Format that stores tabular data. It
is ideal for Storing pateint accounts,
transaction history, And and customer
records. Python’s csv module used to read
from and write to CSV files in this Project.
DatetimeModule:
SOURCE CODE
Import os
Import csv
Def newPatient():
Print(“Add a new Patient Record”)
Print(“=========================”)
F=open(‘Patient.csv’,’a’,newline=’\r\n’)
S=csv.writer(f)
Patientid=input(‘Enter Patient id=’)
Patientname=input(‘Enter Patient name=’)
Disease=input(‘Enter Disease=’)
Fee=float(input(‘Enter Fee=’))
Doctorname=input(‘Enter name of Doctor=’)
Print(“----------------------------------------------------“)

Rec=[Patientid,Patientname,Disease,fee,Doctorname]
s.writerow(rec)
f.close( print(“Patient Record Saved”)
input(“Press any key to continue..”)
def editPatient():
print(“Modify a Patient Record”)
print(“=========================”)
f=open(‘Patient.csv’,’r’,newline=’\r\n’)
f1=open(‘temp.csv’,’w’,newline=’\r\n’)
f1=open(‘temp.csv’,’a’,newline=’\r\n’)
r=input(‘Enter Patientid whose record you want to
modify=’)
s=csv.reader(f)
s1=csv.writer(f1)
for rec in s:
if rec[0]==r:
print(“-------------------------------“)
print(“Patient id=”,rec[0])
print(“Patient Name=”,rec[1])
print(“Disease=”,rec[2])
print(“Fee=”,rec[3])
print(“Name of Doctor=”,rec[4])
print(“-------------------------------“)
choice=input(“Do you want to modify this Patient
Record(y/n)=”
if choice==’y’ or choice==’Y’:
print(“--------------------------------------------------“)
Patientid=input(‘Enter new Patient id(if required)=’)
Patientname=input(‘Enter new Patient name(if
required)=’)
Disease=input(‘Enter Disease=’)
Fee=float(input(‘Enter Fee=’))
Doctorname=input(‘Enter name of Doctor=’)
Print(“--------------------------------------------------“)
Rec=[Patientid,Patientname,Disease,fee,Doctorname]
S1.writerow(rec)
Print(“Patient Record Modified”)
Else:
S1.writerow(rec)
Else:
S1.writerow(rec)
f.close()
f1.close()
os.remove(“Patient.csv”)
os.rename(“temp.csv”,”Patient.csv”)

input(“Press any key to continue..”)

def delPatient():
f=open(‘Patient.csv’,’r’,newline=’\r\n’)
f1=open(‘temp.csv’,’w’,newline=’\r\n’)
f1=open(‘temp.csv’,’a’,newline=’\r\n’)
r=input(‘Enter Patientid whose record you want to
delete’)
s=csv.reader(f)
s1=csv.writer(f1)
for rec in s:
if rec[0]==r:
print(“-------------------------------“)
print(“Patient id=”,rec[0])
print(“Patient Name=”,rec[1])
print(“Disease=”,rec[2])
print(“Fee=”,rec[3])
print(“Name of Doctor=”,rec[4])
print(“-------------------------------“)
choice=input(“Do you want to delete this Patient
Record(y/n)”)
if choice==’y’ or choice==’Y’:
pass
print(“Patient Record Deleted….”)
else:
s1.writerow(rec)
else:
s1.writerow(rec)
f.close()
f1.close()
os.remove(“Patient.csv”)
os.rename(“temp.csv”,”Patient.csv”)

input(“Press any key to continue..”)


def searchPatient():
print(“Search a Patient Record”)
print(“=====================”)
f=open(‘Patient.csv’,’r’,newline=’\r\n’)
r=input(‘Enter Patientid you want to search’)
s=csv.reader(f)
for rec in s:
if rec[0]==r:
print(“-------------------------------“)
print(“Patient id=”,rec[0])
print(“Patient Name=”,rec[1])
print(“Disease=”,rec[2])
print(“Fee=”,rec[3])
print(“Name of Doctor=”,rec[4])
print(“-------------------------------“)
else:
print(“Entered patient id does not found”)
f.close()
input(“Press any key to continue..”)
def listofPatients():

print(“=======================================
==============================”)
print(“ List of All Patients”)

print(“=======================================
==============================”)
f=open(‘Patient.csv’,’r’,newline=’\r\n’)
s=csv.reader(f)
i=1
for rec in s:
print(rec[0],end=”\t\t”)
print(rec[1],end=”\t\t”)
print(rec[2],end=”\t\t”)
print(rec[3],end=”\t\t”)
print(rec[4])
i+=1
f.close()
print(“----------------------------------------------------------------
------“) input(“Press any key to continue..”)
def menu():
choice=0
while choice!=6:
print(“\n”)
print(“|--------------------------|”)
print(“| Hospital Management System |”)
print(“| -------------------------|”)
print(‘\n’)
print(“########################”)
print(“ Menu”)
print(“########################”)
print(“1. Add a new Patient Record”)
print(“2. Modify Existing Patient “)
print(“3. Delete Existing Patient “)
print(“4. Search a Patient”)
print(“5. List all Patients”)
print(“6. Exit”)
print(“-------------------------------“)
choice=int(input(‘Enter your choice’))
print(“-------------------------------“)
if choice==1:
newPatient()
elif choice==2:
editPatient()
elif choice==3:
delPatient()
elif choice==4:
searchPatient()
elif choice==5:
listofPatients()
elif choice==6:
print(“Software Exited..
break
menu()
OUTPUT
Pateint-1
CSV FILE
CONCLUSION
Conclusion for a Hospital Management System Using
Python and CSV
Developing a hospital management system using
Python and CSV files offers a simple yet effective way to
manage hospital operations.
Efficiency: Python’s versatility makes it suitable for
handling data, while CSV files provide a lightweight and
accessible format for storing information like patient
Cost-Effectiveness: This approach eliminates he need
for complex databases, making it an affordable solution
for small to medium-sized healthcare facilities.
Ease of Use: CSV files are easy to create, update, and
integrate with Python scripts, enabling quick dataa
In conclusion, using Python and CSV files for a hospital
management system is a practical choice for
developing a lightweight, user-friendly, and cos
effective solution that can streamline basic hospital
operations efficiently.
Pateint 2

You might also like