fix: pass chatbot attachments to Selenium claim worker and add missing re import
- Add `import re` to all Selenium workers that use re.search() for claim number extraction - Pass uploadedFiles to onHandleForMHSeleniumClaim so attachments reach the MH website - Save chatbot pending files in check-and-claim and batch-check-and-claim flows Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -996,6 +996,7 @@ export function ClaimForm({
|
|||||||
appointmentId: appointmentIdToUse,
|
appointmentId: appointmentIdToUse,
|
||||||
insuranceSiteKey: "MH",
|
insuranceSiteKey: "MH",
|
||||||
claimId: createdClaim.id,
|
claimId: createdClaim.id,
|
||||||
|
uploadedFiles,
|
||||||
});
|
});
|
||||||
|
|
||||||
// 5. Close form
|
// 5. Close form
|
||||||
|
|||||||
@@ -455,6 +455,7 @@ export function ChatbotButton() {
|
|||||||
renderingProvider: checkAndClaimData.renderingProvider ?? null,
|
renderingProvider: checkAndClaimData.renderingProvider ?? null,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
setChatbotPendingFiles(pendingFiles);
|
||||||
prefillAndNavigate(checkAndClaimData.memberId, checkAndClaimData.dob, checkAndClaimData.autoCheck);
|
prefillAndNavigate(checkAndClaimData.memberId, checkAndClaimData.dob, checkAndClaimData.autoCheck);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1113,6 +1114,7 @@ export function ChatbotButton() {
|
|||||||
serviceDate: null,
|
serviceDate: null,
|
||||||
renderingProvider,
|
renderingProvider,
|
||||||
}));
|
}));
|
||||||
|
setChatbotPendingFiles(pendingFiles);
|
||||||
prefillAndNavigate(first!.memberId, first!.dob, first!.autoCheck);
|
prefillAndNavigate(first!.memberId, first!.dob, first!.autoCheck);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import time
|
import time
|
||||||
import base64
|
import base64
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ from selenium.webdriver.support.ui import WebDriverWait
|
|||||||
from selenium.webdriver.support import expected_conditions as EC
|
from selenium.webdriver.support import expected_conditions as EC
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import json
|
import json
|
||||||
import base64
|
import base64
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ from selenium.webdriver.support import expected_conditions as EC
|
|||||||
from webdriver_manager.chrome import ChromeDriverManager
|
from webdriver_manager.chrome import ChromeDriverManager
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from ddma_browser_manager import get_browser_manager
|
from ddma_browser_manager import get_browser_manager
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ from selenium.webdriver.support import expected_conditions as EC
|
|||||||
from webdriver_manager.chrome import ChromeDriverManager
|
from webdriver_manager.chrome import ChromeDriverManager
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from dentaquest_browser_manager import get_browser_manager
|
from dentaquest_browser_manager import get_browser_manager
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ from selenium.webdriver.support.ui import WebDriverWait
|
|||||||
from selenium.webdriver.support import expected_conditions as EC
|
from selenium.webdriver.support import expected_conditions as EC
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from dentaquest_browser_manager import get_browser_manager
|
from dentaquest_browser_manager import get_browser_manager
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ from selenium.webdriver.support import expected_conditions as EC
|
|||||||
from webdriver_manager.chrome import ChromeDriverManager
|
from webdriver_manager.chrome import ChromeDriverManager
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ from selenium.webdriver.support import expected_conditions as EC
|
|||||||
from webdriver_manager.chrome import ChromeDriverManager
|
from webdriver_manager.chrome import ChromeDriverManager
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from unitedsco_browser_manager import get_browser_manager
|
from unitedsco_browser_manager import get_browser_manager
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ from selenium.webdriver.support import expected_conditions as EC
|
|||||||
from webdriver_manager.chrome import ChromeDriverManager
|
from webdriver_manager.chrome import ChromeDriverManager
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import stat
|
import stat
|
||||||
import base64
|
import base64
|
||||||
|
|||||||
Reference in New Issue
Block a user