Beruflich Dokumente
Kultur Dokumente
on
Hospital management
system
Submitted By:
Name:RASHMI KUMARI
Class: XII B
Roll NO:14699645
Kusum Latha
PGT(infromatics
parctices)
K. V. No-1,new delhi
Name:rashmi kumari
Class:XII-B
General Overview of the Problem
1. Hardware Requirement:
intel I3 Processor
Minimum 2 GB RAM
2. Software Requirement:
Windows 7/8/10 OS
Mysql
Tkinter module
A Brief Introduction of Python
GUI apps like Text-Editors are used to create, read, update and
delete different types of files.
GUI apps like Sudoku, Chess and Solitaire are games which you can
play.
GUI apps like Google Chrome, Firefox and Microsoft Edge are
used to browse through the Internet.
They are some different types of GUI apps which we daily use on the
laptops or desktops.
Python has a plethora of libraries and these 4 stands out mainly when it
comes to GUI. There are as follows:
Kivy
Python QT
wxPython
Tkinter
Pyttsx3
# tkinter window
class Application:
def __init__(self, master):
self.master = master
# location
self.location = Label(self.left, text="Location", font=('arial 18 bold'),
fg='black', bg='lightgreen')
self.location.place(x=0, y=220)
# appointment time
self.time = Label(self.left, text="Appointment Time", font=('arial 18
bold'), fg='black', bg='lightgreen')
self.time.place(x=0, y=260)
# phone
self.phone = Label(self.left, text="Phone Number", font=('arial 18
bold'), fg='black', bg='lightgreen')
self.phone.place(x=0, y=300)
# connection to database
conn = sqlite3.connect('database.db')
c = conn.cursor()
# window
class Application:
def __init__(self, master):
self.master = master
self.x = 0
# heading
self.heading = Label(master, text="Appointments", font=('arial 60
bold'), fg='green')
self.heading.place(x=350, y=0)
conn = sqlite3.connect('database.db')
c = conn.cursor()
class Application:
def __init__(self, master):
self.master = master
# heading label
self.heading = Label(master, text="Update Appointments",
fg='steelblue', font=('arial 40 bold'))
self.heading.place(x=150, y=0)
# search button
self.search = Button(master, text="Search", width=12, height=1,
bg='steelblue', command=self.search_db)
self.search.place(x=350, y=102)
# function to search
def search_db(self):
self.input = self.namenet.get()
# execute sql
# button to delete
self.delete = Button(self.master, text="Delete", width=20, height=2,
bg='red', command=self.delete_db)
self.delete.place(x=150, y=380)
def update_db(self):
# declaring the variables to update
self.var1 = self.ent1.get() #updated name
self.var2 = self.ent2.get() #updated age
self.var3 = self.ent3.get() #updated gender
self.var4 = self.ent4.get() #updated location
self.var5 = self.ent5.get() #updated phone
self.var6 = self.ent6.get() #updated time
query = "UPDATE appointments SET name=?, age=?, gender=?,
location=?, phone=?, scheduled_time=? WHERE name LIKE ?"
c.execute(query, (self.var1, self.var2, self.var3, self.var4, self.var5,
self.var6, self.namenet.get(),))
conn.commit()
tkinter.messagebox.showinfo("Updated", "Successfully Updated.")
def delete_db(self):
# delete the appointment
sql2 = "DELETE FROM appointments WHERE name LIKE ?"
c.execute(sql2, (self.namenet.get(),))
conn.commit()
tkinter.messagebox.showinfo("Success", "Deleted Successfully")
self.ent1.destroy()
self.ent2.destroy()
self.ent3.destroy()
self.ent4.destroy()
self.ent5.destroy()
self.ent6.destroy()
# creating the object
root = Tk()
b = Application(root)
root.geometry("1200x720+0+0")
root.resizable(False, False)
root.mainloop()
OUTPUT SCREEN
Limitations of Project and Future implementation
Objective of the project was simple coding. Being a simple coding application has
some limitations-
LOGIN: as there will be no personal page for the patients for past details and
billing enquiry
EXTENSION OF MODULES: Due to small code limited modules has been
implemented. In future some more modules can be integrated like-
DEPARTMENTS: it is a small project and cannot provide every department
appointment or doctor information
SECURITY: security problems can occur in the absence of security function and
can result into the false results or error prone results
Bibliography
The following books and websites have been referred during project
development-
Websites:
https://www.w3schools.com
https://infocode.org
https:// https://github.com