From 4e627eee89769388f95a6f1b4e5a79466f41e3fe Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 5 Jul 2020 00:14:06 +0200 Subject: Initial commit --- res/1.png | Bin 0 -> 296418 bytes res/10.jpg | Bin 0 -> 148294 bytes res/11.jpg | Bin 0 -> 160011 bytes res/12.jpg | Bin 0 -> 103332 bytes res/13.png | Bin 0 -> 743371 bytes res/14.png | Bin 0 -> 753133 bytes res/15.png | Bin 0 -> 807494 bytes res/16.png | Bin 0 -> 564639 bytes res/17.jpg | Bin 0 -> 146616 bytes res/18.jpg | Bin 0 -> 101788 bytes res/19.jpg | Bin 0 -> 155349 bytes res/2.png | Bin 0 -> 236082 bytes res/20.jpg | Bin 0 -> 124802 bytes res/21.jpg | Bin 0 -> 1079539 bytes res/22.jpg | Bin 0 -> 1079539 bytes res/23.jpg | Bin 0 -> 497855 bytes res/24.png | Bin 0 -> 734483 bytes res/25.jpg | Bin 0 -> 143120 bytes res/26.jpg | Bin 0 -> 120430 bytes res/3.jpg | Bin 0 -> 566299 bytes res/4.jpg | Bin 0 -> 550742 bytes res/5.png | Bin 0 -> 667565 bytes res/6.png | Bin 0 -> 517843 bytes res/7.png | Bin 0 -> 721916 bytes res/8.png | Bin 0 -> 621988 bytes res/9.jpg | Bin 0 -> 172685 bytes res/feh_030614_000001_2.png | Bin 0 -> 164424 bytes res/rt atelektase.png | Bin 0 -> 105106 bytes res/rt bronchial ca.png | Bin 0 -> 113964 bytes res/rt freie intraabdominelle luft.png | Bin 0 -> 121343 bytes res/rt hiatushernie.png | Bin 0 -> 137550 bytes res/rt luft.png | Bin 0 -> 135739 bytes res/rt pulmon st die zweite kerley.png | Bin 0 -> 146350 bytes "res/rt pulmonal alveol\303\244re stauung.png" | Bin 0 -> 76494 bytes "res/rt pulmonal ven\303\266se stauung.png" | Bin 0 -> 144063 bytes res/rt spannungspneu.png | Bin 0 -> 68579 bytes res/rt struma.png | Bin 0 -> 67373 bytes res/rt weichteilemphysem.png | Bin 0 -> 129605 bytes trainer.py | 88 +++++++++++++++++++++++++ 39 files changed, 88 insertions(+) create mode 100644 res/1.png create mode 100644 res/10.jpg create mode 100644 res/11.jpg create mode 100644 res/12.jpg create mode 100644 res/13.png create mode 100644 res/14.png create mode 100644 res/15.png create mode 100644 res/16.png create mode 100644 res/17.jpg create mode 100644 res/18.jpg create mode 100644 res/19.jpg create mode 100644 res/2.png create mode 100644 res/20.jpg create mode 100644 res/21.jpg create mode 100644 res/22.jpg create mode 100644 res/23.jpg create mode 100644 res/24.png create mode 100644 res/25.jpg create mode 100644 res/26.jpg create mode 100644 res/3.jpg create mode 100644 res/4.jpg create mode 100644 res/5.png create mode 100644 res/6.png create mode 100644 res/7.png create mode 100644 res/8.png create mode 100644 res/9.jpg create mode 100644 res/feh_030614_000001_2.png create mode 100644 res/rt atelektase.png create mode 100644 res/rt bronchial ca.png create mode 100644 res/rt freie intraabdominelle luft.png create mode 100644 res/rt hiatushernie.png create mode 100644 res/rt luft.png create mode 100644 res/rt pulmon st die zweite kerley.png create mode 100644 "res/rt pulmonal alveol\303\244re stauung.png" create mode 100644 "res/rt pulmonal ven\303\266se stauung.png" create mode 100644 res/rt spannungspneu.png create mode 100644 res/rt struma.png create mode 100644 res/rt weichteilemphysem.png create mode 100644 trainer.py diff --git a/res/1.png b/res/1.png new file mode 100644 index 0000000..c04e659 Binary files /dev/null and b/res/1.png differ diff --git a/res/10.jpg b/res/10.jpg new file mode 100644 index 0000000..12b910c Binary files /dev/null and b/res/10.jpg differ diff --git a/res/11.jpg b/res/11.jpg new file mode 100644 index 0000000..dfc7785 Binary files /dev/null and b/res/11.jpg differ diff --git a/res/12.jpg b/res/12.jpg new file mode 100644 index 0000000..c0b9ff7 Binary files /dev/null and b/res/12.jpg differ diff --git a/res/13.png b/res/13.png new file mode 100644 index 0000000..d1e690d Binary files /dev/null and b/res/13.png differ diff --git a/res/14.png b/res/14.png new file mode 100644 index 0000000..0428b95 Binary files /dev/null and b/res/14.png differ diff --git a/res/15.png b/res/15.png new file mode 100644 index 0000000..0ea6cd6 Binary files /dev/null and b/res/15.png differ diff --git a/res/16.png b/res/16.png new file mode 100644 index 0000000..1648582 Binary files /dev/null and b/res/16.png differ diff --git a/res/17.jpg b/res/17.jpg new file mode 100644 index 0000000..d4cc067 Binary files /dev/null and b/res/17.jpg differ diff --git a/res/18.jpg b/res/18.jpg new file mode 100644 index 0000000..8a6dad6 Binary files /dev/null and b/res/18.jpg differ diff --git a/res/19.jpg b/res/19.jpg new file mode 100644 index 0000000..455feea Binary files /dev/null and b/res/19.jpg differ diff --git a/res/2.png b/res/2.png new file mode 100644 index 0000000..23198ba Binary files /dev/null and b/res/2.png differ diff --git a/res/20.jpg b/res/20.jpg new file mode 100644 index 0000000..ec55b37 Binary files /dev/null and b/res/20.jpg differ diff --git a/res/21.jpg b/res/21.jpg new file mode 100644 index 0000000..52461dd Binary files /dev/null and b/res/21.jpg differ diff --git a/res/22.jpg b/res/22.jpg new file mode 100644 index 0000000..52461dd Binary files /dev/null and b/res/22.jpg differ diff --git a/res/23.jpg b/res/23.jpg new file mode 100644 index 0000000..bc9622e Binary files /dev/null and b/res/23.jpg differ diff --git a/res/24.png b/res/24.png new file mode 100644 index 0000000..22e75f0 Binary files /dev/null and b/res/24.png differ diff --git a/res/25.jpg b/res/25.jpg new file mode 100644 index 0000000..c5138f5 Binary files /dev/null and b/res/25.jpg differ diff --git a/res/26.jpg b/res/26.jpg new file mode 100644 index 0000000..23945c0 Binary files /dev/null and b/res/26.jpg differ diff --git a/res/3.jpg b/res/3.jpg new file mode 100644 index 0000000..fccd029 Binary files /dev/null and b/res/3.jpg differ diff --git a/res/4.jpg b/res/4.jpg new file mode 100644 index 0000000..850e79e Binary files /dev/null and b/res/4.jpg differ diff --git a/res/5.png b/res/5.png new file mode 100644 index 0000000..495118e Binary files /dev/null and b/res/5.png differ diff --git a/res/6.png b/res/6.png new file mode 100644 index 0000000..8aef578 Binary files /dev/null and b/res/6.png differ diff --git a/res/7.png b/res/7.png new file mode 100644 index 0000000..788d393 Binary files /dev/null and b/res/7.png differ diff --git a/res/8.png b/res/8.png new file mode 100644 index 0000000..41c3591 Binary files /dev/null and b/res/8.png differ diff --git a/res/9.jpg b/res/9.jpg new file mode 100644 index 0000000..c4f11c5 Binary files /dev/null and b/res/9.jpg differ diff --git a/res/feh_030614_000001_2.png b/res/feh_030614_000001_2.png new file mode 100644 index 0000000..611bd66 Binary files /dev/null and b/res/feh_030614_000001_2.png differ diff --git a/res/rt atelektase.png b/res/rt atelektase.png new file mode 100644 index 0000000..84f0289 Binary files /dev/null and b/res/rt atelektase.png differ diff --git a/res/rt bronchial ca.png b/res/rt bronchial ca.png new file mode 100644 index 0000000..6c4438f Binary files /dev/null and b/res/rt bronchial ca.png differ diff --git a/res/rt freie intraabdominelle luft.png b/res/rt freie intraabdominelle luft.png new file mode 100644 index 0000000..bae0cb7 Binary files /dev/null and b/res/rt freie intraabdominelle luft.png differ diff --git a/res/rt hiatushernie.png b/res/rt hiatushernie.png new file mode 100644 index 0000000..96e2dfc Binary files /dev/null and b/res/rt hiatushernie.png differ diff --git a/res/rt luft.png b/res/rt luft.png new file mode 100644 index 0000000..6e31f3d Binary files /dev/null and b/res/rt luft.png differ diff --git a/res/rt pulmon st die zweite kerley.png b/res/rt pulmon st die zweite kerley.png new file mode 100644 index 0000000..daaa046 Binary files /dev/null and b/res/rt pulmon st die zweite kerley.png differ diff --git "a/res/rt pulmonal alveol\303\244re stauung.png" "b/res/rt pulmonal alveol\303\244re stauung.png" new file mode 100644 index 0000000..d4e605c Binary files /dev/null and "b/res/rt pulmonal alveol\303\244re stauung.png" differ diff --git "a/res/rt pulmonal ven\303\266se stauung.png" "b/res/rt pulmonal ven\303\266se stauung.png" new file mode 100644 index 0000000..6563066 Binary files /dev/null and "b/res/rt pulmonal ven\303\266se stauung.png" differ diff --git a/res/rt spannungspneu.png b/res/rt spannungspneu.png new file mode 100644 index 0000000..e63cda6 Binary files /dev/null and b/res/rt spannungspneu.png differ diff --git a/res/rt struma.png b/res/rt struma.png new file mode 100644 index 0000000..ff74375 Binary files /dev/null and b/res/rt struma.png differ diff --git a/res/rt weichteilemphysem.png b/res/rt weichteilemphysem.png new file mode 100644 index 0000000..157850f Binary files /dev/null and b/res/rt weichteilemphysem.png differ diff --git a/trainer.py b/trainer.py new file mode 100644 index 0000000..9d91338 --- /dev/null +++ b/trainer.py @@ -0,0 +1,88 @@ +import random +import os +import glob + +diagnosis = { + "1.png": (2, "retrosternales Struma"), + "2.png": (2, "retrosternales struma"), + "3.jpg": (2, "Lungenemphysem"), + "4.jpg": (2, "Lungenemphysem"), + "5.png": (2, "freie Luft"), + "6.png": (2, "freie Luft"), + "7.png": (2, "Pneumonie"), + "8.png": (2, "Pneumonie"), + "9.jpg": (2, "karzinom"), + "10.jpg": (2, "karzinom"), + "11.jpg": (2, "Lymphom"), + "12.jpg": (2, "Lymphom"), + "13.png": (2, "Pleuraerguss"), + "14.png": (2, "Pleuraerguss"), + "15.png": (2, "Pneumothorax links"), + "16.png": (2, "Pneumothorax links"), + "17.jpg": (2, "Metastasen"), + "18.jpg": (2, "Metastasen"), + "19.jpg": (2, "Lungenfibrose"), + "20.jpg": (2, "Lungenfibrose"), + "21.jpg": (1, "Kardiale Stauung"), + "22.jpg": (1, "Kardiale Stauung"), + "23.jpg": (2, "Lymphadenopathie"), + "24.png": (2, "Lymphadenopathie"), + "25.jpg": (2, "Oberlappenatelektase"), + "26.jpg": (2, "Oberlappenatelektase"), + "rt\\ atelektase.png": (1, "untarlappenatelektase"), + "rt\\ bronchial\\ ca.png": (1, "bronchial ca"), + "rt\\ freie\\ intraabdominelle\\ luft.png": + (1, "freie intraabdominelle luft"), + "rt\\ hiatushernie.png": (1, "hiatushernie"), + "rt\\ luft.png": (1, "weichteilemphysem"), + "rt\\ pulmonal\\ alveoläre\\ stauung.png": + (1, "pulmonal alveoläre stauung"), + "rt\\ pulmon\\ st\\ die\\ zweite\\ kerley.png": (1, "pulmonale stauung"), + "rt\\ spannungspneu.png": (1, "spannungspneumothorax"), + "rt\\ struma.png": (1, "struma"), + "rt\\ weichteilemphysem.png": (1, "weichteilemphysem"), +} + +# get all files matching the pattern +#files = glob.glob("res/*") + +# clear screen function +#def cls(): +# os.system('cls' if os.name == 'nt' else 'clear') + +# extract number x from res/x.png +#def getint(name): +# basename = name.partition('.')[0] +# _, num = basename.split('/') +# return int(num) + +# sort files by number +#files.sort(key=getint) + +fdiag = list(range(1, 36)) +random.shuffle(fdiag) +# print greeting +print("Ultimativer Osce-Trainer!\n") + +for x in fdiag: + # uncomment for debug purposes + #print(files[x]) + # the -F enabeles fullscreen mode + f = list(diagnosis.keys())[x] + if x <= 26: + f1 = list(diagnosis.keys())[x & (~1)] + f2 = list(diagnosis.keys())[x | 1] + os.system(f"feh -F res/{f1}") + if diagnosis[f][0] == 2: + os.system(f"feh -F res/{f2}") + else: + os.system(f"feh -F res/{f}") + + p = input(" Was ist deine Diagnose? \n") + if p.lower() in diagnosis[f][1].lower() and len(p) > 2: + print("richtig") + else: + print("falsch, die richtige Lösung ist: " + diagnosis[f][1]) + input("Press enter to continue") + +print("\n\n\nAlles Geschaff!!!!\nHerzlichen Glückwunsch") -- cgit v1.2.3-70-g09d2