medicafe 0.250725.0__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 +21 -7
- MediBot/MediBot_UI.py +42 -13
- {medicafe-0.250725.0.dist-info → medicafe-0.250725.2.dist-info}/METADATA +1 -1
- {medicafe-0.250725.0.dist-info → medicafe-0.250725.2.dist-info}/RECORD +7 -7
- {medicafe-0.250725.0.dist-info → medicafe-0.250725.2.dist-info}/LICENSE +0 -0
- {medicafe-0.250725.0.dist-info → medicafe-0.250725.2.dist-info}/WHEEL +0 -0
- {medicafe-0.250725.0.dist-info → medicafe-0.250725.2.dist-info}/top_level.txt +0 -0
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
|
|
@@ -396,14 +396,28 @@ 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
|
-
#
|
|
400
|
-
|
|
401
|
-
|
|
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
|
+
# 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']
|
|
402
409
|
else:
|
|
403
410
|
print("\nDo you want to proceed with the {} remaining patient(s)? (yes/no): ".format(len(patients_to_process)), end='', flush=True)
|
|
404
|
-
#
|
|
405
|
-
|
|
406
|
-
|
|
411
|
+
# Force flush and wait for Windows XP console buffer synchronization
|
|
412
|
+
sys.stdout.flush()
|
|
413
|
+
time.sleep(0.2) # Increased delay for Windows XP
|
|
414
|
+
|
|
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']
|
|
407
421
|
|
|
408
422
|
# TODO: Here is where we need to add the step where we move to MediBot_Charges.
|
|
409
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__), ".."))
|
|
@@ -148,9 +148,16 @@ 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
|
-
#
|
|
152
|
-
|
|
153
|
-
|
|
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
|
+
# 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']
|
|
154
161
|
|
|
155
162
|
if not proceed:
|
|
156
163
|
display_menu_header("Patient Selection for Today's Data Entry")
|
|
@@ -160,9 +167,16 @@ def display_patient_selection_menu(csv_data, reverse_mapping, proceed_as_medicar
|
|
|
160
167
|
while True:
|
|
161
168
|
while True:
|
|
162
169
|
print("\nEnter the number(s) of the patients you wish to proceed with \n(e.g., 1,3,5): ", end='', flush=True)
|
|
163
|
-
#
|
|
164
|
-
|
|
165
|
-
|
|
170
|
+
# Force flush and wait for Windows XP console buffer synchronization
|
|
171
|
+
sys.stdout.flush()
|
|
172
|
+
time.sleep(0.2) # Increased delay for Windows XP
|
|
173
|
+
|
|
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()
|
|
166
180
|
if not selection:
|
|
167
181
|
print("Invalid entry. Please provide at least one number.")
|
|
168
182
|
continue
|
|
@@ -237,9 +251,16 @@ def handle_user_interaction(interaction_mode, error_message):
|
|
|
237
251
|
print("4: Exit script")
|
|
238
252
|
print("-" * 60)
|
|
239
253
|
print("Enter your choice (1/2/3/4): ", end='', flush=True)
|
|
240
|
-
#
|
|
241
|
-
|
|
242
|
-
|
|
254
|
+
# Force flush and wait for Windows XP console buffer synchronization
|
|
255
|
+
sys.stdout.flush()
|
|
256
|
+
time.sleep(0.2) # Increased delay for Windows XP
|
|
257
|
+
|
|
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()
|
|
243
264
|
|
|
244
265
|
if choice == '1':
|
|
245
266
|
print("Selected: 'Retry last entry'. Please press 'F12' to continue.")
|
|
@@ -273,9 +294,17 @@ def user_interaction(csv_data, interaction_mode, error_message, reverse_mapping)
|
|
|
273
294
|
try:
|
|
274
295
|
# Use a more explicit prompt format for Windows XP
|
|
275
296
|
print("\nAm I processing Medicare patients? (yes/no): ", end='', flush=True)
|
|
276
|
-
#
|
|
277
|
-
|
|
278
|
-
|
|
297
|
+
# Force flush and wait for Windows XP console buffer synchronization
|
|
298
|
+
sys.stdout.flush()
|
|
299
|
+
time.sleep(0.2) # Increased delay for Windows XP
|
|
300
|
+
|
|
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()
|
|
307
|
+
|
|
279
308
|
if response:
|
|
280
309
|
if response in ['yes', 'y']:
|
|
281
310
|
app_control.load_paths_from_config(medicare=True)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
MediBot/MediBot.bat,sha256=anz5i-Td1k3HhRUvkCqHsw9lBLVmO6q9bt5kLTfr1Iw,13282
|
|
2
|
-
MediBot/MediBot.py,sha256=
|
|
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=
|
|
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.
|
|
53
|
-
medicafe-0.250725.
|
|
54
|
-
medicafe-0.250725.
|
|
55
|
-
medicafe-0.250725.
|
|
56
|
-
medicafe-0.250725.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|