Computer Science Project 2022-23: Covid Management System
Computer Science Project 2022-23: Covid Management System
COMPUTER
SCIENCE
PROJECT
2022-23
SUBMITTED BY:
Krishna Priyadarshan Behara, XI (Science)
Certificate
KENDRIYA VIDYALAYA No 2, ARMY VADODARA
Nr. METRO HOSPITAL, SAMA – SAVLI ROAD, BARODA
(GUJARAT) - 390022 PH. (0265) 2481551
Acknowledgement
"There are times when silence speaks so much more loudly than words of
praise to only as good as belittle a person, whose words do not express, but
only put a veneer over true feelings, which are of gratitude at this point of
time."
Last but not the least, I am immensely grateful to my parents who were with
me all the time to encourage and support.
Contents
o Pseudo Code 14
o Algorithm 15
o Flow Chart 16
8 Source Code 17
9 Output 19
10 Conclusions 16
11 References / Bibliography 17
COVID
MANAGEMENT SYSTEM
[C-19MS]
Introduction
The Covid Management System (C-19MS) is designed for any hospital to keep
a record of Covid-19 patients reported/ registered (as in-patient or out-
patient) replacing their existing manual, paper-based system. This System
targets to provide complete data pertaining to COVID pandemic for the ease
of Hospital and Health care services. This System can be used in any Hospital,
Clinic, Diagnostics or Pathology labs for maintaining patient details and their
test results. It integrates the entire COVID data of a Hospital into One
Integrated Software Application.
The objective of this project is to let the students apply the programming
knowledge into a real-world situation and/or problem and to get exposure how
programming skills helps in developing a good software. It enhances the
knowledge with respect to:
Information Gathering
Libraries such as NumPy, SciPy, and Matplotlib allow the effective use of
Python in scientific computing with specialized libraries such as Biopython and
Astropy providing domain-specific functionality. SageMath is a computer
algebra system with a notebook interface programmable in Python: its library
covers many aspects of mathematics, including algebra, combinatorics,
numerical mathematics, number theory, and calculus.
Relational Databases:
A database may be defined as a collection of interrelated data stored together
to serve multiple applications. A DBMS (Data Base Management System)
refers to a software that is responsible for storing, maintaining and utilizing
databases. A database along with a DBMS is called a database system.
Examples of some common RDBMS are: Oracle database, Microsoft SQL
server, MYSQL, IBM DB2, IBM Informix, SAP Sybase IQ, Teradata, and
PostgreSQL etc. Out of these, MySQL, PostgreSQL, and SQLite are opensource
implementations.
MySQL is a relational DBMS that can run on virtually all platforms, including
Linux, UNIX and Windows. MySQL is a part of open-source enterprise stack
LAMP (Linux, Apache, MySQL, PHP).
more easily managed segments or phases and each phase takes the outcome
from the previous phase to proceed further. Segmenting projects allows
managers to verify the successful completion of project phases before
allocating resources to subsequent phases.
Software development projects typically include initiation, planning, design,
development, testing, implementation, and maintenance phases. However,
the phases may be divided differently depending on the organization
involved.
Steps in SDLC
SDLC can be made up of multiple steps. There is no concrete set number of
steps involved. Around seven or eight steps appear commonly; however,
there can be anywhere from five upwards to 12. Typically, the more steps
defined in an SDLC model, the more granular the stages are.
In general, an SDLC methodology follows these following steps:
Design: The proposed system is designed. Plans are laid out concerning the
physical construction, hardware, operating systems, programming,
communications and security issues.
Upkeep and maintenance: This step involves changing and updating the
system once it is in place. Hardware or software may need to be upgraded,
replaced or changed in some way to better fit the needs of the end-users
continuously. Users of the system should be kept up-to-date concerning the
latest modifications and procedures.
Feasibility Study
And in a pandemic situation, where countless people enter and exit the
hospital in a day and maintaining their records accurately and safely is
tedious. To reduce this type of burdens and to manage the financial, hospital
administration and clinical aspects, Covid Management System is the only
solution.
A Covid Management System can address to the most critical area which
includes enhanced diagnosis and care, smooth facility operation, data
availability at the fingertips, cost savings, and real-time data access, among
others. Some of the most significant utilities of C-19MS are:
The patient’s health report and medical history from the past to the present,
as well as the illness he is suffering from and the care he received, can all be
added to and accessed via C-19MS. Using this knowledge, doctors can better
assess patients’ health problems, ultimately empowering them to provide the
best care possible. Also, these data may help to combat the pandemic.
With C-19MS, you will have all of the real time data & details you need at your
fingertips, including the patient’s medical history, inventory, finance,
workforce, and more. You can use this knowledge to figure out what flaws
there are in the system or in which department and how to fix them. The
information also aids you in developing a long-term strategy for your
healthcare facility.
A lot of tasks are assigned to the software to perform with utmost accuracy
with minimum human intervention, thus scope of error is reduced
dramatically. Thus, helping them to make precise decisions, improve hospital productivity and
control on pandemic effectively.
Keeping the data safe with only authorized personnel getting access to it and
retrieving it in the minimum possible time. Retrieve-ability of data stored on a
server or cloud is only a matter of few clicks and the data will appear on the
screen within seconds.
A Covid Management System makes sure that the operational and clinical
decision-making process is fast, accurate, and efficient. With an easy, single
view availability of data points, doctors and medical support staff gets
facilitated.
It allows doctors to grasp early signs and symptoms of potential diseases and
enables them to provide immediate treatment or prepare the patient for the
next phase of their care.
Analysis
Our project uses Python3.0 as its base programming language and uses the
file handling feature of python programming.
● Patients.
Each category has a separate set of algorithms and functions that creates our
database. A user can either access data regarding its staff or its patients.
Each entry in both the databases have a unique ID which associates the
person with that person’s medical or administrative data in the system.
Management-Oriented Features:
⮚ Doctor and Other Staff Record Database: Allows users to plan,
search and browse their databases. Also allows sharing some limited
information with patients in order to make appointments.
⮚ Adding Staffs to the Database: A very simple process. It includes
entering their Name, Age, Gender, Mobile, Post and Salary. The
entry automatically gets an ID which can be later used to locate that
particular entry in the database.
Patient-Oriented Functions:
⮚ Patient Medical Record Database: Allows users to plan, search and
browse their databases. Also allows sharing information with the
doctors in order to execute perfect diagnosis.
Design
Pseudo Code:
BEGIN
Import CSV python module
Input 1 for admin
Def patient medical record:
input (‘Enter patient name:’)
input (‘Enter patient age:’)
input (‘Enter patient gender:’)
input (‘Enter patient phone no.:’)
input (‘Enter the date of RTPCR test Result:’)
input (‘Enter the date of earliest symptoms:’)
input (‘Is the patient diabetic:’)
input (‘Does the patient has B.P.:’)
input (‘Is the patient under any continuous medications:’)
Def staff record:
input (‘Enter staff name:’)
input (‘Enter staff age:’)
input (‘Enter staff gender:’)
input (‘Enter staff phone no.:’)
input (‘Enter staff post:’)
input (‘Enter salary:’)
If choice ==2:
staff record
enter info to database
return to admin
If choice ==3:
print (patient medical record)
return to admin
If choice ==4:
print (staff record)
return to admin
If choice ==5:
ID = input (‘Enter patient ID’)
remove ID from patient database
return to admin
If choice ==6:
ID = input (‘Enter staff ID’)
remove ID from staff database
return to admin
If choice ==7:
ID = input (‘Enter patient ID’)
If patient found print (found) and print (record)
Else print (not found)
return to admin
If choice ==8:
Select patient
Update the date
return to admin
If choice==9:
break
END
Algorithm:
STEP 1. START
i. Add patient
v. Remove patient
vii. Logout
STEP 27. If record found then Display - record else Display - not found
Flow Chart:
Source Code
import csv
# Patient's Medical record
def patient_mr(n):
with open('patient record.csv','w',newline='')as f:
fw=csv.writer(f)
pheader=['ID','Name','Age','Gender','Phone number','RTPCR test result
date',' Date of earliest symptoms','Any comorbidities']
fw.writerow(pheader)
for i in range(n):
p_id=input('Enter patient ID:\n')
p_name=input('Enter patient\'s name:\n')
p_age=input('Enter patient\'s age:\n')
p_gen=input('Enter patient\'s gender:\n')
p_phone=input('Enter patient\'s phone number:\n')
p_rtpcr=input('Enter the date of RTPCR test result:\n')
p_es =input('Enter the date of earliest symptoms shown:\n')
p_med=input('Any comorbidities:\n')
p_record=[p_id,p_name,p_age,p_gen,p_phone,p_rtpcr,p_es,p_med]
fw.writerow(p_record)
sheader=['ID','Name','Age','Gender','Phonenumber','Address','Post
', 'Salary']
fw.writerow(sheader)
for i in range(n):
s_id=input('Enter staff ID:\n')
s_name=input('Enter staff name:\n')
s_age=input('Enter staff age:\n')
s_gen=input('Enter staff gender:\n')
s_phone=input('Enter staff phone number:\n')
s_add=input('Enter address of the staff:\n')
s_post =input('Enter post:\n')
s_sal=input('Staff salary')
s_record=[s_id,s_name,s_age,s_gen,s_phone,s_add,s_post,s_
sal]
fw.writerow(s_record)
#Creating databases
n=int(input('Enter the no. of patients to be written on the database'))
patient_mr(n)
k=int(input('Enter the no. of staff to be written on the database'))
staff_record(k)
import csv
# adding patient record
def addpatient_mr():
with open('patient record.csv','a',newline='')as f:
fw=csv.writer(f)
n=int(input('Enter the no. of patients to be added to the
database'))
for i in range(n):
p_id=input('Enter patient ID:\n')
p_name=input('Enter patient\'s name:\n')
p_age=input('Enter patient\'s age:\n')
p_gen=input('Enter patient\'s gender:\n')
p_phone=input('Enter patient\'s phone number:\n')
p_rtpcr=input('Enter the date of RTPCR test result:\n')
p_es =input('Enter the date of earliest symptoms shown:\n')
p_med=input('Any comorbidities:\n')
p_record=[p_id,p_name,p_age,p_gen,p_phone,p_rtpcr,
p_es,p_med]
fw.writerow(p_record)
l.remove(i)
fw.writerows(l)
# search patient data
def search_pat():
n=input('Enter patient id to be searched:\n')
f=open('patient record.csv','r')
fo=csv.reader(f)
for i in fo:
if i[0]==n:
print('Record Found')
print(i)
break
else:
print("Record not Found")
f.close()
#__MAIN__
s=input('''_______THE COVID MANAGEMENT SYSTEM_______
elif choice=='4':
displaystaff()
elif choice=='5':
removepmr()
elif choice=='6':
removestf()
elif choice=='7':
search_pat()
elif choice=='8':
update_date()
elif choice=='9':
print("Logout Successful")
break
play()
Output
6. Updated Records:
7. Exit:
References / Bibliography
● Wikipedia
● Internet Sites.
*****