feat(ai): Phase 2B 洞察→推送→反馈闭环 — 风险评分+通知+建议反馈
- 风险评分引擎 load_patient_data 实装(体征+化验异常)
- refresh_all_patients 高风险自动创建洞察+事件推送
- erp-message 订阅 copilot.insight.created 推送医护通知
- 每日 cron 增加洞察过期清理+建议过期清理
- POST /ai/suggestions/{id}/feedback 建议反馈端点
- SuggestionFeedbackService 反馈服务层
- 小程序健康页建议卡片增加采纳/忽略/咨询医生按钮
This commit is contained in:
@@ -41,6 +41,17 @@ export async function listPendingSuggestions() {
|
||||
return resp.data || [];
|
||||
}
|
||||
|
||||
export async function submitSuggestionFeedback(
|
||||
suggestionId: string,
|
||||
action: 'adopt' | 'ignore' | 'consult',
|
||||
feedbackText?: string,
|
||||
) {
|
||||
return api.post(`/ai/suggestions/${suggestionId}/feedback`, {
|
||||
action,
|
||||
feedback_text: feedbackText || null,
|
||||
});
|
||||
}
|
||||
|
||||
// === 健康摘要 ===
|
||||
|
||||
export interface SummaryItem {
|
||||
|
||||
Reference in New Issue
Block a user