feat: chat member ID/DOB eligibility defaults to DDMA, MassHealth moved to end of insurance dropdown

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 22:07:23 -05:00
co-authored by Claude Opus 5.5
parent 5d7a35bdc9
commit a99aa32463
2 changed files with 6 additions and 6 deletions
@@ -462,11 +462,11 @@ async function handleEligibilityById(
};
}
// Determine siteKey (defaults to MassHealth when no payer is specified)
const siteKey = resolveSiteKey(
patient?.insuranceProvider ?? null,
c.insuranceHint ?? null
);
// Determine siteKey (defaults to DDMA when no payer is specified)
const siteKey =
patient?.insuranceProvider || c.insuranceHint
? resolveSiteKey(patient?.insuranceProvider ?? null, c.insuranceHint ?? null)
: "DDMA";
const label = patient
? `${patient.firstName ?? ""} ${patient.lastName ?? ""}`.trim()
@@ -134,7 +134,6 @@ function mdyToISO(mdy: string): string {
}
const INSURANCE_TYPE_OPTIONS: { value: string; label: string }[] = [
{ value: "mh", label: "MassHealth" },
{ value: "ddma", label: "DDMA" },
{ value: "ddwa", label: "Delta WA" },
{ value: "delta-ins", label: "Deltains" },
@@ -146,6 +145,7 @@ const INSURANCE_TYPE_OPTIONS: { value: string; label: string }[] = [
{ value: "bcbs-ma", label: "BCBS MA" },
{ value: "metlife", label: "MetLife" },
{ value: "altus", label: "Altus" },
{ value: "mh", label: "MassHealth" },
];
function getAutoCheck(_dobISO: string): "mh" {