medicafe 0.250724.0__py3-none-any.whl → 0.250725.1__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
2
+ import subprocess, os, tempfile, traceback, re, sys, time
3
3
  from collections import OrderedDict
4
4
  import MediBot_dataformat_library
5
5
  import MediBot_Preprocessor
@@ -396,10 +396,26 @@ if __name__ == "__main__":
396
396
  # Check if there are patients left to process
397
397
  if len(patients_to_process) == 0:
398
398
  print("\nAll patients have been processed. Continue anyway?: ", end='', flush=True)
399
- proceed = input().lower().strip() in ['yes', 'y']
399
+ # Force flush and wait for Windows XP console buffer synchronization
400
+ sys.stdout.flush()
401
+ time.sleep(0.2) # Increased delay for Windows XP
402
+
403
+ # Try raw_input first (Python 2.x compatibility), fall back to input
404
+ try:
405
+ proceed = raw_input().lower().strip() in ['yes', 'y']
406
+ except NameError:
407
+ proceed = input().lower().strip() in ['yes', 'y']
400
408
  else:
401
409
  print("\nDo you want to proceed with the {} remaining patient(s)? (yes/no): ".format(len(patients_to_process)), end='', flush=True)
402
- proceed = input().lower().strip() in ['yes', 'y']
410
+ # Force flush and wait for Windows XP console buffer synchronization
411
+ sys.stdout.flush()
412
+ time.sleep(0.2) # Increased delay for Windows XP
413
+
414
+ # Try raw_input first (Python 2.x compatibility), fall back to input
415
+ try:
416
+ proceed = raw_input().lower().strip() in ['yes', 'y']
417
+ except NameError:
418
+ proceed = input().lower().strip() in ['yes', 'y']
403
419
 
404
420
  # TODO: Here is where we need to add the step where we move to MediBot_Charges.
405
421
  # The return is an enriched dataset to be picked up by MediBot which means we need to return:
MediBot/MediBot_UI.py CHANGED
@@ -148,7 +148,15 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
148
148
 
149
149
  print("-" * 60)
150
150
  print("\nDo you want to proceed with the selected patients? (yes/no): ", end='', flush=True)
151
- proceed = input().lower().strip() in ['yes', 'y']
151
+ # Force flush and wait for Windows XP console buffer synchronization
152
+ sys.stdout.flush()
153
+ time.sleep(0.2) # Increased delay for Windows XP
154
+
155
+ # Try raw_input first (Python 2.x compatibility), fall back to input
156
+ try:
157
+ proceed = raw_input().lower().strip() in ['yes', 'y']
158
+ except NameError:
159
+ proceed = input().lower().strip() in ['yes', 'y']
152
160
 
153
161
  if not proceed:
154
162
  display_menu_header("Patient Selection for Today's Data Entry")
@@ -158,7 +166,15 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
158
166
  while True:
159
167
  while True:
160
168
  print("\nEnter the number(s) of the patients you wish to proceed with \n(e.g., 1,3,5): ", end='', flush=True)
161
- selection = input().strip()
169
+ # Force flush and wait for Windows XP console buffer synchronization
170
+ sys.stdout.flush()
171
+ time.sleep(0.2) # Increased delay for Windows XP
172
+
173
+ # Try raw_input first (Python 2.x compatibility), fall back to input
174
+ try:
175
+ selection = raw_input().strip()
176
+ except NameError:
177
+ selection = input().strip()
162
178
  if not selection:
163
179
  print("Invalid entry. Please provide at least one number.")
164
180
  continue
@@ -233,7 +249,15 @@ def handle_user_interaction(interaction_mode, error_message):
233
249
  print("4: Exit script")
234
250
  print("-" * 60)
235
251
  print("Enter your choice (1/2/3/4): ", end='', flush=True)
236
- choice = input().strip()
252
+ # Force flush and wait for Windows XP console buffer synchronization
253
+ sys.stdout.flush()
254
+ time.sleep(0.2) # Increased delay for Windows XP
255
+
256
+ # Try raw_input first (Python 2.x compatibility), fall back to input
257
+ try:
258
+ choice = raw_input().strip()
259
+ except NameError:
260
+ choice = input().strip()
237
261
 
238
262
  if choice == '1':
239
263
  print("Selected: 'Retry last entry'. Please press 'F12' to continue.")
@@ -267,7 +291,16 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
267
291
  try:
268
292
  # Use a more explicit prompt format for Windows XP
269
293
  print("\nAm I processing Medicare patients? (yes/no): ", end='', flush=True)
270
- response = input().lower().strip()
294
+ # Force flush and wait for Windows XP console buffer synchronization
295
+ sys.stdout.flush()
296
+ time.sleep(0.2) # Increased delay for Windows XP
297
+
298
+ # Try raw_input first (Python 2.x compatibility), fall back to input
299
+ try:
300
+ response = raw_input().lower().strip()
301
+ except NameError:
302
+ response = input().lower().strip()
303
+
271
304
  if response:
272
305
  if response in ['yes', 'y']:
273
306
  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.250724.0
3
+ Version: 0.250725.1
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=PQvAlfc-B15tr3Lbv1tV16ws2P1B04x0uCJ725fOlEc,24283
2
+ MediBot/MediBot.py,sha256=6jCmJZJtclmVwvsBupBnZiyHYd0I9xmvxreLklX19iw,25147
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=mJiLud8C6mztP4APA_LKgxj8dJ05YxLag47khhkLj20,13087
8
+ MediBot/MediBot_UI.py,sha256=0I8aS3iA0U9H-bGsXocS9gkBXS0pHAzfqHhWS8k-0qA,14599
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.250724.0.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
- medicafe-0.250724.0.dist-info/METADATA,sha256=wQblamJ71lD6awYx3z5wDMZ-PZYp3tCMg1z36lmlhMg,5501
54
- medicafe-0.250724.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
- medicafe-0.250724.0.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
- medicafe-0.250724.0.dist-info/RECORD,,
52
+ medicafe-0.250725.1.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
+ medicafe-0.250725.1.dist-info/METADATA,sha256=Cgk6b8lwljE1d4foXQ3N4Is-Iq5i8fH06CIWCWV1aZI,5501
54
+ medicafe-0.250725.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
+ medicafe-0.250725.1.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
+ medicafe-0.250725.1.dist-info/RECORD,,