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

@@ -72,6 +72,12 @@ export function startNewPatientConversation(userId: number, patientId: number):
stageStore.set(convKey(userId, patientId), "new_patient_greeted");
}
// Called when office sends a reschedule greeting — patient's next reply enters
// the reschedule flow.
export function startRescheduleConversation(userId: number, patientId: number): void {
stageStore.set(convKey(userId, patientId), "asked_reschedule_confirm");
}
// ── Pending reschedule data ───────────────────────────────────────────────────
// Holds the confirmed new date while AI waits for a time-slot answer.