medicafe 0.250724.0__tar.gz → 0.250725.1__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.250724.0 → medicafe-0.250725.1}/MediBot/MediBot.py +19 -3
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot_UI.py +37 -4
- {medicafe-0.250724.0 → medicafe-0.250725.1}/PKG-INFO +1 -1
- {medicafe-0.250724.0 → medicafe-0.250725.1}/medicafe.egg-info/PKG-INFO +1 -1
- {medicafe-0.250724.0 → medicafe-0.250725.1}/setup.py +1 -1
- {medicafe-0.250724.0 → medicafe-0.250725.1}/LICENSE +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MANIFEST.in +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot.bat +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot_Charges.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot_Crosswalk_Library.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot_Post.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot_Preprocessor.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot_Preprocessor_lib.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot_dataformat_library.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/MediBot_docx_decoder.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/PDF_to_CSV_Cleaner.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/__init__.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/update_json.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediBot/update_medicafe.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_837p_cob_library.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_837p_encoder.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_837p_encoder_library.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_837p_utilities.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_API_Generator.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_API_v2.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_API_v3.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_APIs.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Azure.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_ClaimStatus.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_ConfigLoader.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_DataMgmt.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Decoder.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Deductible.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Deductible_Validator.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Down.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Gmail.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_GraphQL.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Mailer.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Parser.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Scan.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Scheduler.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_UI.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_Up.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/MediLink_batch.bat +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/Soumit_api.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/__init__.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/openssl.cnf +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/test.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/test_cob_library.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/test_validation.py +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/MediLink/webapp.html +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/README.md +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/medicafe.egg-info/SOURCES.txt +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/medicafe.egg-info/dependency_links.txt +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/medicafe.egg-info/not-zip-safe +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/medicafe.egg-info/requires.txt +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/medicafe.egg-info/top_level.txt +0 -0
- {medicafe-0.250724.0 → medicafe-0.250725.1}/setup.cfg +0 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
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:
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
|
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
|