persona.service.ts
13.9 KB
-
feat(persona): 特别关注特征(D.2.3,屡次爽约/经常迟到/免打扰/不可等候) · 90ca7f57
- special_attention 多标签:屡次爽约(近1年履约率<50%且决定≥3)/经常迟到(到店>预约+15min≥50% 且≥3)/免打扰(doNotContact)/不可等候(notes/tags/病历关键词)。 -
⚠ ️ 挖出 2 个真问题并处理: ① no_show/cancelled 预约 patient_facts.status≠active/fulfilled,不在 persona ctx → 新增 ctx.appointmentsAll(单独加载全状态预约,排 superseded)给爽约/迟到用。 ② arrived_at(in_time)摄入 TZ bug:比 planned_for 一致早 8h → +8h 补偿(根治修摄入,follow-up)。 - 本地 928:经常迟到86/屡次爽约2(免打扰/不可等候样本无数据,全量会出)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>luoqi committed