From 6004bcb73d9619fbc185c7ea79515a4573cfa9fa Mon Sep 17 00:00:00 2001 From: Gitead Date: Thu, 16 Jul 2026 21:47:20 -0400 Subject: [PATCH] feat: editable insurance type selector on eligibility confirm card Lets a user override the default MassHealth check on the chatbot's eligibility-id-ready confirm card (e.g. switch to United SCO, CMSP, DDMA, Delta Dental, Tufts SCO, or CCA) before running the check. Co-Authored-By: Claude Sonnet 5 --- .../src/components/layout/chatbot.tsx | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/apps/Frontend/src/components/layout/chatbot.tsx b/apps/Frontend/src/components/layout/chatbot.tsx index d382b422..a2c44c84 100644 --- a/apps/Frontend/src/components/layout/chatbot.tsx +++ b/apps/Frontend/src/components/layout/chatbot.tsx @@ -16,6 +16,13 @@ import { import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; import { useLocation } from "wouter"; import { cn } from "@/lib/utils"; import { apiRequest } from "@/lib/queryClient"; @@ -92,6 +99,16 @@ function mdyToISO(mdy: string): string { return `${m[3]}-${m[1]!.padStart(2, "0")}-${m[2]!.padStart(2, "0")}`; } +const INSURANCE_TYPE_OPTIONS: { value: string; label: string }[] = [ + { value: "mh", label: "MassHealth" }, + { value: "cmsp", label: "CMSP" }, + { value: "ddma", label: "DDMA" }, + { value: "delta-ins", label: "Delta Dental" }, + { value: "united-sco", label: "United SCO" }, + { value: "tufts-sco", label: "Tufts SCO" }, + { value: "cca", label: "CCA" }, +]; + function getAutoCheck(dobISO: string): "mh" | "cmsp" { const [y, m, d] = dobISO.split("-").map(Number); const today = new Date(); @@ -981,6 +998,26 @@ export function ChatbotButton() { className="h-7 text-xs bg-white" /> +
+ + +
{eligibilityIdData.patient?.insuranceProvider && (

{eligibilityIdData.patient.insuranceProvider}

)}