medicafe 0.250725.1__tar.gz → 0.250725.2__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.1 → medicafe-0.250725.2}/MediBot/MediBot.py +13 -11
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot_UI.py +25 -21
- {medicafe-0.250725.1 → medicafe-0.250725.2}/PKG-INFO +1 -1
- {medicafe-0.250725.1 → medicafe-0.250725.2}/medicafe.egg-info/PKG-INFO +1 -1
- {medicafe-0.250725.1 → medicafe-0.250725.2}/setup.py +1 -1
- {medicafe-0.250725.1 → medicafe-0.250725.2}/LICENSE +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MANIFEST.in +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot.bat +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot_Charges.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot_Crosswalk_Library.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot_Post.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot_Preprocessor.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot_Preprocessor_lib.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot_dataformat_library.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/MediBot_docx_decoder.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/PDF_to_CSV_Cleaner.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/__init__.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/update_json.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediBot/update_medicafe.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_837p_cob_library.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_837p_encoder.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_837p_encoder_library.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_837p_utilities.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_API_Generator.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_API_v2.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_API_v3.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_APIs.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Azure.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_ClaimStatus.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_ConfigLoader.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_DataMgmt.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Decoder.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Deductible.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Deductible_Validator.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Down.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Gmail.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_GraphQL.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Mailer.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Parser.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Scan.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Scheduler.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_UI.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_Up.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/MediLink_batch.bat +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/Soumit_api.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/__init__.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/openssl.cnf +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/test.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/test_cob_library.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/test_validation.py +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/MediLink/webapp.html +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/README.md +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/medicafe.egg-info/SOURCES.txt +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/medicafe.egg-info/dependency_links.txt +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/medicafe.egg-info/not-zip-safe +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/medicafe.egg-info/requires.txt +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/medicafe.egg-info/top_level.txt +0 -0
- {medicafe-0.250725.1 → medicafe-0.250725.2}/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
|
|
@@ -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
|
-
#
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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
|
-
#
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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:
|
|
@@ -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
|
-
#
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
#
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
-
#
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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
|
-
#
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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']:
|
|
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
|