Professional Documents
Culture Documents
IT Workshop (Python)
Project Report
On
Covid Patient’s Information Management System
SY B-Tech Computer Engineering
Group Members:
Year: 2020-21
Index
It provides a graphical user interface wherein the user can input the
details of a patient so that it would act as a document within the database. The
user can also perform various operations on the data.
He/she can add a new report, update, search and moreover the admin
can delete the report and also display all the records within the database. The
application design is simple so that user won’t find it tough to use.
1
2. DATABASE SELECTION
We have chosen SQLite database in our project because:
SQLite is an embeddable open source database, written in C and
queryable with conventional SQL. SQLite is designed to be fast, portable, and
reliable.
Many languages have high-level bindings for SQLite as a library, and can
use that in conjunction with other database access layers for the language.
Python, for instance, bundles the SQLite library as a standard-issue element
with the stock version of the Python interpreter.
2
3. DATABASE DESCRIPTION(ER DIAGRAM)
3
4. DATABASE DESIGN(CLASS DIAGRAM)
4
5. TABLE STRUCTURE
Patient_t:
Vaccine:
5
6. CONNECTING TO DATABASE AND FETCHING THE DATABASE
INTO PYTHON
To query data in a SQLite database from Python, you use these steps:
import sqlite3
conn = sqlite3.connect(sqlite_file)
where the database file (sqlite_file) can reside anywhere on our disk
c = conn.cursor()
4. After that, call the fetchall() method of the cursor object to fetch the data.
Records=c.fetchall()
print(Records)
6
7. IMPLEMENTATION DETAILS
Class MainPage:
Add code to MainPage class based on the class diagram. Wherever needed, the
additional implementation details are given below.
Display():
Display2():
Passwin():
• This function creates a window to take password entry when “Add Patients
Data” button is clicked.
HomePage():
Class HomePage:
Constructor:
• Use default constructor to initialize and configure Home Page window. Add
widgets for needed operations.
insert():
update():
7
• Creates a window with required widgets for taking id of patient for
updating its information.
updateID():
• This function creates object of Update Window class and passes patient’s
id.
Search():
Delete():
Display():
Vaccine():
Class VaccineWindow:
Constructor:
Insert():
Reset():
8
Class DatabaseView:
Constructor:
• Creates a window with tabular structure to view the entries from database
and displays entries from patient_t table.
Class Database2View:
Constructor:
• Creates a window with tabular structure to view the entries from database2
and displays entries from vaccine table.
Class Database:
Constructor:
Destructor:
Insert():
Update():
Search():
Delete():
Display():
9
• Fetches all the entries and returns all the records
Class Database2:
Constructor:
Destructor:
Insert():
Display():
Class Values:
Validate():
Class Values2:
Validate2():
Class InsertWindow:
Constructor :
Insert():
Reset():
10
• Reset all the entries from the form.
Class UpdateWindow:
Constructor:
Update():
Reset():
Class SearchDeleteWindow:
Constructor:
• Creates a common window which is used for search and delete operation.
Search():
Delete():
11
8. SAMPLE OUTPUT
MAIN PAGE:
DATABASE 1 VIEW:
12
DATABASE 2 VIEW:
AUTHENTICATION WINDOW:
13
HOME PAGE: (AFTER CLICKING ON ADD DATA BUTTON ON MAIN
PAGE)
INSERT OPERATION:
14
UPDATE WINDOW:
15
UPDATE DATA:
DELETE WINDOW:
16
AFTER SUCCESSFUL DELETION:
SEARCH WINDOW:
17
REFERENCES
A thorough guide to SQLite database operations in Python (sebastianraschka.com)
18