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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user