Professional Documents
Culture Documents
Covid Management System 6
Covid Management System 6
Covid Management System 6
Principal
ACKNOWLEDGEMENT
Acknowledgement
Project Title
Introduction
Objective
Limitations
System Implementation
Database creation
Output screens
References
Project Title
COVID Management system
Introduction
This software project is developed to automate the
functionalities of hospitals. The purpose of the software
project is to develop a program which provides a friendly
interface for the higher authority to manage the accounts of
clients and to know their information.
Objective
The objective of the software project is to develop the
functions of hospitals. This software project is also aimed to
enhance the current record keeping system, which will help
managers to retrieve the up-to-date information at right time
in right shape.
The proposed software system is expected to do the following
functionalities.
1. admin
(sno int not null AUTO_INCREMENT PRIMARY KEY, username varchar(255) not null,
password varchar(255) not null)
2. patients
(sno int not NULL AUTO_INCREMENT PRIMARY KEY, name varchar(255) not null,
age varchar(255) not null, gender char(1) not null, date date not null )
3. staff
(sno int not null AUTO_INCREMENT PRIMARY KEY, name varchar(255) not null, age
varchar(255) not null, gender char(1) not null, post varchar(255) not null, salary varchar(255)
not null )
Setting the Connection
The python module mysql.connector has been used in this
project to establish the connection with the MySQL database
with python.
Syntax:
import mysql.connector
mydb = mysql.connector.connect(host='127.0.0.1',user='root',
password='1234', auth_plugin='mysql_native_password')
if (mydb.is_connected()):
print(datetime.datetime.now())
print('Connected sucessfully with the database')
Python Program Code
#Project on covid management system
import mysql.connector
import datetime
import sys
# Connecting to database
mydb = mysql.connector.connect(
if (mydb.is_connected()):
print(datetime.datetime.now())
print('-------------------------------------------------------')
print('* *')
print('* *')
print('---------------------------------------------------------')
else:
mycursor = mydb.cursor()
mycursor.execute('use covid_management')
mycursor.execute('create table if not exists staff(sno int not null AUTO_INCREMENT PRIMARY KEY,
name varchar(255) not null, age varchar(255) not null, gender char(1) not null, post varchar(255)
not null, salary varchar(255) not null )')
mycursor.execute(
'create table if not exists admin(sno int not null AUTO_INCREMENT PRIMARY KEY, username
varchar(255) not null, password varchar(255) not null)')
mycursor.execute(
'create table if not exists sno(patients varchar(255) not null, staff varchar(255) not null)')
z=0
for i in mycursor:
z=1
if z == 0:
mydb.commit()
j=0
for i in mycursor:
j=1
if (j == 0):
mycursor.execute(
mydb.commit()
loop1 = 'y'
print('_________________')
print("1.Admin: ")
print('2.Patients: ')
print('3.staff: ')
print('__________________')
if (ch1 == 1):
for i in mycursor:
username, password = i
if (pas == password):
loop2 = 'n'
print("_________________")
print("1.Add Patients")
print("2.Add Staff")
print('5.Change Password')
print('6.Remove Patients')
print('7.Remove Staff')
print('10.Logout')
if (ch2 == 1):
loop3 = 'y'
patient, staff = i
patient = int(patient) + 1
mycursor.execute(
mydb.commit()
mydb.commit()
t=0
for i in mycursor:
t += 1
print(
loop3 = input(
loop3 = 'y'
for i in mycursor:
patient, staff = i
staff = int(staff) + 1
mycursor.execute(
mycursor.execute(
mydb.commit()
t=0
for i in mycursor:
t += 1
t_id2, name2, age2, gender2, date2 = ["", "", "", "", ""]
mycursor.execute(query, [idd])
for i in mycursor:
mycursor.execute(query, [idd])
for i in mycursor:
for i in mycursor:
username, password = i
if (pas == password):
mycursor.execute(
mydb.commit()
else:
print("Wrong Password......")
loop3 = "y"
mycursor.execute(query, [idd])
print('Patient delete sucessfully....')
loop3 = input(
loop3 = "y"
mycursor.execute(query, [idd])
loop3 = input(
t_id2, name2, age2, gender2, date2 = ["", "", "", "", ""]
mycursor.execute(query)
rows = mycursor.fetchall()
for i in rows:
mycursor.execute(query)
rows = mycursor.fetchall()
for i in rows:
print('Successful logout')
break
dry_cough = 'n'
cough = 'n'
temp = "low"
else:
temp = 'high'
if (dry_cough == 'y' and snneze == 'y' and weakness == 'y' and temp == 'high' and breath ==
'y'):
print(
'Sorry to say but According to guidelines You are suffering from corona...')
for i in mycursor:
patient, staff = i
patient = int(patient) + 1
mycursor.execute(
mydb.commit()
t=0
for i in mycursor:
t += 1
elif (cough == 'y' and snneze == 'y' and pain == 'n' and weakness == 'n' and temp == 'low' and
breath == 'n'):
else:
print(
'you are not infected from corona, if you are feeling wrong you just need to rest...')
print('if then also you are not feeling better, consult you doctor.....')
break
Output Screen
Screen 1
Screen 2
Screen 3
Screen 4
Screen 5
Screen 6
Screen 7
Screen 8
Screen 9
Screen 10
Screen 11
Screen 12
Screen 13
References
In order to work on this project titled – Covid
Management System, the following books and literature
are referred by me during the various phases of
development of the project.