medicafe 0.250725.10__py3-none-any.whl → 0.250725.11__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 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
- # Force flush and wait for Windows XP console buffer synchronization
402
- sys.stdout.flush()
403
- time.sleep(0.2) # Increased delay for Windows XP
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
- # Force flush and wait for Windows XP console buffer synchronization
410
- sys.stdout.flush()
411
- time.sleep(0.2) # Increased delay for Windows XP
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
@@ -169,9 +169,11 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
169
169
 
170
170
  print("-" * 60)
171
171
  print("\nDo you want to proceed with the selected patients? (yes/no): ", end='', flush=True)
172
- # Force flush and wait for Windows XP console buffer synchronization
173
- sys.stdout.flush()
174
- time.sleep(0.2) # Increased delay for Windows XP
172
+ time.sleep(0.1) # Reduced delay for Windows XP compatibility
173
+
174
+ # Clear any leftover input
175
+ while msvcrt.kbhit():
176
+ msvcrt.getch()
175
177
 
176
178
  # Use input() for more reliable input on Windows XP
177
179
  proceed = input().lower().strip() in ['yes', 'y']
@@ -184,9 +186,11 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
184
186
  while True:
185
187
  while True:
186
188
  print("\nEnter the number(s) of the patients you wish to proceed with \n(e.g., 1,3,5): ", end='', flush=True)
187
- # Force flush and wait for Windows XP console buffer synchronization
188
- sys.stdout.flush()
189
- time.sleep(0.2) # Increased delay for Windows XP
189
+ time.sleep(0.1) # Reduced delay for Windows XP compatibility
190
+
191
+ # Clear any leftover input
192
+ while msvcrt.kbhit():
193
+ msvcrt.getch()
190
194
 
191
195
  # Use input() for more reliable input on Windows XP
192
196
  selection = input().strip()
@@ -264,9 +268,11 @@ def handle_user_interaction(interaction_mode, error_message):
264
268
  print("4: Exit script")
265
269
  print("-" * 60)
266
270
  print("Enter your choice (1/2/3/4): ", end='', flush=True)
267
- # Force flush and wait for Windows XP console buffer synchronization
268
- sys.stdout.flush()
269
- time.sleep(0.2) # Increased delay for Windows XP
271
+ time.sleep(0.1) # Reduced delay for Windows XP compatibility
272
+
273
+ # Clear any leftover input
274
+ while msvcrt.kbhit():
275
+ msvcrt.getch()
270
276
 
271
277
  # Use input() for more reliable input on Windows XP
272
278
  choice = input().strip()
@@ -296,9 +302,10 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
296
302
  if interaction_mode == 'triage':
297
303
  display_menu_header(" =(^.^)= Welcome to MediBot! =(^.^)=")
298
304
 
299
- # Force flush for Windows XP compatibility
300
- sys.stdout.flush()
301
-
305
+ # Clear any leftover input from script launch
306
+ while msvcrt.kbhit():
307
+ msvcrt.getch()
308
+
302
309
  while True:
303
310
  try:
304
311
  response = robust_input("\nAm I processing Medicare patients? (yes/no): ").lower()
@@ -315,7 +322,6 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
315
322
  print("\nOperation cancelled by user. Exiting script.")
316
323
  exit()
317
324
 
318
-
319
325
  fixed_values = config.get('fixed_values', {}) # Get fixed values from config json
320
326
  if response in ['yes', 'y']:
321
327
  medicare_added_fixed_values = config.get('medicare_added_fixed_values', {})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: medicafe
3
- Version: 0.250725.10
3
+ Version: 0.250725.11
4
4
  Summary: MediCafe
5
5
  Home-page: https://github.com/katanada2
6
6
  Author: Daniel Vidaud
@@ -1,11 +1,11 @@
1
1
  MediBot/MediBot.bat,sha256=anz5i-Td1k3HhRUvkCqHsw9lBLVmO6q9bt5kLTfr1Iw,13282
2
- MediBot/MediBot.py,sha256=9ilE0Ok9BRcSt_RgXJJheJpc8mTclGSqfuBmq8MamwM,24845
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=q6_WUB6olw54xl1Rv6AWgthdMne9bfuRfHNdTv15Lq8,13733
8
+ MediBot/MediBot_UI.py,sha256=thd3pwy7WW69Sf_UBMDe5gtghuMVUNoX-WIt-ITb7XM,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.10.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
- medicafe-0.250725.10.dist-info/METADATA,sha256=6cuBOxg-O1EJzDLIy5g-uKRH6U3RfhEtlKRIAE7MK-c,5502
54
- medicafe-0.250725.10.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
- medicafe-0.250725.10.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
- medicafe-0.250725.10.dist-info/RECORD,,
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,,