medicafe 0.250725.10__tar.gz → 0.250725.11__tar.gz
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.
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot.py +11 -7
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot_UI.py +19 -13
- {medicafe-0.250725.10 → medicafe-0.250725.11}/PKG-INFO +1 -1
- {medicafe-0.250725.10 → medicafe-0.250725.11}/medicafe.egg-info/PKG-INFO +1 -1
- {medicafe-0.250725.10 → medicafe-0.250725.11}/setup.py +1 -1
- {medicafe-0.250725.10 → medicafe-0.250725.11}/LICENSE +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MANIFEST.in +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot.bat +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot_Charges.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot_Crosswalk_Library.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot_Post.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot_Preprocessor.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot_Preprocessor_lib.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot_dataformat_library.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/MediBot_docx_decoder.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/PDF_to_CSV_Cleaner.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/__init__.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/update_json.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediBot/update_medicafe.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_837p_cob_library.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_837p_encoder.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_837p_encoder_library.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_837p_utilities.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_API_Generator.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_API_v2.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_API_v3.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_APIs.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Azure.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_ClaimStatus.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_ConfigLoader.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_DataMgmt.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Decoder.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Deductible.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Deductible_Validator.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Down.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Gmail.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_GraphQL.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Mailer.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Parser.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Scan.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Scheduler.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_UI.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_Up.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/MediLink_batch.bat +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/Soumit_api.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/__init__.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/openssl.cnf +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/test.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/test_cob_library.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/test_validation.py +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/MediLink/webapp.html +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/README.md +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/medicafe.egg-info/SOURCES.txt +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/medicafe.egg-info/dependency_links.txt +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/medicafe.egg-info/not-zip-safe +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/medicafe.egg-info/requires.txt +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/medicafe.egg-info/top_level.txt +0 -0
- {medicafe-0.250725.10 → medicafe-0.250725.11}/setup.cfg +0 -0
|
@@ -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
|
-
#
|
|
402
|
-
|
|
403
|
-
|
|
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
|
-
#
|
|
410
|
-
|
|
411
|
-
|
|
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']
|
|
@@ -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
|
-
#
|
|
173
|
-
|
|
174
|
-
|
|
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
|
-
#
|
|
188
|
-
|
|
189
|
-
|
|
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
|
-
#
|
|
268
|
-
|
|
269
|
-
|
|
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
|
-
#
|
|
300
|
-
|
|
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', {})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|