medicafe 0.250725.15__py3-none-any.whl → 0.250725.17__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_UI.py +16 -9
- {medicafe-0.250725.15.dist-info → medicafe-0.250725.17.dist-info}/METADATA +1 -1
- {medicafe-0.250725.15.dist-info → medicafe-0.250725.17.dist-info}/RECORD +6 -6
- {medicafe-0.250725.15.dist-info → medicafe-0.250725.17.dist-info}/LICENSE +0 -0
- {medicafe-0.250725.15.dist-info → medicafe-0.250725.17.dist-info}/WHEEL +0 -0
- {medicafe-0.250725.15.dist-info → medicafe-0.250725.17.dist-info}/top_level.txt +0 -0
MediBot/MediBot_UI.py
CHANGED
|
@@ -280,17 +280,22 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
|
|
|
280
280
|
|
|
281
281
|
if interaction_mode == 'triage':
|
|
282
282
|
display_menu_header(" =(^.^)= Welcome to MediBot! =(^.^)=")
|
|
283
|
+
|
|
284
|
+
# Clear any stray CR/LF that may be sitting in the console buffer
|
|
285
|
+
while msvcrt.kbhit():
|
|
286
|
+
try:
|
|
287
|
+
msvcrt.getch()
|
|
288
|
+
except OSError:
|
|
289
|
+
# On some terminals this might throw if buffer is empty mid-loop
|
|
290
|
+
break
|
|
283
291
|
|
|
284
292
|
while True:
|
|
285
293
|
try:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
msvcrt.getch()
|
|
292
|
-
print("Please enter 'yes' or 'no': ", end='', flush=True)
|
|
293
|
-
response = input().strip().lower()
|
|
294
|
+
# Force console to wake up by sending a dummy input event
|
|
295
|
+
kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
|
|
296
|
+
kernel32.GenerateConsoleCtrlEvent(0, 0) # Null event to wake console
|
|
297
|
+
|
|
298
|
+
response = input("\nAm I processing Medicare patients? (yes/no): ").strip().lower()
|
|
294
299
|
|
|
295
300
|
if response in ['yes', 'y']:
|
|
296
301
|
app_control.load_paths_from_config(medicare=True)
|
|
@@ -298,11 +303,13 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
|
|
|
298
303
|
elif response in ['no', 'n']:
|
|
299
304
|
app_control.load_paths_from_config(medicare=False)
|
|
300
305
|
break
|
|
306
|
+
elif response == '':
|
|
307
|
+
print("No input detected. Please enter 'yes' or 'no'.")
|
|
301
308
|
else:
|
|
302
309
|
print("Invalid entry. Please enter 'yes' or 'no'.")
|
|
303
310
|
except KeyboardInterrupt:
|
|
304
311
|
print("\nOperation cancelled by user. Exiting script.")
|
|
305
|
-
exit()
|
|
312
|
+
sys.exit(0)
|
|
306
313
|
|
|
307
314
|
fixed_values = config.get('fixed_values', {}) # Get fixed values from config json
|
|
308
315
|
if response in ['yes', 'y']:
|
|
@@ -5,7 +5,7 @@ MediBot/MediBot_Crosswalk_Library.py,sha256=Z03tTj2_ebX85D0UWUWnFnqqDSznXPmX-tT3
|
|
|
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=0LcBY5NtUQv2aGpcMucSafjEjAho9CyuhfMvqpu-dOk,13808
|
|
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.17.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
|
|
53
|
+
medicafe-0.250725.17.dist-info/METADATA,sha256=iL0DOww2D3dQpvUKzGGNoCGKpC6Ls-ls_N2lLRzWiaQ,5502
|
|
54
|
+
medicafe-0.250725.17.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
55
|
+
medicafe-0.250725.17.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
|
|
56
|
+
medicafe-0.250725.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|