From 95911e722e259ad838d9c3e89f2e0e9ed544d32b Mon Sep 17 00:00:00 2001 From: AdityaJsr Date: Mon, 1 Mar 2021 11:44:47 +0530 Subject: [PATCH 1/2] addressBook.py: add try catch and code improvement overall --- addressBook/ad.txt | 0 addressBook/addressBook.py | 19 ++++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 addressBook/ad.txt diff --git a/addressBook/ad.txt b/addressBook/ad.txt deleted file mode 100644 index e69de29..0000000 diff --git a/addressBook/addressBook.py b/addressBook/addressBook.py index 78943f2..8d9f8a8 100644 --- a/addressBook/addressBook.py +++ b/addressBook/addressBook.py @@ -12,7 +12,7 @@ def createUser(): # Read Json File -> Record.Json file - data = serialzeJson() + data = deSerialzeJson() # User Input Details firstName = input("Enter the first name : ") @@ -46,14 +46,14 @@ def createUser(): def showUserInJson(): # Read Json File -> Record.Json file - data = serialzeJson() + data = deSerialzeJson() pprint.pprint(data) def showUser(): # Read Json File -> Record.Json file - data = serialzeJson() + data = deSerialzeJson() for user in data['person']: print("\nFirstName: " + user['firstName'] + "\n" + "Last Name : " + user['lastName'] + "\n" + "Address : " + user['address'] + "\n" + @@ -61,7 +61,7 @@ def showUser(): def delUser(): # Read Json File -> Record.Json file - data = serialzeJson() + data = deSerialzeJson() # index to display for delete option index = 1 @@ -79,7 +79,7 @@ def delUser(): def editUser(): # Read Json File -> Record.Json file - data = serialzeJson() + data = deSerialzeJson() index = 1 for user in data['person']: @@ -98,7 +98,12 @@ def editUser(): with open("record.json", "w") as f: f.write(json_obj) -def serialzeJson(): +def sortUser(): + pass + # Sort using last name of the person (Ties broken by first name) + # Sort using zip code of the person (Ties broken by second name) + +def deSerialzeJson(): with open('record.json') as f: data = json.loads(f.read()) return(data) @@ -107,7 +112,7 @@ def serialzeJson(): while True: print(" ") print("User Management Panel") - print(" 1.Create User \n 2.Show Users In Json Format \n 3. Show Users \n 4. Delete User \n 5. edit User") + print(" 1.Create User \n 2.Show Users In Json Format \n 3. Show Users \n 4. Delete User \n 5. Edit User") val = input("Enter your choice : \t") From b3364166e44f80593cdfc6089e7a9a456a5c7554 Mon Sep 17 00:00:00 2001 From: AdityaJsr Date: Tue, 18 May 2021 08:18:01 +0530 Subject: [PATCH 2/2] final changes --- .../__pycache__/appointment.cpython-38.pyc | Bin 0 -> 1439 bytes .../__pycache__/doctor.cpython-38.pyc | Bin 2229 -> 2715 bytes .../__pycache__/patient.cpython-38.pyc | Bin 2292 -> 2292 bytes .../__pycache__/searchDoctor.cpython-38.pyc | Bin 2296 -> 2296 bytes clinicManagement/appointment.py | 27 ++++-- clinicManagement/doctor.py | 20 ++++- clinicManagement/main.py | 10 ++- clinic_log/clinic.log | 0 .../__pycache__/doctor.cpython-38.pyc | Bin 1694 -> 0 bytes .../__pycache__/patient.cpython-38.pyc | Bin 1512 -> 0 bytes .../__pycache__/searchDoctor.cpython-38.pyc | Bin 2298 -> 0 bytes cliniqueManagement/doctor.py | 78 ----------------- cliniqueManagement/main.py | 26 ------ cliniqueManagement/patient.py | 80 ------------------ cliniqueManagement/searchDoctor.py | 73 ---------------- record.json | 22 ----- 16 files changed, 45 insertions(+), 291 deletions(-) create mode 100644 clinicManagement/__pycache__/appointment.cpython-38.pyc create mode 100644 clinic_log/clinic.log delete mode 100644 cliniqueManagement/__pycache__/doctor.cpython-38.pyc delete mode 100644 cliniqueManagement/__pycache__/patient.cpython-38.pyc delete mode 100644 cliniqueManagement/__pycache__/searchDoctor.cpython-38.pyc delete mode 100644 cliniqueManagement/doctor.py delete mode 100644 cliniqueManagement/main.py delete mode 100644 cliniqueManagement/patient.py delete mode 100644 cliniqueManagement/searchDoctor.py delete mode 100644 record.json diff --git a/clinicManagement/__pycache__/appointment.cpython-38.pyc b/clinicManagement/__pycache__/appointment.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..706981d9d808ce7ad87744b8b85c4d9b48cd9462 GIT binary patch literal 1439 zcmY*Z%Z}qj6unh0Kl1DV0u*3j#3~~+V#8+CpqA)ifqGgqG-#SA2%J)bl$`uoA43-~zOlb?$Yz&~bi|DiZI z!7o2W!-10srfo~61jjTYF`ZIk=B&ty*_1VX64_ISGj9J1Q8=6BP>_--K%IKl01B z9{;isnF`ayUk3?~M6P?SZ+;r6Kr<6`Vrx50vO;OQ$TA^y=e3u%Gl?;!g%>cfr=9CU z$n81$Xd*P@CWL#4H$4P?5~#)c50C?N`S%%rG<%Wzxhi;=&gL@YD{&Ug%h@93BA;b4 zUCAJh!({bTrt?U|`D_t|Nw|0tB*99UTxR$3dYEl>Z?P7O&1rK1?-+94MgxSB5xyT0 zhxGCFh&;mC|1pXxd&6j-04P9C46mf&l_IYMd3}JqTFC1O@`_xReZ@H4A;Sk&=}Y9Z zWpxFH$Gu&VTU=KT#$(*7?TQ(0k>_RYR1UWfJkPmP+uT)d?;f`^{ zy$#4e+tKTo-F@#CHF5nnqUabD*YnCUdyYZ9TANokcQzfVaZlImQT?j{V(9VyZ?tyR zkPrB9M}HsHUghnND%YSj**t@9;S!aKT01%~-+QAq6qalShawtZq*8AEAn}EisJb;W zA`*`J`dTu)RB3AEJKeiS)Sa0sKR!6#6J`|V$`5mYSwxW$=({bEevt$(f-nkD12}zW zsvir~2@{SID34lE7|A}o!b;WTW-@9RmW~178siybNY+jZuu-jM=19#pVw-C#66l-h zZov7|K!q4vvnHU;i#W?QOEEKT-^fsjNk`kU5%bi+<8iAr{{uNPre}^}%P3gMzUg`< z$WQ6~N|R-y{MHQ3+Td_6ZKe-!D*p@(Q0E}p4+tY&6fPrutB-a>M`TF4R+oA>?-7p< zQPT1g^qF+zhuCPE=F;4ecG~J|Q+4sb)&L#jQhPnd=^h|cl(IqP9mgpzBJm{_0^}wM LJgBXmq4)lO1Y&7p literal 0 HcmV?d00001 diff --git a/clinicManagement/__pycache__/doctor.cpython-38.pyc b/clinicManagement/__pycache__/doctor.cpython-38.pyc index 71f9ea1447fae6fdcd7e3d828123223425352d39..1d18dad7ca519c99ccbe10db3f5f6b57e1a144b9 100644 GIT binary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9FA}n?bxX|OFFRQ zjN$(`z?RoOolm(kEJO~h&-V-+GrTAEiqHpUih#!1mfTPwjgPQ8Oz>Zwtu?$ND~C

{Mbw#C>QW=%}4P0-)Jpcdz diff --git a/clinicManagement/__pycache__/patient.cpython-38.pyc b/clinicManagement/__pycache__/patient.cpython-38.pyc index 92cf999a85f83157a85d5eab8f204d0d7d91506e..6e304b19198c3baebe593dbade6ac92ce392cf6d 100644 GIT binary patch delta 81 zcmew&_(hN}l$V!_0SM}vZ4ycaHu6a^Gm383WVU5wblaTHqQS@*J$VA_AI6-?y=-q8 i>nB&UFJ+uQS&`#_FfWH8hbV_2hcJf(2O9??2m%0AF%psh delta 81 zcmew&_(hN}l$V!_0SF=-tP*Z>ZRC?;X5`+i$!yEWXuLU{MT3#ie)0s?KaB2^d)eMH f`cJNAU&#?Y%~)?*~|F`MunXOKY88bZ%T3+URl}KN{;qTko9AqI6BcUd~WHzSX=PZU9-DUTH5!0cn`jU zyYMZf2eL_ic;!udXu-M1|K#a{&rkoKvmp?AUblF?v)}$P4{|xfBx@gu1c&h#(NWPJ zWEkg9cLw7mO$MDvMmLW0ELETym?w;TWT6N~@@B^A!hYlPP&Q5s8e|Hpcg2kwoJn{*2BL z+KN3??6IaRoUn~?fbkqt#OnI!4(j>wM2@g(n? zC?Cz@!zhi0@q|L@S5e-W{-o*=V#ma+t0{k*2r!@1%bMIJ>alI!WLGVhxqRF3fwR_& zYh=Gsm^xrROkv(8Mp8R0*pjVau6Zg*Dn2U3GaV=1KI1KPO4x&vmAtgj{mq`+rA?`< zb&E@%q%szP9K}HzP2ylbD0bGW1hwM&T5*=fAfLtq!Zs-)nPjOpYE?%0D0wJ@TZipC zhwa;6etn>qtj^tl@VE5`6i-lXZ*EtP*%fl-BYrpXme zbj~WWr@1X6@6yQiBCsZ*+hk3`mh1N)w`MFh@U+PA9M1Q8B-8 z4Av&t;?gEQgrSMQ@G5jk)JTL}T&77mQ<0=Hw8YCs8f3Fn(v4R&+zUu4KObc$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ueManagement/__pycache__/searchDoctor.cpython-38.pyc b/cliniqueManagement/__pycache__/searchDoctor.cpython-38.pyc deleted file mode 100644 index af40fbbb165f9553e9452418dbee6c21736c2537..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2298 zcmcguOLH4V5T4mxNvpM_*cA8?urqLg=pvH`RUt*CaImWggF(*B$2VX1>bqjmVR&9V{`}`& zp0U5lxcV3{zC??TAS9E##oD~eIq62rs2aLAt0sE0Wwx!Vg)vKJeq+^)%*q`4th8kw zeNH-Z3B4@~vWPw}jYC#0U1DZd=1EC@)$RyL*v?B(sp5L7qwlQ*ylj%dq!v-qCdN7u{d+; zs6RP;oc)k`vhe)F*$~L}OIY#7z&bbRz0dI8(E8PSrX!yr8l%fJC(T!0Iq2Wo3t~@+ zxao<&ZF?d-*7|PPh(jeFieyP@HQIG!H?b&Y#Kk2CaF=woqntxN1afDT@g==t_;R!o zb-V_y!tcAW9|q(u&AUc+)bx*I8p&v_zqu2LZg3ieF9P8yh4uYNgpEenReo^NUmkBN z2xD;^b^}??B^f{HbmJt`?R4-4Z3vTfT0UGIyc8$SlR$be_h_~xzxT4?b!a=~Ok$pT zy~L7qs@(X9;M)Ptl5p>WsrTt{NAh9qc_gB^EB&xmSH3*)zIE&US|gNRRO_hlM7ixY zcK1|;^_JI;YK@j3_-9>j-woUouk8hKE%IE|Xr{Zbbb3j)-lKJFtPp(+!HfdWq8Yrz zKgG{@WAH4R@rJx5Zt-Ql#nmPv=csJLL3Gws?m$VY3>xz}8XpY}P*u|ylw6GsX~6jhj8O{~0BBDD8t3>7&_w{=oB()x2H-eB#woKHOO4hdEH%g)&?%M| zR*L02INl6UwMFJN5SQz{!?}zlVvYe#*?A4n4>A5f1DY01Vr*J8rvPh4P5~|M>~BBa z-+mm%O%#`ufyAtZ44k1hqoJVSMIe>xy`AT--*W3dN=$DXac_g@BaF{ML{*b`trNBi zWsy)^h1&?5xuy51%2zCXw1^Yp4YI_TI2KLvnrR`FTFC~ExXUW#g${qA; zhq~~Hw7iLW4{$hlDuRlSaPC&blU?E5tBCoF7tZ~PxOz@V7(?6$l|bYBtC Qr@*l!FPQdwcAkF!0>M?_UH||9 diff --git a/cliniqueManagement/doctor.py b/cliniqueManagement/doctor.py deleted file mode 100644 index 5547112..0000000 --- a/cliniqueManagement/doctor.py +++ /dev/null @@ -1,78 +0,0 @@ - -import json -import os -from os import path - -data= {} # Global dict to create new json -doctorsData = [] # Global array to create new json array - - -def addDoctor(): - os.chdir('D:/vs studio/bridgeLabz/codes') - - if(path.exists("clinicData.json")): - - with open('clinicData.json') as f: - if f.read() == '': - - x = createData() - - doctorsData.append(x) - data['doctorsData'] = doctorsData - json_obj = json.dumps(data, indent=2) - - with open("clinicData.json", "w") as f: - f.write(json_obj) - else: - - data = deSerialzeJson() - x = createData() - - data["doctorsData"].append(x) - json_obj = json.dumps(data, indent=2) - - with open("clinicData.json", "w") as f: - f.write(json_obj) - - else: - - - x = createData() - - doctorsData.append(x) - data['doctorsData'] = doctorsData - json_obj = json.dumps(data, indent=2) - - with open("clinicData.json", "w") as f: - f.write(json_obj) - - -def createData(): - name = input("Enter the name : ").upper() - id = input("Enter the id : ") - specialization = input("Enter the doctors specialization : ").upper() - shift = input("Enter shift AM/PM/BOTH : ").upper() - - x = { - 'name': 'DR '+name, - 'id' : id, - 'specialization': specialization, - 'shift': shift - } - - return(x) - -def showDoctor(): - - # Read Json File -> Record.Json file - data = deSerialzeJson() - count = 0 - for doctors in data['doctorsData']: - print("\nname: " + doctors['name'] + "\n" + "id : " + doctors['id'] + "\n" + "specialization : " + doctors['specialization'] + "\n" + - "shift : " + doctors['shift']+"\n") - - -def deSerialzeJson(): - with open('clinicData.json') as f: - data = json.loads(f.read()) - return(data) diff --git a/cliniqueManagement/main.py b/cliniqueManagement/main.py deleted file mode 100644 index 9a607ce..0000000 --- a/cliniqueManagement/main.py +++ /dev/null @@ -1,26 +0,0 @@ -""" -title - This program is Clinic Management system which keeps records a doctor's as well as patient's attributes . -author name - Aditya Kumar -creation time - ‎26 ‎February ‎2021, ‏‎23:28:05 -modified time - ‎‎26 ‎February ‎2021, ‏‎23:41:34‏‎ - -""" - -import doctor as d -import patient as p -import searchDoctor as sd - -def main(): - print("Clinique Management System") - ch = input("1. Enter 1 to add a doctor \n2. Enter 2 to see all avaiable doctors \n3. Search Doctors: \nEnter your choice : ") - - if (ch =='1'): - d.addDoctor() - elif (ch == '2'): - d.showDoctor() - elif(ch == '3'): - sd.keySearch() - - -if __name__ == "__main__": - main() diff --git a/cliniqueManagement/patient.py b/cliniqueManagement/patient.py deleted file mode 100644 index c9c205c..0000000 --- a/cliniqueManagement/patient.py +++ /dev/null @@ -1,80 +0,0 @@ - -# This module is to add patients -import json -import os -from os import path - - -patientData = [] -data = {} - - -def addPatient(): - - os.chdir('D:/vs studio/bridgeLabz/codes') - - if(path.exists("patientRecord.json")): - - with open('patientRecord.json') as f: - if f.read() == '': - - x = createPatientData() - - patientData.append(x) - data['patientData'] = patientData - json_obj = json.dumps(data, indent=2) - - with open("patientRecord.json", "w") as f: - f.write(json_obj) - - else: - - data = deSerialzePatientData() - x = createPatientData() - - data["patientData"].append(x) - json_obj = json.dumps(data, indent=2) - - with open("patientRecord.json", "w") as f: - f.write(json_obj) - - else: - - x = createPatientData() - patientData.append(x) - data['patientData'] = patientData - json_obj = json.dumps(data, indent=2) - - with open("patientRecord.json", "w") as f: - f.write(json_obj) - - -def createPatientData(): - name = input("Enter the name of the patient : ").upper() - id = input("Enter the id of the patient : ") - mobileNumber = input("Enter your mobile number : ") - age = input("Enter your age : ") - - x = { - 'name': name, - 'id' : id, - 'specialization': mobileNumber, - 'shift': age - } - - # print("X is being returned") - - return(x) - - -def deSerialzePatientData(): - with open('patientRecord.json') as f: - data = json.loads(f.read()) - return(data) - - - -if __name__ == "__main__": - choice = input("Enter 1 if you want an appointment : ") - if (choice == '1'): - addPatient() \ No newline at end of file diff --git a/cliniqueManagement/searchDoctor.py b/cliniqueManagement/searchDoctor.py deleted file mode 100644 index cf8096a..0000000 --- a/cliniqueManagement/searchDoctor.py +++ /dev/null @@ -1,73 +0,0 @@ -# This is the search module. -from doctor import deSerialzeJson -import json -import os -from os import path - - -def byName(): - - key = input("Enter the name of the Doctor : ").upper() - data = deSerialzeJson() - - for doctors in data['doctorsData']: - try: - dName = doctors['name'].split(' ') - if(key == dName[1])or(key == dName[2])or(key == dName[1]+" "+dName[2]): - print("\nname: " + doctors['name'] + "\n" + "id : " + doctors['id'] + "\n" + "specialization : " + doctors['specialization'] + "\n" + - "shift : " + doctors['shift']+"\n") - return - except IndexError: - pass - except Exception as e: - print("An unknown error is occouring", e) - print("Doctor not found") - - - - -def byid(): - - key = input("Enter the id of the Doctor : ") - data = deSerialzeJson() - - for doctors in data['doctorsData']: - if(key == doctors['id']): - print("\nname: " + doctors['name'] + "\n" + "id : " + doctors['id'] + "\n" + "specialization : " + doctors['specialization'] + "\n" + - "shift : " + doctors['shift']+"\n") -def bySpecialization(): - - key = input("Enter the specialzation of the Doctor : ").upper() - data = deSerialzeJson() - - for doctors in data['doctorsData']: - if(key == doctors['specialization']): - print("\nname: " + doctors['name'] + "\n" + "id : " + doctors['id'] + "\n" + "specialization : " + doctors['specialization'] + "\n" + - "shift : " + doctors['shift']+"\n") -def byAvailability(): - - key = input("AM/PM/Both : ").upper() - data = deSerialzeJson() - - for doctors in data['doctorsData']: - if(key == doctors['shift']): - print("\nname: " + doctors['name'] + "\n" + "id : " + doctors['id'] + "\n" + "specialization : " + doctors['specialization'] + "\n" + - "shift : " + doctors['shift']+"\n") -def keySearch(): - - choice = input("Search doctor by : \n1. Name \n2. ID \n3. Specialization \n4. Availability \nEnter your choice : ") - if (choice == '1'): - byName() - - elif (choice == '2'): - byid() - - elif (choice == '3'): - bySpecialization() - - elif (choice == '4'): - byAvailability() - - else: - print("Enter a proper choice : ") - keySearch() diff --git a/record.json b/record.json deleted file mode 100644 index cc10faf..0000000 --- a/record.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "person": [ - { - "firstName": "Avinash", - "lastName": "singh", - "address": "sonari", - "city": "jsr", - "state": "jhsarkhand", - "zip": "400", - "phoneNumber": "900" - }, - { - "firstName": "Aman", - "lastName": "Kumar", - "address": "kadma", - "city": "jsr", - "state": "jharkhand", - "zip": "831005", - "phoneNumber": "3007894129" - } - ] -} \ No newline at end of file