medicafe 0.251023.1__py3-none-any.whl → 0.251026.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 +867 -835
- MediBot/__init__.py +1 -1
- MediCafe/MediLink_ConfigLoader.py +8 -1
- MediCafe/__init__.py +1 -1
- MediCafe/api_core.py +11 -43
- MediCafe/error_reporter.py +90 -116
- MediLink/MediLink_Deductible.py +24 -23
- MediLink/MediLink_Gmail.py +1 -0
- MediLink/MediLink_main.py +45 -52
- MediLink/__init__.py +1 -1
- {medicafe-0.251023.1.dist-info → medicafe-0.251026.0.dist-info}/METADATA +1 -1
- {medicafe-0.251023.1.dist-info → medicafe-0.251026.0.dist-info}/RECORD +16 -16
- {medicafe-0.251023.1.dist-info → medicafe-0.251026.0.dist-info}/LICENSE +0 -0
- {medicafe-0.251023.1.dist-info → medicafe-0.251026.0.dist-info}/WHEEL +0 -0
- {medicafe-0.251023.1.dist-info → medicafe-0.251026.0.dist-info}/entry_points.txt +0 -0
- {medicafe-0.251023.1.dist-info → medicafe-0.251026.0.dist-info}/top_level.txt +0 -0
MediLink/MediLink_main.py
CHANGED
|
@@ -22,7 +22,8 @@ if PERFORMANCE_LOGGING:
|
|
|
22
22
|
|
|
23
23
|
# Now import core utilities after path setup
|
|
24
24
|
from MediCafe.core_utils import get_shared_config_loader, setup_module_paths, extract_medilink_config
|
|
25
|
-
from MediCafe.error_reporter import
|
|
25
|
+
from MediCafe.error_reporter import collect_support_bundle, capture_unhandled_traceback
|
|
26
|
+
from MediCafe.error_reporter import submit_support_bundle_email
|
|
26
27
|
setup_module_paths(__file__)
|
|
27
28
|
|
|
28
29
|
# Import modules after path setup
|
|
@@ -72,8 +73,7 @@ def _tools_menu(config, medi):
|
|
|
72
73
|
print("\nMaintenance Tools:")
|
|
73
74
|
options = [
|
|
74
75
|
"Rebuild submission index now",
|
|
75
|
-
"Submit Error Report (
|
|
76
|
-
"Create Support Bundle (offline)",
|
|
76
|
+
"Submit Error Report (email)",
|
|
77
77
|
"Back"
|
|
78
78
|
]
|
|
79
79
|
MediLink_UI.display_menu(options)
|
|
@@ -93,26 +93,26 @@ def _tools_menu(config, medi):
|
|
|
93
93
|
print("Index rebuild error: {}".format(e))
|
|
94
94
|
elif choice == '2':
|
|
95
95
|
try:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if not zip_path:
|
|
99
|
-
print("Failed to create support bundle.")
|
|
96
|
+
if submit_support_bundle_email is None:
|
|
97
|
+
print("Email submission module not available.")
|
|
100
98
|
else:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
print("\nSubmitting Error Report (email)...")
|
|
100
|
+
zip_path = collect_support_bundle(include_traceback=True)
|
|
101
|
+
if not zip_path:
|
|
102
|
+
print("Failed to create support bundle.")
|
|
103
|
+
else:
|
|
104
|
+
ok = submit_support_bundle_email(zip_path)
|
|
105
|
+
if ok:
|
|
106
|
+
# Optional: remove the file upon success to avoid re-sending on next startup
|
|
107
|
+
try:
|
|
108
|
+
os.remove(zip_path)
|
|
109
|
+
except Exception:
|
|
110
|
+
pass
|
|
111
|
+
else:
|
|
112
|
+
print("Submission failed. Bundle saved at {} for manual handling.".format(zip_path))
|
|
104
113
|
except Exception as e:
|
|
105
|
-
print("Error during report submission: {}".format(e))
|
|
114
|
+
print("Error during email report submission: {}".format(e))
|
|
106
115
|
elif choice == '3':
|
|
107
|
-
try:
|
|
108
|
-
zip_path = collect_support_bundle(include_traceback=True)
|
|
109
|
-
if zip_path:
|
|
110
|
-
print("Support bundle created: {}".format(zip_path))
|
|
111
|
-
else:
|
|
112
|
-
print("Failed to create support bundle.")
|
|
113
|
-
except Exception as e:
|
|
114
|
-
print("Error creating support bundle: {}".format(e))
|
|
115
|
-
elif choice == '4':
|
|
116
116
|
break
|
|
117
117
|
else:
|
|
118
118
|
MediLink_UI.display_invalid_choice()
|
|
@@ -205,14 +205,7 @@ def main_menu():
|
|
|
205
205
|
if PERFORMANCE_LOGGING:
|
|
206
206
|
print("Welcome display completed in {:.2f} seconds".format(welcome_end - welcome_start))
|
|
207
207
|
|
|
208
|
-
# Startup: flush
|
|
209
|
-
try:
|
|
210
|
-
print("\nChecking for queued error reports...")
|
|
211
|
-
uploaded, total = flush_queued_reports()
|
|
212
|
-
if total:
|
|
213
|
-
print("Queued reports: {} | Uploaded now: {}".format(total, uploaded))
|
|
214
|
-
except Exception as e:
|
|
215
|
-
_safe_log("Queue flush skipped due to error: {}".format(e), level="WARNING")
|
|
208
|
+
# Startup: (removed) automatic HTTP queue flush for error reports to simplify UX
|
|
216
209
|
|
|
217
210
|
# Show message if new records were found during boot-time scan. TODO we need this to use the 'Last acknowledgements update:' timestamp to decide if it has already run in the last day so
|
|
218
211
|
# that we're not running it multiple times in rapid succession automatically. (user-initiated checks are fine like via selection of (1. Check for new remittances))
|
|
@@ -497,33 +490,33 @@ if __name__ == "__main__":
|
|
|
497
490
|
print("\nOperation cancelled by user.")
|
|
498
491
|
exit_code = 1
|
|
499
492
|
except Exception as e:
|
|
500
|
-
# Unexpected error: still avoid full traceback, present succinct notice
|
|
501
493
|
sys.stderr.write("An unexpected error occurred; process halted.\n")
|
|
502
494
|
sys.stderr.write(str(e) + "\n")
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
495
|
+
from MediCafe.error_reporter import collect_support_bundle
|
|
496
|
+
zip_path = collect_support_bundle(include_traceback=True)
|
|
497
|
+
if not zip_path:
|
|
498
|
+
print("Failed to create bundle - exiting.")
|
|
499
|
+
exit_code = 1
|
|
500
|
+
else:
|
|
501
|
+
from MediLink.MediLink_Up import check_internet_connection
|
|
502
|
+
online = check_internet_connection()
|
|
503
|
+
if online:
|
|
504
|
+
success = submit_support_bundle_email(zip_path)
|
|
505
|
+
if not success:
|
|
506
|
+
print("Send failed - bundle discarded.")
|
|
507
|
+
else:
|
|
508
|
+
ans = input("Offline. Connect to internet, then press Y to retry or N to discard: ").strip().lower()
|
|
509
|
+
if ans == 'y':
|
|
510
|
+
online = check_internet_connection()
|
|
511
|
+
if online:
|
|
512
|
+
success = submit_support_bundle_email(zip_path)
|
|
513
|
+
if not success:
|
|
514
|
+
print("Send failed - bundle discarded.")
|
|
518
515
|
else:
|
|
519
|
-
print("
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
try:
|
|
524
|
-
input()
|
|
525
|
-
except Exception:
|
|
526
|
-
pass
|
|
516
|
+
print("Still offline - discarding.")
|
|
517
|
+
else:
|
|
518
|
+
print("Discarding.")
|
|
519
|
+
os.remove(zip_path) if os.path.exists(zip_path) else None
|
|
527
520
|
exit_code = 1
|
|
528
521
|
finally:
|
|
529
522
|
if exit_code == 0 and PERFORMANCE_LOGGING:
|
MediLink/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
MediBot/MediBot.bat,sha256=
|
|
1
|
+
MediBot/MediBot.bat,sha256=vWcKZK7MdNIAnGpvpaSglN5DiAlKJVBpdtYwfQfpSQA,28234
|
|
2
2
|
MediBot/MediBot.py,sha256=ABSqWikb_c1VSuR4n8Vh5YfOqzDCi2jnnp3sg_xOYg0,51092
|
|
3
3
|
MediBot/MediBot_Charges.py,sha256=a28if_f_IoazIHiqlaFosFnfEgEoCwb9LQ6aOyk5-D0,10704
|
|
4
4
|
MediBot/MediBot_Crosswalk_Library.py,sha256=6LrpRx2UKVeH3TspS9LpR93iw5M7nTqN6IYpC-6PPGE,26060
|
|
@@ -12,7 +12,7 @@ MediBot/MediBot_dataformat_library.py,sha256=D46fdPtxcgfWTzaLBtSvjtozzZBNqNiODgu
|
|
|
12
12
|
MediBot/MediBot_debug.bat,sha256=F5Lfi3nFEEo4Ddx9EbX94u3fNAMgzMp3wsn-ULyASTM,6017
|
|
13
13
|
MediBot/MediBot_docx_decoder.py,sha256=9BSjV-kB90VHnqfL_5iX4zl5u0HcHvHuL7YNfx3gXpQ,33143
|
|
14
14
|
MediBot/MediBot_smart_import.py,sha256=Emvz7NwemHGCHvG5kZcUyXMcCheidbGKaPfOTg-YCEs,6684
|
|
15
|
-
MediBot/__init__.py,sha256=
|
|
15
|
+
MediBot/__init__.py,sha256=n9eH1i-SUxoIZz_mxReofqPsZKeOCtWKIIL8cd9XbSg,3192
|
|
16
16
|
MediBot/clear_cache.bat,sha256=F6-VhETWw6xDdGWG2wUqvtXjCl3lY4sSUFqF90bM8-8,1860
|
|
17
17
|
MediBot/crash_diagnostic.bat,sha256=j8kUtyBg6NOWbXpeFuEqIRHOkVzgUrLOqO3FBMfNxTo,9268
|
|
18
18
|
MediBot/f_drive_diagnostic.bat,sha256=4572hZaiwZ5wVAarPcZJQxkOSTwAdDuT_X914noARak,6878
|
|
@@ -21,15 +21,15 @@ MediBot/get_medicafe_version.py,sha256=uyL_UIE42MyFuJ3SRYxJp8sZx8xjTqlYZ3FdQuxLd
|
|
|
21
21
|
MediBot/process_csvs.bat,sha256=3tI7h1z9eRj8rUUL4wJ7dy-Qrak20lRmpAPtGbUMbVQ,3489
|
|
22
22
|
MediBot/update_json.py,sha256=vvUF4mKCuaVly8MmoadDO59M231fCIInc0KI1EtDtPA,3704
|
|
23
23
|
MediBot/update_medicafe.py,sha256=G1lyvVOHYuho1d-TJQNN6qaB4HBWaJ2PpXqemBoPlRQ,17937
|
|
24
|
-
MediCafe/MediLink_ConfigLoader.py,sha256=
|
|
25
|
-
MediCafe/__init__.py,sha256
|
|
24
|
+
MediCafe/MediLink_ConfigLoader.py,sha256=5AWsiy99WFcESXkzKbftT5afAoMygmb5-d0bER9TZSU,11419
|
|
25
|
+
MediCafe/__init__.py,sha256=_Eh2UabfrQ1hrTeW1LQA7ovRn13NBmR7jzzSmQwIK9c,5721
|
|
26
26
|
MediCafe/__main__.py,sha256=mRNyk3D9Ilnu2XhgVI_rut7r5Ro7UIKtwV871giAHI8,12992
|
|
27
|
-
MediCafe/api_core.py,sha256=
|
|
27
|
+
MediCafe/api_core.py,sha256=wLAdRNZdmovKReXvzsmAgKrbYon4-wbJbGCyOm_C3AU,89896
|
|
28
28
|
MediCafe/api_factory.py,sha256=I5AeJoyu6m7oCrjc2OvVvO_4KSBRutTsR1riiWhTZV0,12086
|
|
29
29
|
MediCafe/api_utils.py,sha256=KWQB0q1k5E6frOFFlKWcFpHNcqfrS7KJ_82672wbupw,14041
|
|
30
30
|
MediCafe/core_utils.py,sha256=XKUpyv7yKjIQ8iNrhD76PIURyt6GZxb98v0daiI7aaw,27303
|
|
31
31
|
MediCafe/deductible_utils.py,sha256=-ixDYwI3JNAyACrFjKqoX_hD3Awzownq441U0PSrwXw,64932
|
|
32
|
-
MediCafe/error_reporter.py,sha256=
|
|
32
|
+
MediCafe/error_reporter.py,sha256=TfRih7pOiopLoYKf--20-Q3q_FCFGEvUw85k3QmlzZ4,8413
|
|
33
33
|
MediCafe/graphql_utils.py,sha256=jo4CboMb9i5_qD0jkfrLbL87_Q3aFiwOntZhjF9fMsI,51928
|
|
34
34
|
MediCafe/logging_config.py,sha256=auT65LN5oDEXVhkMeLke63kJHTWxYf2o8YihAfQFgzU,5493
|
|
35
35
|
MediCafe/logging_demo.py,sha256=TwUhzafna5pMdN3zSKGrpUWRqX96F1JGGsSUtr3dygs,1975
|
|
@@ -47,11 +47,11 @@ MediLink/MediLink_Charges.py,sha256=82fnqHGvT7tfdfjucnFHiLdUE0WhHDXrcS0k_Ln3c8U,
|
|
|
47
47
|
MediLink/MediLink_ClaimStatus.py,sha256=nKX7QymhCULiaGfISYw_P0Eqy0TP6qKG4C2d3TdGFVo,22720
|
|
48
48
|
MediLink/MediLink_DataMgmt.py,sha256=9hc5jyWU65nYT66afDybOyYAcW-DvEYuHpWTun96U50,52407
|
|
49
49
|
MediLink/MediLink_Decoder.py,sha256=1gzdybNg4Vv69s5PNbX8bPNrXT_N_kPpFpt2HpkauWA,16430
|
|
50
|
-
MediLink/MediLink_Deductible.py,sha256=
|
|
50
|
+
MediLink/MediLink_Deductible.py,sha256=opGa5YQ6tfowurlf8xDWRtAtQMmoNYout0gYe3R5fUE,69537
|
|
51
51
|
MediLink/MediLink_Deductible_Validator.py,sha256=x6tHJOi88TblUpDPSH6QhIdXXRgr3rXI7kYPVGZYCgU,24998
|
|
52
52
|
MediLink/MediLink_Display_Utils.py,sha256=MonsX6VPbdvqwY_V8sHUYrXCS0fMKc4toJvG0oyr-V4,24872
|
|
53
53
|
MediLink/MediLink_Down.py,sha256=s4_z-RaqHYanjwbQCl-OSkg4XIpcIQ2Q6jXa8-q_QXw,28111
|
|
54
|
-
MediLink/MediLink_Gmail.py,sha256=
|
|
54
|
+
MediLink/MediLink_Gmail.py,sha256=zJI-pD9cfOhI7M3jJMQ6rrwnzT5wWmSMrI9DcvtXjNw,28688
|
|
55
55
|
MediLink/MediLink_Mailer.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
56
|
MediLink/MediLink_Parser.py,sha256=eRVZ4ckZ5gDOrcvtCUZP3DOd3Djly66rCIk0aYXLz14,12567
|
|
57
57
|
MediLink/MediLink_PatientProcessor.py,sha256=9r2w4p45d30Tn0kbXL3j5574MYOehP83tDirNOw_Aek,19977
|
|
@@ -60,18 +60,18 @@ MediLink/MediLink_Scheduler.py,sha256=UJvxhDvHraqra2_TlQVlGeh5jRFrrfK6nCVUHnKOEM
|
|
|
60
60
|
MediLink/MediLink_UI.py,sha256=ZEJ14EGh7pDu1XjAdORDFiay4UtTsLNWwNSJ0prHFWg,10381
|
|
61
61
|
MediLink/MediLink_Up.py,sha256=rzhzmWa4F_el37bDlSauFl_08m-dWz2xiflf-vVRkwg,38453
|
|
62
62
|
MediLink/MediLink_insurance_utils.py,sha256=g741Fj2K26cMy0JX5d_XavMw9LgkK6hjaUJYfysT7t8,9301
|
|
63
|
-
MediLink/MediLink_main.py,sha256=
|
|
63
|
+
MediLink/MediLink_main.py,sha256=bKCV_EDwc3DxQPFp5p0Lwy_cGXM3pexIA0HUhyAAtzw,25342
|
|
64
64
|
MediLink/MediLink_smart_import.py,sha256=ZUXvAkIA2Pk2uuyLZazKfKK8YGdkZt1VAeZo_ZSUyxk,9942
|
|
65
65
|
MediLink/Soumit_api.py,sha256=5JfOecK98ZC6NpZklZW2AkOzkjvrbYxpJpZNH3rFxDw,497
|
|
66
|
-
MediLink/__init__.py,sha256=
|
|
66
|
+
MediLink/__init__.py,sha256=AzRCYizAUAcX8EnSBzpU8dWGLewh3sx-S1ooKPtowGc,3888
|
|
67
67
|
MediLink/gmail_http_utils.py,sha256=mYChIhkbA1oJaAJA-nY3XgHQY-H7zvZJUZPhUagomsI,4047
|
|
68
68
|
MediLink/gmail_oauth_utils.py,sha256=Ugr-DEqs4_RddRMSCJ_dbgA3TVeaxpbAor-dktcTIgY,3713
|
|
69
69
|
MediLink/openssl.cnf,sha256=76VdcGCykf0Typyiv8Wd1mMVKixrQ5RraG6HnfKFqTo,887
|
|
70
70
|
MediLink/test.py,sha256=DM_E8gEbhbVfTAm3wTMiNnK2GCD1e5eH6gwTk89QIc4,3116
|
|
71
71
|
MediLink/webapp.html,sha256=DwDYjVvluGJ7eDdvEogfKN4t24ZJRoIUuSBfCYCL-3w,21252
|
|
72
|
-
medicafe-0.
|
|
73
|
-
medicafe-0.
|
|
74
|
-
medicafe-0.
|
|
75
|
-
medicafe-0.
|
|
76
|
-
medicafe-0.
|
|
77
|
-
medicafe-0.
|
|
72
|
+
medicafe-0.251026.0.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
|
|
73
|
+
medicafe-0.251026.0.dist-info/METADATA,sha256=_UOU1GmZO36NbpKgD7pwHoqyKolvBmDRgnj3FHQdLgo,3414
|
|
74
|
+
medicafe-0.251026.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
75
|
+
medicafe-0.251026.0.dist-info/entry_points.txt,sha256=m3RBUBjr-xRwEkKJ5W4a7NlqHZP_1rllGtjZnrRqKe8,52
|
|
76
|
+
medicafe-0.251026.0.dist-info/top_level.txt,sha256=U6-WBJ9RCEjyIs0BlzbQq_PwedCp_IV9n1616NNV5zA,26
|
|
77
|
+
medicafe-0.251026.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|