medicafe 0.250725.10__py3-none-any.whl → 0.250725.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of medicafe might be problematic. Click here for more details.
- MediBot/MediBot.py +11 -7
- MediBot/MediBot_UI.py +27 -35
- {medicafe-0.250725.10.dist-info → medicafe-0.250725.12.dist-info}/METADATA +1 -1
- {medicafe-0.250725.10.dist-info → medicafe-0.250725.12.dist-info}/RECORD +7 -7
- {medicafe-0.250725.10.dist-info → medicafe-0.250725.12.dist-info}/LICENSE +0 -0
- {medicafe-0.250725.10.dist-info → medicafe-0.250725.12.dist-info}/WHEEL +0 -0
- {medicafe-0.250725.10.dist-info → medicafe-0.250725.12.dist-info}/top_level.txt +0 -0
MediBot/MediBot.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#MediBot.py
|
|
2
|
-
import subprocess, os, tempfile, traceback, re, sys, time
|
|
2
|
+
import subprocess, os, tempfile, traceback, re, sys, time, msvcrt
|
|
3
3
|
from collections import OrderedDict
|
|
4
4
|
import MediBot_dataformat_library
|
|
5
5
|
import MediBot_Preprocessor
|
|
@@ -398,17 +398,21 @@ if __name__ == "__main__":
|
|
|
398
398
|
# Check if there are patients left to process
|
|
399
399
|
if len(patients_to_process) == 0:
|
|
400
400
|
print("\nAll patients have been processed. Continue anyway?: ", end='', flush=True)
|
|
401
|
-
#
|
|
402
|
-
|
|
403
|
-
|
|
401
|
+
time.sleep(0.1) # Reduced delay for Windows XP compatibility
|
|
402
|
+
|
|
403
|
+
# Clear any leftover input
|
|
404
|
+
while msvcrt.kbhit():
|
|
405
|
+
msvcrt.getch()
|
|
404
406
|
|
|
405
407
|
# Use input() for more reliable input on Windows XP
|
|
406
408
|
proceed = input().lower().strip() in ['yes', 'y']
|
|
407
409
|
else:
|
|
408
410
|
print("\nDo you want to proceed with the {} remaining patient(s)? (yes/no): ".format(len(patients_to_process)), end='', flush=True)
|
|
409
|
-
#
|
|
410
|
-
|
|
411
|
-
|
|
411
|
+
time.sleep(0.1) # Reduced delay for Windows XP compatibility
|
|
412
|
+
|
|
413
|
+
# Clear any leftover input
|
|
414
|
+
while msvcrt.kbhit():
|
|
415
|
+
msvcrt.getch()
|
|
412
416
|
|
|
413
417
|
# Use input() for more reliable input on Windows XP
|
|
414
418
|
proceed = input().lower().strip() in ['yes', 'y']
|
MediBot/MediBot_UI.py
CHANGED
|
@@ -20,25 +20,6 @@ VK_PAUSE = int(config.get('VK_PAUSE', ""), 16) # Try F11 (7A). Virtual-key code
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
def robust_input(prompt="", max_retries=3):
|
|
24
|
-
"""
|
|
25
|
-
Simple input function with retry logic for Windows XP console issues.
|
|
26
|
-
"""
|
|
27
|
-
for attempt in range(max_retries):
|
|
28
|
-
if attempt > 0:
|
|
29
|
-
# Clear any leftover input on retry
|
|
30
|
-
while msvcrt.kbhit():
|
|
31
|
-
msvcrt.getch()
|
|
32
|
-
|
|
33
|
-
response = input(prompt if attempt == 0 else "").strip()
|
|
34
|
-
|
|
35
|
-
if response:
|
|
36
|
-
return response
|
|
37
|
-
|
|
38
|
-
return ""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
23
|
class AppControl:
|
|
43
24
|
def __init__(self):
|
|
44
25
|
self.script_paused = False
|
|
@@ -169,9 +150,11 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
|
|
|
169
150
|
|
|
170
151
|
print("-" * 60)
|
|
171
152
|
print("\nDo you want to proceed with the selected patients? (yes/no): ", end='', flush=True)
|
|
172
|
-
#
|
|
173
|
-
|
|
174
|
-
|
|
153
|
+
time.sleep(0.1) # Reduced delay for Windows XP compatibility
|
|
154
|
+
|
|
155
|
+
# Clear any leftover input
|
|
156
|
+
while msvcrt.kbhit():
|
|
157
|
+
msvcrt.getch()
|
|
175
158
|
|
|
176
159
|
# Use input() for more reliable input on Windows XP
|
|
177
160
|
proceed = input().lower().strip() in ['yes', 'y']
|
|
@@ -184,9 +167,11 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
|
|
|
184
167
|
while True:
|
|
185
168
|
while True:
|
|
186
169
|
print("\nEnter the number(s) of the patients you wish to proceed with \n(e.g., 1,3,5): ", end='', flush=True)
|
|
187
|
-
#
|
|
188
|
-
|
|
189
|
-
|
|
170
|
+
time.sleep(0.1) # Reduced delay for Windows XP compatibility
|
|
171
|
+
|
|
172
|
+
# Clear any leftover input
|
|
173
|
+
while msvcrt.kbhit():
|
|
174
|
+
msvcrt.getch()
|
|
190
175
|
|
|
191
176
|
# Use input() for more reliable input on Windows XP
|
|
192
177
|
selection = input().strip()
|
|
@@ -227,8 +212,6 @@ def display_menu_header(title):
|
|
|
227
212
|
print("\n" + "-" * 60)
|
|
228
213
|
print(title)
|
|
229
214
|
print("-" * 60)
|
|
230
|
-
# Force flush for Windows XP compatibility
|
|
231
|
-
sys.stdout.flush()
|
|
232
215
|
|
|
233
216
|
def handle_user_interaction(interaction_mode, error_message):
|
|
234
217
|
# Import here to avoid circular imports
|
|
@@ -264,9 +247,11 @@ def handle_user_interaction(interaction_mode, error_message):
|
|
|
264
247
|
print("4: Exit script")
|
|
265
248
|
print("-" * 60)
|
|
266
249
|
print("Enter your choice (1/2/3/4): ", end='', flush=True)
|
|
267
|
-
#
|
|
268
|
-
|
|
269
|
-
|
|
250
|
+
time.sleep(0.1) # Reduced delay for Windows XP compatibility
|
|
251
|
+
|
|
252
|
+
# Clear any leftover input
|
|
253
|
+
while msvcrt.kbhit():
|
|
254
|
+
msvcrt.getch()
|
|
270
255
|
|
|
271
256
|
# Use input() for more reliable input on Windows XP
|
|
272
257
|
choice = input().strip()
|
|
@@ -296,12 +281,20 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
|
|
|
296
281
|
if interaction_mode == 'triage':
|
|
297
282
|
display_menu_header(" =(^.^)= Welcome to MediBot! =(^.^)=")
|
|
298
283
|
|
|
299
|
-
#
|
|
300
|
-
|
|
301
|
-
|
|
284
|
+
# Clear any leftover input from script launch
|
|
285
|
+
while msvcrt.kbhit():
|
|
286
|
+
msvcrt.getch()
|
|
287
|
+
|
|
302
288
|
while True:
|
|
303
289
|
try:
|
|
304
|
-
|
|
290
|
+
print("\nAm I processing Medicare patients? (yes/no): ", end='', flush=True)
|
|
291
|
+
time.sleep(0.1) # Windows XP compatibility delay
|
|
292
|
+
|
|
293
|
+
# Clear any leftover input
|
|
294
|
+
while msvcrt.kbhit():
|
|
295
|
+
msvcrt.getch()
|
|
296
|
+
|
|
297
|
+
response = input().strip().lower()
|
|
305
298
|
|
|
306
299
|
if response in ['yes', 'y']:
|
|
307
300
|
app_control.load_paths_from_config(medicare=True)
|
|
@@ -315,7 +308,6 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
|
|
|
315
308
|
print("\nOperation cancelled by user. Exiting script.")
|
|
316
309
|
exit()
|
|
317
310
|
|
|
318
|
-
|
|
319
311
|
fixed_values = config.get('fixed_values', {}) # Get fixed values from config json
|
|
320
312
|
if response in ['yes', 'y']:
|
|
321
313
|
medicare_added_fixed_values = config.get('medicare_added_fixed_values', {})
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
MediBot/MediBot.bat,sha256=anz5i-Td1k3HhRUvkCqHsw9lBLVmO6q9bt5kLTfr1Iw,13282
|
|
2
|
-
MediBot/MediBot.py,sha256=
|
|
2
|
+
MediBot/MediBot.py,sha256=596LWAKHFUswkhQa8s6CVBXsbuZUXyh6qUcU3KtneIY,24907
|
|
3
3
|
MediBot/MediBot_Charges.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
MediBot/MediBot_Crosswalk_Library.py,sha256=Ix4QlAcg3O9Y6n6ZeSUtbmtV-_n-t0-jnefXDBFlhhI,51441
|
|
5
5
|
MediBot/MediBot_Post.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
MediBot/MediBot_Preprocessor.py,sha256=Lc9uQnE5SAa0dQTOREdPV1QUB2cywXTHJ1h2w-fyeeQ,13331
|
|
7
7
|
MediBot/MediBot_Preprocessor_lib.py,sha256=LXzV85uq7YoAWbZi88HzAs_GObl7vP8mhFbWZQbd0M8,45687
|
|
8
|
-
MediBot/MediBot_UI.py,sha256=
|
|
8
|
+
MediBot/MediBot_UI.py,sha256=c1WDr017mGPYYBkfgRJfXIBnEyLuMfdRkFO9kkviu_w,13535
|
|
9
9
|
MediBot/MediBot_dataformat_library.py,sha256=XNyeiOC6uJUp15UXP_rhtB3rMTPus9ZXDnz5zHNoRYM,8586
|
|
10
10
|
MediBot/MediBot_docx_decoder.py,sha256=GbhX58pMAsWNhBF7B8AtWiNpUOB4bU0zAM81moXYkkE,27370
|
|
11
11
|
MediBot/MediPost.py,sha256=C1hZJFr65rN6F_dckjdBxFC0vL2CoqY9W3YFqU5HXtE,336
|
|
@@ -49,8 +49,8 @@ MediLink/test.py,sha256=kSvvJRL_3fWuNS3_x4hToOnUljGLoeEw6SUTHQWQRJk,3108
|
|
|
49
49
|
MediLink/test_cob_library.py,sha256=wUMv0-Y6fNsKcAs8Z9LwfmEBRO7oBzBAfWmmzwoNd1g,13841
|
|
50
50
|
MediLink/test_validation.py,sha256=FJrfdUFK--xRScIzrHCg1JeGdm0uJEoRnq6CgkP2lwM,4154
|
|
51
51
|
MediLink/webapp.html,sha256=JPKT559aFVBi1r42Hz7C77Jj0teZZRumPhBev8eSOLk,19806
|
|
52
|
-
medicafe-0.250725.
|
|
53
|
-
medicafe-0.250725.
|
|
54
|
-
medicafe-0.250725.
|
|
55
|
-
medicafe-0.250725.
|
|
56
|
-
medicafe-0.250725.
|
|
52
|
+
medicafe-0.250725.12.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
|
|
53
|
+
medicafe-0.250725.12.dist-info/METADATA,sha256=FlJzGB5PMI3rudimWojMtfk39VR7PdZssReEAlH0JWU,5502
|
|
54
|
+
medicafe-0.250725.12.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
55
|
+
medicafe-0.250725.12.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
|
|
56
|
+
medicafe-0.250725.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|