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:
@@ -27,6 +27,8 @@ export const PatientFindFirstSelectSchema: z.ZodType<Prisma.PatientSelect> = z.o
|
||||
policyHolder: z.boolean().optional(),
|
||||
policyHolderPatientId: z.boolean().optional(),
|
||||
policyHolderRelationship: z.boolean().optional(),
|
||||
secondaryInsuranceProvider: z.boolean().optional(),
|
||||
secondaryInsuranceId: z.boolean().optional(),
|
||||
allergies: z.boolean().optional(),
|
||||
medicalConditions: z.boolean().optional(),
|
||||
preferredLanguage: z.boolean().optional(),
|
||||
@@ -69,6 +71,8 @@ export const PatientFindFirstSelectZodSchema = z.object({
|
||||
policyHolder: z.boolean().optional(),
|
||||
policyHolderPatientId: z.boolean().optional(),
|
||||
policyHolderRelationship: z.boolean().optional(),
|
||||
secondaryInsuranceProvider: z.boolean().optional(),
|
||||
secondaryInsuranceId: z.boolean().optional(),
|
||||
allergies: z.boolean().optional(),
|
||||
medicalConditions: z.boolean().optional(),
|
||||
preferredLanguage: z.boolean().optional(),
|
||||
|
||||
Reference in New Issue
Block a user