medicafe 0.240925.9__py3-none-any.whl → 0.241015.0__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.bat +17 -0
- MediLink/MediLink_837p_encoder_library.py +1 -1
- MediLink/MediLink_API_v3.py +4 -3
- MediLink/MediLink_Gmail.py +5 -5
- {medicafe-0.240925.9.dist-info → medicafe-0.241015.0.dist-info}/METADATA +1 -1
- {medicafe-0.240925.9.dist-info → medicafe-0.241015.0.dist-info}/RECORD +9 -9
- {medicafe-0.240925.9.dist-info → medicafe-0.241015.0.dist-info}/LICENSE +0 -0
- {medicafe-0.240925.9.dist-info → medicafe-0.241015.0.dist-info}/WHEEL +0 -0
- {medicafe-0.240925.9.dist-info → medicafe-0.241015.0.dist-info}/top_level.txt +0 -0
MediBot/MediBot.bat
CHANGED
|
@@ -4,6 +4,7 @@ setlocal enabledelayedexpansion
|
|
|
4
4
|
|
|
5
5
|
:: Define paths
|
|
6
6
|
set "source_folder=C:\MEDIANSI\MediCare"
|
|
7
|
+
set "local_storage_path=F:\Medibot\DOWNLOADS"
|
|
7
8
|
set "target_folder=C:\MEDIANSI\MediCare\CSV"
|
|
8
9
|
set "config_file=F:\Medibot\json\config.json"
|
|
9
10
|
set "python_script=C:\Python34\Lib\site-packages\MediBot\update_json.py"
|
|
@@ -216,6 +217,21 @@ goto main_menu
|
|
|
216
217
|
|
|
217
218
|
:: Process CSV Files and Validate Against Config
|
|
218
219
|
:process_csvs
|
|
220
|
+
|
|
221
|
+
:: Move CSV files from local_storage_path to source_folder in case AK sends it unencrypted by accident.
|
|
222
|
+
echo Checking for new CSV files in local storage...
|
|
223
|
+
for %%f in ("%local_storage_path%\*.csv") do (
|
|
224
|
+
echo WARNING: Found unencrypted CSV files!
|
|
225
|
+
echo Moving %%f to %source_folder%...
|
|
226
|
+
move "%%f" "%source_folder%" >nul 2>&1
|
|
227
|
+
if errorlevel 1 (
|
|
228
|
+
echo Failed to move %%f. Check permissions or path.
|
|
229
|
+
) else (
|
|
230
|
+
echo Moved %%f successfully.
|
|
231
|
+
)
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
:: Retrieve the current time and date to create a timestamp
|
|
219
235
|
for /f "tokens=1-5 delims=/: " %%a in ('echo %time%') do (
|
|
220
236
|
set "hour=%%a"
|
|
221
237
|
set "minute=%%b"
|
|
@@ -228,6 +244,7 @@ for /f "tokens=2-4 delims=/ " %%a in ('echo %date%') do (
|
|
|
228
244
|
)
|
|
229
245
|
set "timestamp=!year!!month!!day!_!hour!!minute!"
|
|
230
246
|
|
|
247
|
+
:: Search for the most recent CSV file in source folder
|
|
231
248
|
set "latest_csv="
|
|
232
249
|
for /f "delims=" %%a in ('dir /b /a-d /o-d "%source_folder%\*.csv" 2^>nul') do (
|
|
233
250
|
set "latest_csv=%%a"
|
|
@@ -361,7 +361,7 @@ def handle_missing_payer_id(insurance_name, config, crosswalk, client):
|
|
|
361
361
|
if get_user_confirmation(confirmation_prompt):
|
|
362
362
|
# Step 7: Update the crosswalk with the new payer ID and insurance name mapping
|
|
363
363
|
try:
|
|
364
|
-
MediBot_Crosswalk_Library.update_crosswalk_with_new_payer_id(insurance_name, payer_id, config)
|
|
364
|
+
MediBot_Crosswalk_Library.update_crosswalk_with_new_payer_id(client, insurance_name, payer_id, config)
|
|
365
365
|
return payer_id
|
|
366
366
|
except Exception as e:
|
|
367
367
|
print("Failed to update crosswalk with new Payer ID: {}".format(e))
|
MediLink/MediLink_API_v3.py
CHANGED
|
@@ -297,12 +297,13 @@ def fetch_payer_name_from_api(client, payer_id, config, primary_endpoint='AVAILI
|
|
|
297
297
|
try:
|
|
298
298
|
endpoints = config['MediLink_Config']['endpoints']
|
|
299
299
|
except KeyError as e:
|
|
300
|
-
error_message = "Configuration loading error: Missing key {0}".format(e)
|
|
301
|
-
print(error_message)
|
|
302
|
-
MediLink_ConfigLoader.log(error_message, level="
|
|
300
|
+
error_message = "Configuration loading error in fetch_payer_name_from_api: Missing key {0}... Attempting to reload configuration.".format(e)
|
|
301
|
+
# print(error_message)
|
|
302
|
+
MediLink_ConfigLoader.log(error_message, level="ERROR")
|
|
303
303
|
# Attempt to reload configuration if key is missing
|
|
304
304
|
config, _ = MediLink_ConfigLoader.load_configuration()
|
|
305
305
|
endpoints = config['MediLink_Config']['endpoints'] # Re-attempt to access endpoints
|
|
306
|
+
MediLink_ConfigLoader.log("Re-loaded configuration successfully.", level="INFO")
|
|
306
307
|
|
|
307
308
|
# Define endpoint rotation logic
|
|
308
309
|
endpoint_order = ([primary_endpoint] +
|
MediLink/MediLink_Gmail.py
CHANGED
|
@@ -209,7 +209,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|
|
209
209
|
self.send_header('Content-type', 'text/html')
|
|
210
210
|
self.end_headers()
|
|
211
211
|
self.wfile.write("Authentication successful. You can close this window now.".encode())
|
|
212
|
-
initiate_link_retrieval() #
|
|
212
|
+
initiate_link_retrieval(config) # Pass config here
|
|
213
213
|
else:
|
|
214
214
|
log("Authentication failed with response: {}".format(token_response)) # Add this line
|
|
215
215
|
self.send_response(400)
|
|
@@ -344,13 +344,13 @@ def open_browser_with_executable(url, browser_path=None):
|
|
|
344
344
|
except Exception as e:
|
|
345
345
|
log("Failed to open browser: {}".format(e))
|
|
346
346
|
|
|
347
|
-
def initiate_link_retrieval():
|
|
347
|
+
def initiate_link_retrieval(config):
|
|
348
348
|
log("Initiating browser via implicit GET.")
|
|
349
|
-
url_get = "https://script.google.com/macros/s/
|
|
349
|
+
url_get = "https://script.google.com/macros/s/{}/exec?action=get_link".format(config['MediLink_Config']['webapp_deployment_id']) # Use config here
|
|
350
350
|
open_browser_with_executable(url_get)
|
|
351
351
|
|
|
352
352
|
log("Preparing POST call.")
|
|
353
|
-
url = "https://script.google.com/macros/s/
|
|
353
|
+
url = "https://script.google.com/macros/s/{}/exec".format(config['MediLink_Config']['webapp_deployment_id']) # Use config here
|
|
354
354
|
downloaded_emails = list(load_downloaded_emails())
|
|
355
355
|
payload = {
|
|
356
356
|
"downloadedEmails": downloaded_emails
|
|
@@ -437,7 +437,7 @@ def auth_and_retrieval():
|
|
|
437
437
|
shutdown_event.wait() # Wait for the shutdown event to be set after authentication
|
|
438
438
|
else:
|
|
439
439
|
log("Access token found. Proceeding.")
|
|
440
|
-
initiate_link_retrieval()
|
|
440
|
+
initiate_link_retrieval(config) # Pass config here
|
|
441
441
|
shutdown_event.wait() # Wait for the shutdown event to be set
|
|
442
442
|
|
|
443
443
|
if __name__ == "__main__":
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
MediBot/MediBot.bat,sha256=
|
|
1
|
+
MediBot/MediBot.bat,sha256=0jVq3yon3oEjTKHb9Q0xawNIBVLC9qcJzSCXoNfT6iU,9221
|
|
2
2
|
MediBot/MediBot.py,sha256=DJR814EE-qMASYf-h_gHqq6nYUV__t8LHKdrdL4lQtc,19006
|
|
3
3
|
MediBot/MediBot_Charges.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
MediBot/MediBot_Crosswalk_Library.py,sha256=ninHjG8HINyvnZ96k6VIZMoVXP_PDIFm-km46O6X2IU,34524
|
|
@@ -16,10 +16,10 @@ MediBot/update_medicafe.py,sha256=19SUpkSzbkDpa6UySskU9YRuXAPG9aO-8ocwUDI8A_0,60
|
|
|
16
16
|
MediLink/MediLink.py,sha256=iGdpYZ5pA2c1yDLXTc4Zmwh8tfSppA0d-wKK6uq96IQ,20185
|
|
17
17
|
MediLink/MediLink_277_decoder.py,sha256=Z3hQK2j-YzdXjov6aDlDRc7M_auFBnl3se4OF5q6_04,4358
|
|
18
18
|
MediLink/MediLink_837p_encoder.py,sha256=QkJoJgOaztNECweoGaT2Z-Uzn4siRA18Xb8CFMBENqk,24557
|
|
19
|
-
MediLink/MediLink_837p_encoder_library.py,sha256=
|
|
19
|
+
MediLink/MediLink_837p_encoder_library.py,sha256=JkeS2JMlOcEEbrNWR4P6Jb6uPJd9xftCoPXR_i3kh3k,46414
|
|
20
20
|
MediLink/MediLink_API_Generator.py,sha256=vBZ8moR9tvv7mb200HlZnJrk1y-bQi8E16I2r41vgVM,10345
|
|
21
21
|
MediLink/MediLink_API_v2.py,sha256=mcIgLnXPS_NaUBrkKJ8mxCUaQ0AuQUeU1vG6DoplbVY,7733
|
|
22
|
-
MediLink/MediLink_API_v3.py,sha256=
|
|
22
|
+
MediLink/MediLink_API_v3.py,sha256=zavJ3AQt6mAbgs8akXtpGwf0KBhFYlz3QG61Uh9BGI8,31278
|
|
23
23
|
MediLink/MediLink_APIs.py,sha256=jm3f9T034MJKH8A_CIootULoeuk7H8s7PazpFZRCbKI,6222
|
|
24
24
|
MediLink/MediLink_ClaimStatus.py,sha256=GNZ9mRrjxemBHJ5LiJb2DUWhKgWX2vTNY5jxoUgqv-I,9776
|
|
25
25
|
MediLink/MediLink_ConfigLoader.py,sha256=u9ecB0SIN7zuJAo8KcoQys95BtyAo-8S2n4mRd0S3XU,4356
|
|
@@ -28,7 +28,7 @@ MediLink/MediLink_Decoder.py,sha256=Suw9CmUHgoe0ZW8sJP_pIO8URBrhO5FmxFF8RcUj9lI,
|
|
|
28
28
|
MediLink/MediLink_Deductible.py,sha256=60et5Rue1jAmRb3loxiSyEpf7wXtC0MK75EXkKZgxIA,9030
|
|
29
29
|
MediLink/MediLink_Down.py,sha256=hrDODhs-zRfOKCdiRGENN5Czu-AvdtwJj4Q7grcRXME,6518
|
|
30
30
|
MediLink/MediLink_ERA_decoder.py,sha256=MiOtDcXnmevPfHAahIlTLlUc14VcQWAor9Xa7clA2Ts,8710
|
|
31
|
-
MediLink/MediLink_Gmail.py,sha256=
|
|
31
|
+
MediLink/MediLink_Gmail.py,sha256=PSfwkIwB0V2fGm3mYGE3JOCyBI0X7uHjO8aKhC7WebE,21193
|
|
32
32
|
MediLink/MediLink_Mailer.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
MediLink/MediLink_Parser.py,sha256=YCg2jvoJUi048GICUmP0v71b-hGqwxUQelhoi3P33i4,8128
|
|
34
34
|
MediLink/MediLink_Scan.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -40,8 +40,8 @@ MediLink/MediLink_batch.bat,sha256=nqL5QwCLyRQFSPdv6kgtcV_cpky7FXSOWVl6OxjRXb4,1
|
|
|
40
40
|
MediLink/Soumit_api.py,sha256=5JfOecK98ZC6NpZklZW2AkOzkjvrbYxpJpZNH3rFxDw,497
|
|
41
41
|
MediLink/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
42
42
|
MediLink/test.py,sha256=kSvvJRL_3fWuNS3_x4hToOnUljGLoeEw6SUTHQWQRJk,3108
|
|
43
|
-
medicafe-0.
|
|
44
|
-
medicafe-0.
|
|
45
|
-
medicafe-0.
|
|
46
|
-
medicafe-0.
|
|
47
|
-
medicafe-0.
|
|
43
|
+
medicafe-0.241015.0.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
|
|
44
|
+
medicafe-0.241015.0.dist-info/METADATA,sha256=7HLp-nhL-ZJeHJ5oX-Z5fjPiUFC1-M_gjOiQl1Qhv6E,4625
|
|
45
|
+
medicafe-0.241015.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
46
|
+
medicafe-0.241015.0.dist-info/top_level.txt,sha256=3uOwR4q_SP8Gufk2uCHoKngAgbtdOwQC6Qjl7ViBa_c,17
|
|
47
|
+
medicafe-0.241015.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|