medicafe 0.250725.1__py3-none-any.whl → 0.250725.2__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
@@ -400,22 +400,24 @@ if __name__ == "__main__":
400
400
  sys.stdout.flush()
401
401
  time.sleep(0.2) # Increased delay for Windows XP
402
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']
403
+ # Clear any leftover input in stdin buffer for Windows XP compatibility
404
+ while msvcrt.kbhit():
405
+ msvcrt.getch()
406
+
407
+ # Use sys.stdin.readline() for more reliable input on Windows XP
408
+ proceed = sys.stdin.readline().lower().strip() in ['yes', 'y']
408
409
  else:
409
410
  print("\nDo you want to proceed with the {} remaining patient(s)? (yes/no): ".format(len(patients_to_process)), end='', flush=True)
410
411
  # Force flush and wait for Windows XP console buffer synchronization
411
412
  sys.stdout.flush()
412
413
  time.sleep(0.2) # Increased delay for Windows XP
413
414
 
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']
415
+ # Clear any leftover input in stdin buffer for Windows XP compatibility
416
+ while msvcrt.kbhit():
417
+ msvcrt.getch()
418
+
419
+ # Use sys.stdin.readline() for more reliable input on Windows XP
420
+ proceed = sys.stdin.readline().lower().strip() in ['yes', 'y']
419
421
 
420
422
  # TODO: Here is where we need to add the step where we move to MediBot_Charges.
421
423
  # The return is an enriched dataset to be picked up by MediBot which means we need to return:
MediBot/MediBot_UI.py CHANGED
@@ -1,5 +1,5 @@
1
1
  #MediBot_UI.py
2
- import ctypes, time, re, os, sys
2
+ import ctypes, time, re, os, sys, msvcrt
3
3
  from ctypes import wintypes
4
4
  from sys import exit
5
5
  project_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
@@ -152,11 +152,12 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
152
152
  sys.stdout.flush()
153
153
  time.sleep(0.2) # Increased delay for Windows XP
154
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']
155
+ # Clear any leftover input in stdin buffer for Windows XP compatibility
156
+ while msvcrt.kbhit():
157
+ msvcrt.getch()
158
+
159
+ # Use sys.stdin.readline() for more reliable input on Windows XP
160
+ proceed = sys.stdin.readline().lower().strip() in ['yes', 'y']
160
161
 
161
162
  if not proceed:
162
163
  display_menu_header("Patient Selection for Today's Data Entry")
@@ -170,11 +171,12 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
170
171
  sys.stdout.flush()
171
172
  time.sleep(0.2) # Increased delay for Windows XP
172
173
 
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()
174
+ # Clear any leftover input in stdin buffer for Windows XP compatibility
175
+ while msvcrt.kbhit():
176
+ msvcrt.getch()
177
+
178
+ # Use sys.stdin.readline() for more reliable input on Windows XP
179
+ selection = sys.stdin.readline().strip()
178
180
  if not selection:
179
181
  print("Invalid entry. Please provide at least one number.")
180
182
  continue
@@ -253,11 +255,12 @@ def handle_user_interaction(interaction_mode, error_message):
253
255
  sys.stdout.flush()
254
256
  time.sleep(0.2) # Increased delay for Windows XP
255
257
 
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()
258
+ # Clear any leftover input in stdin buffer for Windows XP compatibility
259
+ while msvcrt.kbhit():
260
+ msvcrt.getch()
261
+
262
+ # Use sys.stdin.readline() for more reliable input on Windows XP
263
+ choice = sys.stdin.readline().strip()
261
264
 
262
265
  if choice == '1':
263
266
  print("Selected: 'Retry last entry'. Please press 'F12' to continue.")
@@ -295,11 +298,12 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
295
298
  sys.stdout.flush()
296
299
  time.sleep(0.2) # Increased delay for Windows XP
297
300
 
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()
301
+ # Clear any leftover input in stdin buffer for Windows XP compatibility
302
+ while msvcrt.kbhit():
303
+ msvcrt.getch()
304
+
305
+ # Use sys.stdin.readline() for more reliable input on Windows XP
306
+ response = sys.stdin.readline().lower().strip()
303
307
 
304
308
  if response:
305
309
  if response in ['yes', 'y']:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: medicafe
3
- Version: 0.250725.1
3
+ Version: 0.250725.2
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=6jCmJZJtclmVwvsBupBnZiyHYd0I9xmvxreLklX19iw,25147
2
+ MediBot/MediBot.py,sha256=aHpRdCWiGjqAMR-8PQo0XdkanP5CGcrTp-CMr4aYShA,25265
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=0I8aS3iA0U9H-bGsXocS9gkBXS0pHAzfqHhWS8k-0qA,14599
8
+ MediBot/MediBot_UI.py,sha256=0gDkjnNKnvfW0ta1otkAUjFhtjhY-MTwsop33AljSoc,14869
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.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,,
52
+ medicafe-0.250725.2.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
53
+ medicafe-0.250725.2.dist-info/METADATA,sha256=eY5ix4d_FdtWuR3IJW7nA0QefOQXa3-vJjH8K3c9Yeo,5501
54
+ medicafe-0.250725.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
+ medicafe-0.250725.2.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
56
+ medicafe-0.250725.2.dist-info/RECORD,,