feat: AI claim queue auto-return + D1120 age warning

- claims-page: after auto-submit closes the form, automatically navigate
  back to /appointments when an AI claim queue is pending resume, eliminating
  the manual navigation delay between appointments
- internal-chat-workflow: warn and block claim when D1120 (child prophy) is
  requested for a patient aged 14+ — recommend D1110 (adult prophy) instead,
  and advise manual claim if user insists on D1120

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ff
2026-06-12 22:18:59 -04:00
co-authored by Claude Sonnet 4.6
parent 831f67b093
commit fd4feb3e76
4 changed files with 112 additions and 3 deletions
+12
View File
@@ -813,6 +813,18 @@ export default function ClaimsPage() {
setIsClaimFormOpen(false);
clearUrlParams(["newPatient", "appointmentId"]);
// If an AI claim queue is pending resume, go straight back to appointments
try {
const raw = sessionStorage.getItem("ai_claim_queue");
if (raw) {
const parsed = JSON.parse(raw);
if (parsed?.pendingResume && Array.isArray(parsed.appointments) && parsed.appointments.length > 0) {
setWouterLocation("/appointments");
return;
}
}
} catch {}
};
// Pre Auth section