feat: auto-populate patient fields from member ID on eligibility page

When a member ID is typed on the insurance eligibility page, debounced
lookup fills in date of birth, first name, and last name if the patient
already exists in the database.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gitead
2026-05-08 14:30:29 -04:00
parent 9908e5b5fd
commit e9296c68f9
7 changed files with 81 additions and 8 deletions

View File

@@ -53,8 +53,8 @@ router.put("/chat-templates", async (req: Request, res: Response): Promise<any>
try {
const userId = req.user?.id;
if (!userId) return res.status(401).json({ message: "Unauthorized" });
const { reminderGreeting, newPatientGreeting, generalFallback } = req.body;
await storage.saveAiChatTemplates(userId, { reminderGreeting, newPatientGreeting, generalFallback });
const { reminderGreeting, newPatientGreeting, generalFallback, rescheduleGreeting } = req.body;
await storage.saveAiChatTemplates(userId, { reminderGreeting, newPatientGreeting, generalFallback, rescheduleGreeting });
const updated = await storage.getAiChatTemplates(userId);
return res.status(200).json(updated);
} catch (err) {