feat: chatbot CDT lookup — SRP quad, 4-digit auto-prefix, quad field to Selenium
- parseSrpCode: recognize "D4341 UL" / "4341 LR" etc., store quadrant in quad field - matchOne: auto-prefix D for 4-digit inputs like "0120" → D0120 - LLM prompt: keep SRP code and quadrant together as one procedureName entry - CdtMatch / CdtResult: add quad field, thread through matchedCodes action data - claim-form.tsx: include quad in chatbot_claim_prefill type and spread to service line - selenium_claimSubmitWorker.py: pass quad to fill_service_line, select quadrant dropdown by index (UR=1, UL=2, LL=3, LR=4) matching MassHealth form structure Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -62,6 +62,7 @@ interface CheckAndClaimData {
|
||||
autoCheck: string;
|
||||
matchedCodes: { code: string; description: string }[];
|
||||
serviceDate?: string | null;
|
||||
renderingProvider?: string | null;
|
||||
}
|
||||
|
||||
let msgCounter = 0;
|
||||
@@ -346,6 +347,7 @@ export function ChatbotButton() {
|
||||
memberId: checkAndClaimData.memberId,
|
||||
dob: checkAndClaimData.dob,
|
||||
serviceDate: checkAndClaimData.serviceDate ?? null,
|
||||
renderingProvider: checkAndClaimData.renderingProvider ?? null,
|
||||
})
|
||||
);
|
||||
prefillAndNavigate(checkAndClaimData.memberId, checkAndClaimData.dob, checkAndClaimData.autoCheck);
|
||||
@@ -412,6 +414,7 @@ export function ChatbotButton() {
|
||||
autoCheck: data.actionData.autoCheck,
|
||||
matchedCodes: data.actionData.matchedCodes ?? [],
|
||||
serviceDate: data.actionData.serviceDate ?? null,
|
||||
renderingProvider: data.actionData.renderingProvider ?? null,
|
||||
});
|
||||
setStep("check-and-claim-ready");
|
||||
return;
|
||||
@@ -788,6 +791,7 @@ export function ChatbotButton() {
|
||||
autoCheck: data.actionData.autoCheck,
|
||||
matchedCodes: data.actionData.matchedCodes ?? [],
|
||||
serviceDate: data.actionData.serviceDate ?? null,
|
||||
renderingProvider: data.actionData.renderingProvider ?? null,
|
||||
});
|
||||
setStep("check-and-claim-ready");
|
||||
} else if (data.action === "eligibility_id_ready" && data.actionData) {
|
||||
|
||||
Reference in New Issue
Block a user