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