medicafe 0.250725.15__py3-none-any.whl → 0.250725.16__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
@@ -280,17 +280,20 @@ 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
- print("\nAm I processing Medicare patients? (yes/no): ", end='', flush=True)
287
- response = input().strip().lower()
288
- if not response:
289
- # If empty, clear any stray input and retry once
290
- while msvcrt.kbhit():
291
- msvcrt.getch()
292
- print("Please enter 'yes' or 'no': ", end='', flush=True)
293
- response = input().strip().lower()
294
+ print("DEBUG: About to call input()...")
295
+ response = input("\nAm I processing Medicare patients? (yes/no): ").strip().lower()
296
+ print("DEBUG: Got response: '{}' (length: {})".format(response, len(response)))
294
297
 
295
298
  if response in ['yes', 'y']:
296
299
  app_control.load_paths_from_config(medicare=True)
@@ -298,11 +301,13 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
298
301
  elif response in ['no', 'n']:
299
302
  app_control.load_paths_from_config(medicare=False)
300
303
  break
304
+ elif response == '':
305
+ print("No input detected. Please enter 'yes' or 'no'.")
301
306
  else:
302
307
  print("Invalid entry. Please enter 'yes' or 'no'.")
303
308
  except KeyboardInterrupt:
304
309
  print("\nOperation cancelled by user. Exiting script.")
305
- exit()
310
+ sys.exit(0)
306
311
 
307
312
  fixed_values = config.get('fixed_values', {}) # Get fixed values from config json
308
313
  if response in ['yes', 'y']:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: medicafe
3
- Version: 0.250725.15
3
+ Version: 0.250725.16
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=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=If5Nrk1RyK2EKtyesrT9ZoqYaRG8AmZwE8zjy0Qy2Is,13515
8
+ MediBot/MediBot_UI.py,sha256=D6rhBCPdszqxyct8OZ4_m2RFBhUskTEFbPvBI3-PcSI,13710
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.15.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
- medicafe-0.250725.15.dist-info/METADATA,sha256=qsUOm5FiolXu0meWBDv1SJMLrQz27npyyBFwDszMcxE,5502
54
- medicafe-0.250725.15.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
- medicafe-0.250725.15.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
- medicafe-0.250725.15.dist-info/RECORD,,
52
+ medicafe-0.250725.16.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
+ medicafe-0.250725.16.dist-info/METADATA,sha256=qySEbXCpsIWUKMYX3bgsV2my-f3VY3W4xBy2oMznEpU,5502
54
+ medicafe-0.250725.16.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
+ medicafe-0.250725.16.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
+ medicafe-0.250725.16.dist-info/RECORD,,