medicafe 0.250810.1__py3-none-any.whl → 0.250810.3__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.
MediBot/MediBot.bat CHANGED
@@ -478,7 +478,7 @@ echo.
478
478
  :: Execute the update script with better error handling
479
479
  if exist "%upgrade_medicafe_local%" (
480
480
  echo Starting local update script...
481
- start "MediCafe Update" cmd /v:on /c "python \"%upgrade_medicafe_local%\" %package_version% & echo. & echo Update process completed. Press any key to close... & pause >nul"
481
+ start "MediCafe Update" cmd /v:on /c "python %upgrade_medicafe_local% %package_version% & echo. & echo Update process completed. Press any key to close... & pause >nul"
482
482
  if %errorlevel% equ 0 (
483
483
  echo %DATE% %TIME% Upgrade initiated successfully - local. >> "%temp_file%"
484
484
  echo [SUCCESS] Update process started successfully
@@ -490,7 +490,7 @@ if exist "%upgrade_medicafe_local%" (
490
490
  ) else (
491
491
  if exist "%upgrade_medicafe_legacy%" (
492
492
  echo Starting legacy update script...
493
- start "MediCafe Update" cmd /v:on /c "python \"%upgrade_medicafe_legacy%\" %package_version% & echo. & echo Update process completed. Press any key to close... & pause >nul"
493
+ start "MediCafe Update" cmd /v:on /c "python %upgrade_medicafe_legacy% %package_version% & echo. & echo Update process completed. Press any key to close... & pause >nul"
494
494
  if %errorlevel% equ 0 (
495
495
  echo %DATE% %TIME% Upgrade initiated successfully - legacy. >> "%temp_file%"
496
496
  echo [SUCCESS] Update process started successfully
MediCafe/api_core.py CHANGED
@@ -156,7 +156,13 @@ class APIClient(BaseAPIClient):
156
156
  APIRateLimiter = None
157
157
 
158
158
  try:
159
- from MediLink import MediLink_insurance_utils
159
+ try:
160
+ from MediLink import MediLink_insurance_utils
161
+ except Exception:
162
+ MediLink_insurance_utils = None
163
+ if MediLink_insurance_utils is None:
164
+ import importlib
165
+ MediLink_insurance_utils = importlib.import_module('MediLink.MediLink_insurance_utils')
160
166
  get_feature_flag = MediLink_insurance_utils.get_feature_flag
161
167
  MediLink_ConfigLoader.log("Successfully imported MediLink.MediLink_insurance_utils", level="DEBUG")
162
168
  except ImportError as e:
@@ -107,6 +107,14 @@ except ImportError:
107
107
  # XP/Python34 Compatibility: Enhanced error handling with verbose output
108
108
  try:
109
109
  from MediLink import MediLink_insurance_utils
110
+ except Exception:
111
+ MediLink_insurance_utils = None
112
+
113
+ safe_insurance_type_selection = None
114
+ try:
115
+ if MediLink_insurance_utils is None:
116
+ import importlib
117
+ MediLink_insurance_utils = importlib.import_module('MediLink.MediLink_insurance_utils')
110
118
  safe_insurance_type_selection = getattr(MediLink_insurance_utils, 'safe_insurance_type_selection', None)
111
119
  MediLink_ConfigLoader.log("Successfully imported safe_insurance_type_selection from MediLink_insurance_utils", level="DEBUG")
112
120
  except ImportError as e:
@@ -5,7 +5,7 @@
5
5
  import os, sys
6
6
 
7
7
  # Use core utilities for standardized imports
8
- from MediCafe.core_utils import get_shared_config_loader
8
+ from MediCafe.core_utils import get_shared_config_loader, import_medibot_module
9
9
  MediLink_ConfigLoader = get_shared_config_loader()
10
10
 
11
11
  import MediLink_DataMgmt
@@ -21,11 +21,10 @@ if project_dir not in sys.path:
21
21
  def _get_load_insurance_function():
22
22
  """Dynamically import load_insurance_data_from_mains to avoid circular imports."""
23
23
  try:
24
- import MediBot_Preprocessor_lib
24
+ MediBot_Preprocessor_lib = import_medibot_module('MediBot_Preprocessor_lib')
25
25
  if MediLink_ConfigLoader and hasattr(MediLink_ConfigLoader, 'log'):
26
- MediLink_ConfigLoader.log("Successfully imported MediBot_Preprocessor_lib", level="DEBUG")
27
-
28
- if hasattr(MediBot_Preprocessor_lib, 'load_insurance_data_from_mains'):
26
+ MediLink_ConfigLoader.log("Successfully imported MediBot_Preprocessor_lib via core_utils", level="DEBUG")
27
+ if MediBot_Preprocessor_lib and hasattr(MediBot_Preprocessor_lib, 'load_insurance_data_from_mains'):
29
28
  func = MediBot_Preprocessor_lib.load_insurance_data_from_mains
30
29
  if MediLink_ConfigLoader and hasattr(MediLink_ConfigLoader, 'log'):
31
30
  MediLink_ConfigLoader.log("Successfully accessed load_insurance_data_from_mains function", level="DEBUG")
@@ -36,12 +35,11 @@ def _get_load_insurance_function():
36
35
  MediLink_ConfigLoader.log(error_msg, level="WARNING")
37
36
  print("Warning: {}".format(error_msg))
38
37
  return None
39
-
40
- except ImportError as e:
41
- error_msg = "ImportError accessing MediBot_Preprocessor_lib: {}".format(str(e))
38
+ except Exception as e:
39
+ error_msg = "Unexpected error accessing MediBot_Preprocessor_lib: {}".format(str(e))
42
40
  if MediLink_ConfigLoader and hasattr(MediLink_ConfigLoader, 'log'):
43
- MediLink_ConfigLoader.log(error_msg, level="WARNING")
44
- print("Warning: {}".format(error_msg))
41
+ MediLink_ConfigLoader.log(error_msg, level="ERROR")
42
+ print("Error: {}".format(error_msg))
45
43
  return None
46
44
  except AttributeError as e:
47
45
  error_msg = "AttributeError accessing load_insurance_data_from_mains: {}".format(str(e))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: medicafe
3
- Version: 0.250810.1
3
+ Version: 0.250810.3
4
4
  Summary: MediCafe
5
5
  Home-page: https://github.com/katanada2
6
6
  Author: Daniel Vidaud
@@ -1,4 +1,4 @@
1
- MediBot/MediBot.bat,sha256=F6HgaWLpaLn6O_BGzkmlMAwZqhnPttPevH-P4WvJPY4,25114
1
+ MediBot/MediBot.bat,sha256=W7B9QSezMsOnv3TkTcQwmOG12bj0SJNRMoXucaMOqxI,25106
2
2
  MediBot/MediBot.py,sha256=G3QuSgyEizas4plYez1n-u8xigbbtYEgl1x6ZSTWsAw,34306
3
3
  MediBot/MediBot_Charges.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  MediBot/MediBot_Crosswalk_Library.py,sha256=HZHbjKHhjLW2jERmLS6pEZOl-MUxUu1YwA6oUltfdkE,24693
@@ -19,7 +19,7 @@ MediBot/update_medicafe.py,sha256=nKZL6G1fOFLqM_kTbnNM9amg_1LkAf_NKBhBBGLJAiw,25
19
19
  MediCafe/MediLink_ConfigLoader.py,sha256=_tB8FlJSNsRDHKL2X7XMmtLcxhCeXtiaddV-jOQWHi4,7723
20
20
  MediCafe/__init__.py,sha256=DF0XUu3G43AejXvEmd5aCyy0GDQahQD0pMwexmxem-E,5477
21
21
  MediCafe/__main__.py,sha256=Sr_4BHC3_o11472EEJ9qcrfuQLTyPZJHNqTTLb1yVx8,12050
22
- MediCafe/api_core.py,sha256=S2F2TeM2GhqrCQ2XuG0g9zq813rtQxTOkkgKBBYV_ZA,63560
22
+ MediCafe/api_core.py,sha256=AwnB2BMiBOMS_LKJlkHgd_lQPpE57WEYMfS-O-DeOzo,63851
23
23
  MediCafe/api_core_backup.py,sha256=Oy_Fqt0SEvGkQN1Oqw5iUPVFxPEokyju5CuPEb9k0OY,18686
24
24
  MediCafe/api_factory.py,sha256=I5AeJoyu6m7oCrjc2OvVvO_4KSBRutTsR1riiWhTZV0,12086
25
25
  MediCafe/api_utils.py,sha256=KWQB0q1k5E6frOFFlKWcFpHNcqfrS7KJ_82672wbupw,14041
@@ -33,7 +33,7 @@ MediLink/MediLink.py,sha256=p91MYghOCbNf3ikTzm5P9V1Luj035yd83EDbQ-Ov6oM,33258
33
33
  MediLink/MediLink_277_decoder.py,sha256=Z3hQK2j-YzdXjov6aDlDRc7M_auFBnl3se4OF5q6_04,4358
34
34
  MediLink/MediLink_837p_cob_library.py,sha256=sK43fwq-arTUyrwbYWfJIhwW6aemXmpS2F1kfXFPe9I,29851
35
35
  MediLink/MediLink_837p_encoder.py,sha256=NrM4CH81WRugq2iDhTv6kKvi3zuC3rogfDz4Li16Z6I,29622
36
- MediLink/MediLink_837p_encoder_library.py,sha256=MlY3GcTBHJwOARSfctMQu1fTeiWGrL5APJ1PrxjaxJw,66727
36
+ MediLink/MediLink_837p_encoder_library.py,sha256=EVR-ffUjOrcx9DisKAxwqxscAJ-XFSQcAk5VHFeYssY,66994
37
37
  MediLink/MediLink_837p_utilities.py,sha256=28H4F6HNXgNHpdnardKWeTPuXgVSzuvu5QEPmkCGp8Q,16285
38
38
  MediLink/MediLink_API_Generator.py,sha256=UUml-PBU3BQduun8RzFH4zfUuo6-p5Ufg7b6Vic-VrY,11171
39
39
  MediLink/MediLink_API_v2.py,sha256=mcIgLnXPS_NaUBrkKJ8mxCUaQ0AuQUeU1vG6DoplbVY,7733
@@ -53,7 +53,7 @@ MediLink/MediLink_Gmail.py,sha256=SCaauKBSsBXBljfwqSxIfXEXd74nYTEBo20I9ZNJksI,36
53
53
  MediLink/MediLink_GraphQL.py,sha256=O6OCaumT0zIC7YcIAwLOOYxiQnYhoMc48UL8ilNIBec,45720
54
54
  MediLink/MediLink_Mailer.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  MediLink/MediLink_Parser.py,sha256=w2ZD4minjwkaMz7nzP_r8v_Ow_uM5KHjpPSY8mIHcdE,9787
56
- MediLink/MediLink_PatientProcessor.py,sha256=F5fLniO0bz8hSK0ugAe7Mf2tO2gyW1GfS9Xb7BIZQy8,17245
56
+ MediLink/MediLink_PatientProcessor.py,sha256=G3hvq-ksc6bTiyFeBxnZgVC4B3gmQ77OLW0VsDnkBRU,17332
57
57
  MediLink/MediLink_Scan.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  MediLink/MediLink_Scheduler.py,sha256=UJvxhDvHraqra2_TlQVlGeh5jRFrrfK6nCVUHnKOEMY,38
59
59
  MediLink/MediLink_StatusCheck.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -73,9 +73,9 @@ MediLink/test_cob_library.py,sha256=wUMv0-Y6fNsKcAs8Z9LwfmEBRO7oBzBAfWmmzwoNd1g,
73
73
  MediLink/test_timing.py,sha256=yH2b8QPLDlp1Zy5AhgtjzjnDHNGhAD16ZtXtZzzESZw,2042
74
74
  MediLink/test_validation.py,sha256=FJrfdUFK--xRScIzrHCg1JeGdm0uJEoRnq6CgkP2lwM,4154
75
75
  MediLink/webapp.html,sha256=JPKT559aFVBi1r42Hz7C77Jj0teZZRumPhBev8eSOLk,19806
76
- medicafe-0.250810.1.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
77
- medicafe-0.250810.1.dist-info/METADATA,sha256=jv_OU7pokpza9YJGyDktDCeYDBy_IPJBp0KPeA3NThI,5501
78
- medicafe-0.250810.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
79
- medicafe-0.250810.1.dist-info/entry_points.txt,sha256=m3RBUBjr-xRwEkKJ5W4a7NlqHZP_1rllGtjZnrRqKe8,52
80
- medicafe-0.250810.1.dist-info/top_level.txt,sha256=U6-WBJ9RCEjyIs0BlzbQq_PwedCp_IV9n1616NNV5zA,26
81
- medicafe-0.250810.1.dist-info/RECORD,,
76
+ medicafe-0.250810.3.dist-info/LICENSE,sha256=65lb-vVujdQK7uMH3RRJSMwUW-WMrMEsc5sOaUn2xUk,1096
77
+ medicafe-0.250810.3.dist-info/METADATA,sha256=Wx-ktBL3ZzU1pQDbzrM9A_EpBXTrjZTAfkA_QDM5qqw,5501
78
+ medicafe-0.250810.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
79
+ medicafe-0.250810.3.dist-info/entry_points.txt,sha256=m3RBUBjr-xRwEkKJ5W4a7NlqHZP_1rllGtjZnrRqKe8,52
80
+ medicafe-0.250810.3.dist-info/top_level.txt,sha256=U6-WBJ9RCEjyIs0BlzbQq_PwedCp_IV9n1616NNV5zA,26
81
+ medicafe-0.250810.3.dist-info/RECORD,,