medicafe 0.250725.11__py3-none-any.whl → 0.250725.13__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 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
@@ -231,8 +212,6 @@ def display_menu_header(title):
231
212
  print("\n" + "-" * 60)
232
213
  print(title)
233
214
  print("-" * 60)
234
- # Force flush for Windows XP compatibility
235
- sys.stdout.flush()
236
215
 
237
216
  def handle_user_interaction(interaction_mode, error_message):
238
217
  # Import here to avoid circular imports
@@ -308,7 +287,26 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
308
287
 
309
288
  while True:
310
289
  try:
311
- response = robust_input("\nAm I processing Medicare patients? (yes/no): ").lower()
290
+ # Retry mechanism for Windows XP console timing issues
291
+ for attempt in range(3): # Try up to 3 times
292
+ if attempt > 0:
293
+ print("Please try again:")
294
+ # Clear any leftover input on retry
295
+ while msvcrt.kbhit():
296
+ msvcrt.getch()
297
+
298
+ print("\nAm I processing Medicare patients? (yes/no): ", end='', flush=True)
299
+ time.sleep(0.1) # Windows XP compatibility delay
300
+
301
+ # Clear any leftover input
302
+ while msvcrt.kbhit():
303
+ msvcrt.getch()
304
+
305
+ response = input().strip().lower()
306
+
307
+ # If we got a response, break out of retry loop
308
+ if response:
309
+ break
312
310
 
313
311
  if response in ['yes', 'y']:
314
312
  app_control.load_paths_from_config(medicare=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: medicafe
3
- Version: 0.250725.11
3
+ Version: 0.250725.13
4
4
  Summary: MediCafe
5
5
  Home-page: https://github.com/katanada2
6
6
  Author: Daniel Vidaud
@@ -5,7 +5,7 @@ MediBot/MediBot_Crosswalk_Library.py,sha256=Ix4QlAcg3O9Y6n6ZeSUtbmtV-_n-t0-jnefX
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=thd3pwy7WW69Sf_UBMDe5gtghuMVUNoX-WIt-ITb7XM,13808
8
+ MediBot/MediBot_UI.py,sha256=TqitcMZ4ugmzZqwA1k6bYdjdRRjsxeoQD2liKsVy950,14109
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.11.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
- medicafe-0.250725.11.dist-info/METADATA,sha256=1fXL0swHuAtsnU0PcWEWzlFXvqln4OubeSZugTGw5UA,5502
54
- medicafe-0.250725.11.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
- medicafe-0.250725.11.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
- medicafe-0.250725.11.dist-info/RECORD,,
52
+ medicafe-0.250725.13.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
+ medicafe-0.250725.13.dist-info/METADATA,sha256=6kESGpjaVd0D6-J9z2vb_9-wCd6YQFowVbwbl7wK8xo,5502
54
+ medicafe-0.250725.13.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
+ medicafe-0.250725.13.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
+ medicafe-0.250725.13.dist-info/RECORD,,