Hospital Management System Project In Python
The Hospital Management System Project In Python is a system project console based system which is easy to use, In This Article Hospital Management System Python I will teach you the step by step process on how to create a Hospital Management System Python Code.
A Hospital Management System Using Python is a education porposes only, This articles also includes a downloadable Hospital Management System Project In Python With Source Code for free.
So before we proceed, watch the video here how the system works.
To start creating the Hospital Management System Project In Python, make sure that you have PyCharm IDE installed in your computer.
By the way if you are new to python programming and you don’t know what would be the the Python IDE to use, I have here a list of Best Python IDE for Windows, Linux, Mac OS that will suit for you. I also have here How to Download and Install Latest Version of Python on Windows.
Steps on how to create a Hospital Management System Project In Python
Hospital Management System Project In Python
- Step 1: Create a project name.
First step, open the PyCharm IDE and click “file” to create a project name and click the “create” button.
- Step 2: Create a file name.
Second step “right click” your project folder name and click “new” and then click “python file“.
- Step 3: Name your python file.
Third step name your python file, and start creating a Hospital Management System Project In Python.
- Step 4: The actual code of this system.
Now you can start coding and you are free to copy the codes given below.
Main module of the system
This module is the main module of the system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 |
import Read_Hospital_Excel_Sheet import Write_Hospital_Excel_Sheet def AppointmentIndexInDoctorsDataBase (patient_ID) : for i in Doctors_DataBase : for j in Doctors_DataBase[i] : if str(patient_ID) == str(j[0]) : Appointment_index = Doctors_DataBase[i].index(j) return Appointment_index,i print("****************************************************************************") print("* *") print("* Welcome Hospital Management System *") print("* *") print("****************************************************************************") tries = 0 tries_flag = "" while tries_flag != "Close the program" : Pateints_DataBase = Read_Hospital_Excel_Sheet.Read_Patients_DataBase() Doctors_DataBase = Read_Hospital_Excel_Sheet.Read_Doctors_DataBase() print("-----------------------------------------") print("|Enter 1 for Admin mode |\n|Enter 2 for user mode |") print("-----------------------------------------") Admin_user_mode = input("Enter your mode : ") if Admin_user_mode == "1" : #Admin mode print("*****************************************\n| Welcome to admin mode |\n*****************************************") Password = input("Please enter your password : ") while True : if Password == "1234" : print("-----------------------------------------") print("|To manage patients Enter 1 |\n|To manage docotrs Enter 2 |\n|To manage appointments Enter 3 |\n|To be back Enter E |") print("-----------------------------------------") AdminOptions = input ("Enter your choice : ") AdminOptions = AdminOptions.upper() if AdminOptions == "1" : #Admin mode --> Pateints Management print("-----------------------------------------") print("|To add new patient Enter 1 |") print("|To display patient Enter 2 |") print("|To delete patient data Enter 3 |") print("|To edit patient data Enter 4 |") print("|To Back enter B |") print("-----------------------------------------") Admin_choice = input ("Enter your choice : ") Admin_choice = Admin_choice.upper() if Admin_choice == "1" : #Admin mode --> Pateints Management --> Enter new patient data try : #To avoid non integer input patient_ID = int(input("Enter patient ID : ")) while patient_ID in Pateints_DataBase : #if Admin entered used ID patient_ID = int(input("This ID is unavailable, please try another ID : ")) Department=input("Enter patient department : ") DoctorName=input("Enter name of doctor following the case : ") Name =input("Enter patient name : ") Age =input("Enter patient age : ") Gender =input("Enter patient gender : ") Address =input("Enter patient address : ") RoomNumber=input("Enter patient room number : ") Pateints_DataBase[patient_ID]=[Department,DoctorName,Name,Age,Gender,Address,RoomNumber] print("----------------------Patient added successfully----------------------") except : print("Patient ID should be an integer number") elif Admin_choice == "2" : #Admin mode --> Pateints Management --> Display patient data try : #To avoid non integer input patient_ID = int(input("Enter patient ID : ")) while patient_ID not in Pateints_DataBase : patient_ID = int(input("Incorrect ID, Please Enter patient ID : ")) print("\npatient name : ",Pateints_DataBase[patient_ID][2]) print("patient age : ",Pateints_DataBase[patient_ID][3]) print("patient gender : ",Pateints_DataBase[patient_ID][4]) print("patient address : ",Pateints_DataBase[patient_ID][5]) print("patient room number : ",Pateints_DataBase[patient_ID][6]) print("patient is in "+Pateints_DataBase[patient_ID][0]+" department") print("patient is followed by doctor : "+Pateints_DataBase[patient_ID][1]) except : print("Patient ID should be an integer number") elif Admin_choice == "3" : #Admin mode --> Pateints Management --> Delete patient data try : #To avoid non integer input patient_ID = int(input("Enter patient ID : ")) while patient_ID not in Pateints_DataBase : patient_ID = int(input("Incorrect ID, Please Enter patient ID : ")) Pateints_DataBase.pop(patient_ID) print("----------------------Patient data deleted successfully----------------------") except : print("Patient ID should be an integer number") elif Admin_choice == "4" : #Admin mode --> Pateints Management --> Edit patient data try : #To avoid non integer input patient_ID=int(input("Enter patient ID : ")) while patient_ID not in Pateints_DataBase : patient_ID = int(input("Incorrect ID, Please Enter patient ID : ")) while True : print("------------------------------------------") print("|To Edit pateint Department Enter 1 : |") print("|To Edit Doctor following case Enter 2 : |") print("|To Edit pateint Name Enter 3 : |") print("|To Edit pateint Age Enter 4 : |") print("|To Edit pateint Gender Enter 5 : |") print("|To Edit pateint Address Enter 6 : |") print("|To Edit pateint RoomNumber Enter 7 : |") print("|To be Back Enter B |") print("-----------------------------------------") Admin_choice = input("Enter your choice : ") Admin_choice = Admin_choice.upper() if Admin_choice == "1" : Pateints_DataBase[patient_ID][0]=input("\nEnter patient department : ") print("----------------------Patient Department edited successfully----------------------") elif Admin_choice == "2" : Pateints_DataBase[patient_ID][1]=input("\nEnter Doctor follouing case : ") print("----------------------Doctor follouing case edited successfully----------------------") elif Admin_choice == "3" : Pateints_DataBase[patient_ID][2]=input("\nEnter patient name : ") print("----------------------Patient name edited successfully----------------------") elif Admin_choice == "4" : Pateints_DataBase[patient_ID][3]=input("\nEnter patient Age : ") print("----------------------Patient age edited successfully----------------------") elif Admin_choice == "5" : Pateints_DataBase[patient_ID][4]=input("\nEnter patient gender : ") print("----------------------Patient address gender successfully----------------------") elif Admin_choice == "6" : Pateints_DataBase[patient_ID][5]=input("\nEnter patient address : ") print("----------------------Patient address edited successfully----------------------") elif Admin_choice == "7" : Pateints_DataBase[patient_ID][6]=input("\nEnter patient RoomNumber : ") print("----------------------Patient RoomNumber edited successfully----------------------") elif Admin_choice == "B" : break else : print("Please Enter a correct choice") except : print("Patient ID should be an integer number") elif Admin_choice == "B" : #Admin mode --> Pateints Management --> Back break else : print("Please enter a correct choice\n") elif AdminOptions == "2" : #Admin mode --> Doctors Management print("-----------------------------------------") print("|To add new doctor Enter 1 |") print("|To display doctor Enter 2 |") print("|To delete doctor data Enter 3 |") print("|To edit doctor data Enter 4 |") print("|To be back enter B |") print("-----------------------------------------") Admin_choice = input ("Enter your choice : ") Admin_choice = Admin_choice.upper() if Admin_choice == "1" : #Admin mode --> Doctors Management --> Enter new doctor data try : #To avoid non integer input Doctor_ID = int(input("Enter doctor ID : ")) while Doctor_ID in Doctors_DataBase : #if Admin entered used ID Doctor_ID = int(input("This ID is unavailable, please try another ID : ")) Department=input("Enter Doctor department : ") Name =input("Enter Doctor name : ") Address =input("Enter Doctor address : ") Doctors_DataBase[Doctor_ID]=[[Department,Name,Address]] print("----------------------Doctor added successfully----------------------") except : print("Doctor ID should be an integer number") elif Admin_choice == "2" : #Admin mode --> Doctors Management --> Display doctor data try : #To avoid non integer input Doctor_ID = int(input("Enter doctor ID : ")) while Doctor_ID not in Doctors_DataBase : Doctor_ID = int(input("Incorrect ID, Please Enter doctor ID : ")) print("Doctor name : ",Doctors_DataBase[Doctor_ID][0][1]) print("Doctor address : ",Doctors_DataBase[Doctor_ID][0][2]) print("Doctor is in "+Doctors_DataBase[Doctor_ID][0][0]+" department") except : print("Doctor ID should be an integer number") elif Admin_choice == "3" : #Admin mode --> Doctors Management --> Delete doctor data try : #To avoid non integer input Doctor_ID = int(input("Enter doctor ID : ")) while Doctor_ID not in Doctors_DataBase : Doctor_ID = int(input("Incorrect ID, Please Enter doctor ID : ")) Doctors_DataBase.pop(Doctor_ID) print("/----------------------Doctor data deleted successfully----------------------/") except : print("Doctor ID should be an integer number") elif Admin_choice == "4" : #Admin mode --> Doctors Management --> Edit Doctor data try : #To avoid non integer input Doctor_ID=input("Enter doctor ID : ") while Doctor_ID not in Doctors_DataBase : Doctor_ID = int(input("Incorrect ID, Please Enter doctor ID : ")) print("-----------------------------------------") print("|To Edit doctor's department Enter 1 |") print("|To Edit doctor's name Enter 2 |") print("|To Edit doctor's address Enter 3 |") print("To be Back Enter B |") print("-----------------------------------------") Admin_choice=input("Enter your choice : ") Admin_choice = Admin_choice.upper() if Admin_choice == "1" : Doctors_DataBase[Doctor_ID][0][0]=input("Enter Doctor's Department : ") print("/----------------------Doctor's department edited successfully----------------------/") elif Admin_choice == "2" : Doctors_DataBase[Doctor_ID][0][1]=input("Enter Doctor's Name : ") print("----------------------Doctor's name edited successfully----------------------") elif Admin_choice == "3" : Doctors_DataBase[Doctor_ID][0][2]=input("Enter Doctor's Address : ") print("----------------------Doctor's address edited successfully----------------------") elif Admin_choice == "B" : break else : print("\nPlease enter a correct choice\n") except : print("Doctor ID should be an integer number") elif Admin_choice == "B" : #Back break else : print("\nPlease enter a correct choice\n") elif AdminOptions == "3" : #Admin mode --> Appointment Management print("-----------------------------------------") print("|To book an appointment Enter 1 |") print("|To edit an appointment Enter 2 |") print("|To cancel an appointment Enter 3 |") print("|To be back enter B |") print("-----------------------------------------") Admin_choice = input ("Enter your choice : ") Admin_choice = Admin_choice.upper() if Admin_choice == "1" : #Admin mode --> Appointment Management --> Book an appointment try : #To avoid non integer input Doctor_ID = int(input("Enter the ID of doctor : ")) while Doctor_ID not in Doctors_DataBase : Doctor_ID = int(input("Doctor ID incorrect, Please enter a correct doctor ID : ")) print("---------------------------------------------------------") print("|For book an appointment for an exist patient Enter 1 |\n|For book an appointment for a new patient Enter 2 |\n|To be Back Enter B |") print("---------------------------------------------------------") Admin_choice = input ("Enter your choice : ") Admin_choice = Admin_choice.upper() if Admin_choice == "1" : patient_ID = int(input("Enter patient ID : ")) while patient_ID not in Pateints_DataBase : #if Admin entered incorrect ID patient_ID = int(input("Incorrect ID, please Enter a correct patient ID : ")) elif Admin_choice == "2" : patient_ID = int(input("Enter patient ID : ")) while patient_ID in Pateints_DataBase : #if Admin entered used ID patient_ID = int(input("This ID is unavailable, please try another ID : ")) Department=Doctors_DataBase[Doctor_ID][0][0] DoctorName=Doctors_DataBase[Doctor_ID][0][1] Name =input("Enter patient name : ") Age =input("Enter patient age : ") Gender =input("Enter patient gender : ") Address =input("Enter patient address : ") RoomNumber="" Pateints_DataBase[patient_ID]=[Department,DoctorName,Name,Age,Gender,Address,RoomNumber] elif Admin_choice == "B" : break Session_Start = input("Session starts at : ") while Session_Start[ :2] == "11" or Session_Start[ :2] == "12" : Session_Start = input("Appointments should be between 01:00PM to 10:00PM, Please enter a time between working hours : ") for i in Doctors_DataBase[Doctor_ID] : if type(i[0])!=str : while Session_Start >= i[1] and Session_Start < i[2] : Session_Start = input("This appointment is already booked, Please Enter an other time for start of session : ") Session_End = input("Session ends at : ") New_Appointment=list() New_Appointment.append(patient_ID) New_Appointment.append(Session_Start) New_Appointment.append(Session_End) Doctors_DataBase[Doctor_ID].append(New_Appointment) print("/----------------------Appointment booked successfully----------------------/") except : print("Doctor ID should be an integer number") elif Admin_choice == "2" : #Admin mode --> Appointment Management --> Edit an appointment try : #To avoid non integer input patient_ID = int(input("Enter patient ID : ")) while patient_ID not in Pateints_DataBase : patient_ID = int(input("Incorrect Id, Please Enter correct patient ID : ")) try : #To avoid no return function AppointmentIndex,PairKey = AppointmentIndexInDoctorsDataBase(patient_ID) Session_Start = input ("Please enter the new start time : ") while Session_Start[ :2] == "11" or Session_Start[ :2] == "12" : Session_Start = input("Appointments should be between 01:00PM to 10:00PM, Please enter a time between working hours : ") for i in Doctors_DataBase[Doctor_ID] : if type(i[0])!=str : while Session_Start >= i[1] and Session_Start < i[2] : Session_Start = input("This appointment is already booked, Please Enter an other time for start of session : ") Session_End = input ("Please enter the new end time : ") Doctors_DataBase[PairKey][AppointmentIndex]=[patient_ID,Session_Start,Session_End] print("/----------------------appointment edited successfully----------------------/") except : print("No Appointment for this patient") except : print("Doctor ID should be an integer number") elif Admin_choice == "3" : #Admin mode --> Appointment Management --> Cancel an appointment try : #To avoid non integer input patient_ID = int(input("Enter patient ID : ")) while patient_ID not in Pateints_DataBase : patient_ID = int(input("Invorrect ID, Enter patient ID : ")) try : AppointmentIndex,PairKey = AppointmentIndexInDoctorsDataBase(patient_ID) Doctors_DataBase[PairKey].pop(AppointmentIndex) print("/----------------------appointment canceled successfully----------------------/") except : print("No Appointment for this patient") except : #To avoid no return function print("Patient ID should be an integer number") elif Admin_choice == "B" : #Back break else : print("please enter a correct choice") elif AdminOptions == "B" : #Back break else : print("Please enter a correct option") elif Password != "1234" : if tries < 2 : Password = input("Password incorrect, please try again : ") tries += 1 else : print("Incorrect password, no more tries") tries_flag = "Close the program" break Write_Hospital_Excel_Sheet.Write_Patients_DataBase(Pateints_DataBase) Write_Hospital_Excel_Sheet.Write_Doctors_DataBase(Doctors_DataBase) elif Admin_user_mode == "2" : #User mode print("****************************************\n| Welcome to user mode |\n****************************************") while True : print("\n-----------------------------------------") print("|To view hospital's departments Enter 1 |") print("|To view hospital's docotrs Enter 2 |") print("|To view patients' residents Enter 3 |") print("|To view patient's details Enter 4 |") print("|To view doctor's appointments Enter 5 |") print("|To be Back Enter B |") print("-----------------------------------------") UserOptions = input("Enter your choice : ") UserOptions = UserOptions.upper() if UserOptions == "1" : #User mode --> view hospital's departments print("Hospital's departments :") for i in Doctors_DataBase : print(" "+Doctors_DataBase[i][0][0]) elif UserOptions == "2" : #User mode --> view hospital's Doctors print("Hospital's doctors :") for i in Doctors_DataBase : print(" "+Doctors_DataBase[i][0][1]+" in "+Doctors_DataBase[i][0][0]+" department, from "+Doctors_DataBase[i][0][2]) elif UserOptions == "3" : #User mode --> view patients' residents for i in Pateints_DataBase : print(" Patient : "+Pateints_DataBase[i][2]+" in "+Pateints_DataBase[i][0]+" department and followed by "+Pateints_DataBase[i][1]+", age : "+Pateints_DataBase[i][3]+", from : "+Pateints_DataBase[i][5]+", RoomNumber : "+Pateints_DataBase[i][6]) elif UserOptions == "4" : #User mode --> view patient's details try : #To avoid non integer input patient_ID = int(input("Enter patient's ID : ")) while patient_ID not in Pateints_DataBase : patient_ID = int(input("Incorrect Id, Please enter patient ID : ")) print(" patient name : ",Pateints_DataBase[patient_ID][2]) print(" patient age : ",Pateints_DataBase[patient_ID][3]) print(" patient gender : ",Pateints_DataBase[patient_ID][4]) print(" patient address : ",Pateints_DataBase[patient_ID][5]) print(" patient room number : ",Pateints_DataBase[patient_ID][6]) print(" patient is in "+Pateints_DataBase[patient_ID][0]+" department") print(" patient is followed by doctor : "+Pateints_DataBase[patient_ID][1]) except : print("Patient ID should be an integer number") elif UserOptions == "5" : #User mode --> view doctor's appointments try : #To avoid non integer input Doctor_ID = int(input("Enter doctor's ID : ")) while Doctor_ID not in Doctors_DataBase : Doctor_ID = int(input("Incorrect Id, Please enter doctor ID : ")) print(Doctors_DataBase[Doctor_ID][0][1]+" has appointments :") for i in Doctors_DataBase[Doctor_ID] : if type(i[0])==str : continue else : print(" from : "+i[1]+" to : "+i[2]) except : print("Doctor ID should be an integer number") elif UserOptions == "B" : #Back break else : print("Please Enter a correct choice") else : print("Please choice just 1 or 2") |
Output:

This module is for getting the data from the excel file
In this module we can get the data of the appointment details,doctor details and the patient details from the excel file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
def Read_Patients_DataBase() : myfile = open("Patients_DataBase.csv","r") Patients_Dict = dict() Patient_ID = "" Department = "" Doctor_Name = "" Patient_Name = "" Patient_Age = "" Patient_Gender = "" Patient_Address = "" RoomNumber = "" flag = 0 text = myfile.read() for i in text : if flag == 0 : if i != ";" : Patient_ID = Patient_ID + i elif i == ";" : flag = 1 elif flag == 1 : if i != ";" : Department = Department + i elif i == ";" : flag = 2 elif flag == 2 : if i != ";" : Doctor_Name = Doctor_Name + i elif i == ";" : flag = 3 elif flag == 3 : if i != ";" : Patient_Name = Patient_Name + i elif i == ";" : flag = 4 elif flag == 4 : if i != ";" : Patient_Age = Patient_Age + i elif i == ";" : flag = 5 elif flag == 5 : if i != ";" : Patient_Gender = Patient_Gender + i elif i == ";" : flag = 6 elif flag == 6 : if i != ";" : Patient_Address = Patient_Address + i elif i == ";" : flag = 7 elif flag == 7 : if i != "\n" : RoomNumber = RoomNumber + i elif i == "\n" : Patients_Dict[int(Patient_ID)]=[Department,Doctor_Name,Patient_Name,Patient_Age,Patient_Gender,Patient_Address,RoomNumber] Patient_ID = "" Department = "" Doctor_Name = "" Patient_Name = "" Patient_Age = "" Patient_Gender = "" Patient_Address = "" RoomNumber = "" flag = 0 myfile.close() return Patients_Dict def Read_Doctors_DataBase () : myfile = open ("Doctors_DataBase.csv","r") Doctors_Dict = dict() Doctor_ID = "" Department = "" Doctor_Name = "" Doctor_Address = "" Patient_ID = "" Session_Start = "" Session_End = "" flag = 0 text = myfile.read() while text.count(";;") : text=text.replace(";;",";") for i in text : if flag == 0 : if i != ";" : Doctor_ID = Doctor_ID + i elif i == ";" : flag = 1 elif flag == 1 : if i != ";" : Department = Department + i elif i == ";" : flag = 2 elif flag == 2 : if i != ";" : Doctor_Name = Doctor_Name + i elif i == ";" : flag = 3 elif flag == 3 : if i != ";" : Doctor_Address = Doctor_Address + i elif i == ";" : flag = 4 Doctor_Data_List = [Department,Doctor_Name,Doctor_Address] Doctors_Dict[int(Doctor_ID)]=[Doctor_Data_List] elif flag == 4 : if i != ";" and i != "\n" : Patient_ID = Patient_ID + i elif i == ";" : flag = 5 elif i == "\n" : flag = 0 Doctor_ID = "" Department = "" Doctor_Name = "" Doctor_Address = "" elif flag == 5 : if i != ";" : Session_Start = Session_Start + i elif i == ";" : flag = 6 elif flag == 6 : if i != ";" and i != "\n" : Session_End = Session_End + i elif i == ";" : flag = 4 Appointment_List = [int(Patient_ID),Session_Start,Session_End] Doctors_Dict[int(Doctor_ID)].append(Appointment_List) Patient_ID = "" Session_Start = "" Session_End = "" elif i == "\n" : flag = 0 Doctor_ID = "" Department = "" Doctor_Name = "" Doctor_Address = "" myfile.close() return Doctors_Dict |
This module is for inserting/adding the data in the excel file
In this module we can add appointments,doctor details and patient details in the excel file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
def Write_Patients_DataBase (Pateints_DataBase) : myfile = open("Patients_DataBase.csv","w") for i in Pateints_DataBase : myfile.write(str(i)+";"+Pateints_DataBase[i][0]+";"+Pateints_DataBase[i][1]+";"+Pateints_DataBase[i][2]+";"+Pateints_DataBase[i][3]+";"+Pateints_DataBase[i][4]+";"+Pateints_DataBase[i][5]+";"+Pateints_DataBase[i][6]+"\n") myfile.close() def Write_Doctors_DataBase (Doctors_DataBase) : myfile = open("Doctors_DataBase.csv","w") for i in Doctors_DataBase : myfile.write(str(i)+";") for j in Doctors_DataBase[i] : myfile.write(str(j[0])+";"+j[1]+";"+j[2]+";") myfile.write("\n") myfile.close() |
Features:
- Manage Appointments
- Manage Doctors
- Manage Patients
Hospital Management System In Python : Project Information
Project Name: | Hospital Management System |
Language/s Used: | Python Console Based |
Python version (Recommended): | 2.x or 3.x |
Database: | None |
Type: | Python App |
Developer: | IT SOURCECODE |
Updates: | 0 |
Run Quick Virus Scan for secure Download
Run Quick Scan for secure DownloadDownloadable Source Code Below
Anyway, if you want to level up your programming knowledge, especially python, try this new article I’ve made for you Best Python Projects with source code for Beginners. But If you’re going to focus on web development using Django, you can download here from our list of Best Django Projects with source code based on real-world projects.
Summary
This Hospital Management System Project In Python with source code has the venture document includes a python script (main.Py) and other important task files. The project contains an admin and staff sides. The admin side manages all the management like dealing with doctors’ facts, patient records, and manage the appointment time.
Related Articles Below
- Library Management System Project In Python and MySQL
- Student Management System Project in Python with Source Code
- How To Make A Point Of Sale System In Python
- Best Python Projects for Beginners
- Python MySQL Connection: Simple Python Step by Step Guide
- Python PIP Command Set-up / Fix: Step by Step Guide
- Random Password Generator in Python Projects With Source Code 2020
- Python Range Function|Range in Python Explained with Examples 2020
Inquires
If you have any questions or suggestions about Hospital Management System Project In Python with source code, please feel free to leave a comment below.
hey its Aaron again lol
i figured out the error here from when I commented earlier.
somebody seems to have replaced ‘[‘ with ‘[’, and ‘<=' with '<'
Please fix this, thank you
there are some errors on line 362 of main.py code please check