diff options
-rw-r--r-- | res/1.png | bin | 0 -> 296418 bytes | |||
-rw-r--r-- | res/10.jpg | bin | 0 -> 148294 bytes | |||
-rw-r--r-- | res/11.jpg | bin | 0 -> 160011 bytes | |||
-rw-r--r-- | res/12.jpg | bin | 0 -> 103332 bytes | |||
-rw-r--r-- | res/13.png | bin | 0 -> 743371 bytes | |||
-rw-r--r-- | res/14.png | bin | 0 -> 753133 bytes | |||
-rw-r--r-- | res/15.png | bin | 0 -> 807494 bytes | |||
-rw-r--r-- | res/16.png | bin | 0 -> 564639 bytes | |||
-rw-r--r-- | res/17.jpg | bin | 0 -> 146616 bytes | |||
-rw-r--r-- | res/18.jpg | bin | 0 -> 101788 bytes | |||
-rw-r--r-- | res/19.jpg | bin | 0 -> 155349 bytes | |||
-rw-r--r-- | res/2.png | bin | 0 -> 236082 bytes | |||
-rw-r--r-- | res/20.jpg | bin | 0 -> 124802 bytes | |||
-rw-r--r-- | res/21.jpg | bin | 0 -> 1079539 bytes | |||
-rw-r--r-- | res/22.jpg | bin | 0 -> 1079539 bytes | |||
-rw-r--r-- | res/23.jpg | bin | 0 -> 497855 bytes | |||
-rw-r--r-- | res/24.png | bin | 0 -> 734483 bytes | |||
-rw-r--r-- | res/25.jpg | bin | 0 -> 143120 bytes | |||
-rw-r--r-- | res/26.jpg | bin | 0 -> 120430 bytes | |||
-rw-r--r-- | res/3.jpg | bin | 0 -> 566299 bytes | |||
-rw-r--r-- | res/4.jpg | bin | 0 -> 550742 bytes | |||
-rw-r--r-- | res/5.png | bin | 0 -> 667565 bytes | |||
-rw-r--r-- | res/6.png | bin | 0 -> 517843 bytes | |||
-rw-r--r-- | res/7.png | bin | 0 -> 721916 bytes | |||
-rw-r--r-- | res/8.png | bin | 0 -> 621988 bytes | |||
-rw-r--r-- | res/9.jpg | bin | 0 -> 172685 bytes | |||
-rw-r--r-- | res/feh_030614_000001_2.png | bin | 0 -> 164424 bytes | |||
-rw-r--r-- | res/rt atelektase.png | bin | 0 -> 105106 bytes | |||
-rw-r--r-- | res/rt bronchial ca.png | bin | 0 -> 113964 bytes | |||
-rw-r--r-- | res/rt freie intraabdominelle luft.png | bin | 0 -> 121343 bytes | |||
-rw-r--r-- | res/rt hiatushernie.png | bin | 0 -> 137550 bytes | |||
-rw-r--r-- | res/rt luft.png | bin | 0 -> 135739 bytes | |||
-rw-r--r-- | res/rt pulmon st die zweite kerley.png | bin | 0 -> 146350 bytes | |||
-rw-r--r-- | res/rt pulmonal alveoläre stauung.png | bin | 0 -> 76494 bytes | |||
-rw-r--r-- | res/rt pulmonal venöse stauung.png | bin | 0 -> 144063 bytes | |||
-rw-r--r-- | res/rt spannungspneu.png | bin | 0 -> 68579 bytes | |||
-rw-r--r-- | res/rt struma.png | bin | 0 -> 67373 bytes | |||
-rw-r--r-- | res/rt weichteilemphysem.png | bin | 0 -> 129605 bytes | |||
-rw-r--r-- | trainer.py | 88 |
39 files changed, 88 insertions, 0 deletions
diff --git a/res/1.png b/res/1.png Binary files differnew file mode 100644 index 0000000..c04e659 --- /dev/null +++ b/res/1.png diff --git a/res/10.jpg b/res/10.jpg Binary files differnew file mode 100644 index 0000000..12b910c --- /dev/null +++ b/res/10.jpg diff --git a/res/11.jpg b/res/11.jpg Binary files differnew file mode 100644 index 0000000..dfc7785 --- /dev/null +++ b/res/11.jpg diff --git a/res/12.jpg b/res/12.jpg Binary files differnew file mode 100644 index 0000000..c0b9ff7 --- /dev/null +++ b/res/12.jpg diff --git a/res/13.png b/res/13.png Binary files differnew file mode 100644 index 0000000..d1e690d --- /dev/null +++ b/res/13.png diff --git a/res/14.png b/res/14.png Binary files differnew file mode 100644 index 0000000..0428b95 --- /dev/null +++ b/res/14.png diff --git a/res/15.png b/res/15.png Binary files differnew file mode 100644 index 0000000..0ea6cd6 --- /dev/null +++ b/res/15.png diff --git a/res/16.png b/res/16.png Binary files differnew file mode 100644 index 0000000..1648582 --- /dev/null +++ b/res/16.png diff --git a/res/17.jpg b/res/17.jpg Binary files differnew file mode 100644 index 0000000..d4cc067 --- /dev/null +++ b/res/17.jpg diff --git a/res/18.jpg b/res/18.jpg Binary files differnew file mode 100644 index 0000000..8a6dad6 --- /dev/null +++ b/res/18.jpg diff --git a/res/19.jpg b/res/19.jpg Binary files differnew file mode 100644 index 0000000..455feea --- /dev/null +++ b/res/19.jpg diff --git a/res/2.png b/res/2.png Binary files differnew file mode 100644 index 0000000..23198ba --- /dev/null +++ b/res/2.png diff --git a/res/20.jpg b/res/20.jpg Binary files differnew file mode 100644 index 0000000..ec55b37 --- /dev/null +++ b/res/20.jpg diff --git a/res/21.jpg b/res/21.jpg Binary files differnew file mode 100644 index 0000000..52461dd --- /dev/null +++ b/res/21.jpg diff --git a/res/22.jpg b/res/22.jpg Binary files differnew file mode 100644 index 0000000..52461dd --- /dev/null +++ b/res/22.jpg diff --git a/res/23.jpg b/res/23.jpg Binary files differnew file mode 100644 index 0000000..bc9622e --- /dev/null +++ b/res/23.jpg diff --git a/res/24.png b/res/24.png Binary files differnew file mode 100644 index 0000000..22e75f0 --- /dev/null +++ b/res/24.png diff --git a/res/25.jpg b/res/25.jpg Binary files differnew file mode 100644 index 0000000..c5138f5 --- /dev/null +++ b/res/25.jpg diff --git a/res/26.jpg b/res/26.jpg Binary files differnew file mode 100644 index 0000000..23945c0 --- /dev/null +++ b/res/26.jpg diff --git a/res/3.jpg b/res/3.jpg Binary files differnew file mode 100644 index 0000000..fccd029 --- /dev/null +++ b/res/3.jpg diff --git a/res/4.jpg b/res/4.jpg Binary files differnew file mode 100644 index 0000000..850e79e --- /dev/null +++ b/res/4.jpg diff --git a/res/5.png b/res/5.png Binary files differnew file mode 100644 index 0000000..495118e --- /dev/null +++ b/res/5.png diff --git a/res/6.png b/res/6.png Binary files differnew file mode 100644 index 0000000..8aef578 --- /dev/null +++ b/res/6.png diff --git a/res/7.png b/res/7.png Binary files differnew file mode 100644 index 0000000..788d393 --- /dev/null +++ b/res/7.png diff --git a/res/8.png b/res/8.png Binary files differnew file mode 100644 index 0000000..41c3591 --- /dev/null +++ b/res/8.png diff --git a/res/9.jpg b/res/9.jpg Binary files differnew file mode 100644 index 0000000..c4f11c5 --- /dev/null +++ b/res/9.jpg diff --git a/res/feh_030614_000001_2.png b/res/feh_030614_000001_2.png Binary files differnew file mode 100644 index 0000000..611bd66 --- /dev/null +++ b/res/feh_030614_000001_2.png diff --git a/res/rt atelektase.png b/res/rt atelektase.png Binary files differnew file mode 100644 index 0000000..84f0289 --- /dev/null +++ b/res/rt atelektase.png diff --git a/res/rt bronchial ca.png b/res/rt bronchial ca.png Binary files differnew file mode 100644 index 0000000..6c4438f --- /dev/null +++ b/res/rt bronchial ca.png diff --git a/res/rt freie intraabdominelle luft.png b/res/rt freie intraabdominelle luft.png Binary files differnew file mode 100644 index 0000000..bae0cb7 --- /dev/null +++ b/res/rt freie intraabdominelle luft.png diff --git a/res/rt hiatushernie.png b/res/rt hiatushernie.png Binary files differnew file mode 100644 index 0000000..96e2dfc --- /dev/null +++ b/res/rt hiatushernie.png diff --git a/res/rt luft.png b/res/rt luft.png Binary files differnew file mode 100644 index 0000000..6e31f3d --- /dev/null +++ b/res/rt luft.png diff --git a/res/rt pulmon st die zweite kerley.png b/res/rt pulmon st die zweite kerley.png Binary files differnew file mode 100644 index 0000000..daaa046 --- /dev/null +++ b/res/rt pulmon st die zweite kerley.png diff --git a/res/rt pulmonal alveoläre stauung.png b/res/rt pulmonal alveoläre stauung.png Binary files differnew file mode 100644 index 0000000..d4e605c --- /dev/null +++ b/res/rt pulmonal alveoläre stauung.png diff --git a/res/rt pulmonal venöse stauung.png b/res/rt pulmonal venöse stauung.png Binary files differnew file mode 100644 index 0000000..6563066 --- /dev/null +++ b/res/rt pulmonal venöse stauung.png diff --git a/res/rt spannungspneu.png b/res/rt spannungspneu.png Binary files differnew file mode 100644 index 0000000..e63cda6 --- /dev/null +++ b/res/rt spannungspneu.png diff --git a/res/rt struma.png b/res/rt struma.png Binary files differnew file mode 100644 index 0000000..ff74375 --- /dev/null +++ b/res/rt struma.png diff --git a/res/rt weichteilemphysem.png b/res/rt weichteilemphysem.png Binary files differnew file mode 100644 index 0000000..157850f --- /dev/null +++ b/res/rt weichteilemphysem.png 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") |