feat: secondary insurance; SCO primary + MassHealth secondary rule; United SCO service history

- Patient: new secondaryInsuranceProvider / secondaryInsuranceId (form section,
  Patient Details, merge fill)
- MassHealth check on an SCO patient (Tufts SCO / United SCO primary), matched by
  MassHealth ID on file as secondary or by the single SCO patient with the same DOB
  (name must share a word when the portal returns one): MassHealth saved as secondary,
  primary plan/ID/status unchanged, MassHealth history not imported, PDF still saved
  to Eligibility documents. Prevents the name+DOB fallback from overwriting the SCO ID
- United SCO check: a MassHealth patient moved to United SCO keeps the old
  MassHealth ID as secondary; reads Dental Hub Service History and saves it
- Service history saves drop duplicate identical lines
- Chatbot: bare 100… member ID + DOB with no patient/insurance defaults to MassHealth

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-06 00:22:22 -05:00
co-authored by Claude Opus 5.5
parent 919d59f3da
commit de33325b03
105 changed files with 841 additions and 92 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "prisma-client-c71d49d3d4500cd9341fb5c74b30d2251bfc7d138df9c3f85254a27afe7793b1",
"name": "prisma-client-4f7be3a390297e2a3d10fa3adc112404dd959201233a6b49c5e521a312e6e217",
"main": "index.js",
"types": "index.d.ts",
"browser": "default.js",