Files
AI-Health/backend/src/Health.Domain/Entities/report.cs
MingNian 287eab80a9 fix: 全面修复 - 实时通讯、报告AI流程、健康概览、用药运动提醒
- SignalR Hub消息持久化+防重复+跨端广播
- 报告VLM+LLM真实AI流程(验证→提取→解读)
- 医生审核页重构(严重程度/建议模板/综合评语)
- 健康概览五合一趋势图(fl_chart+指标切换)
- 用药提醒时区修复+跨午夜+过期提醒
- 运动打卡DayOfWeek映射修复+计划覆盖查询
- 体重与其他四指标同级(Abnormal检查/确认卡牌)
- AI Agent支持多种类多时段批量录入
- 删除硬编码假数据(张三/假医生/假AI解读)
- 随访/报告审核数据链路全部打通
2026-06-07 23:04:23 +08:00

29 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Health.Domain.Enums;
using System.ComponentModel.DataAnnotations.Schema;
namespace Health.Domain.Entities;
/// <summary>
/// 检查报告
/// </summary>
public sealed class Report
{
public Guid Id { get; set; }
public Guid UserId { get; set; }
public string FileUrl { get; set; } = string.Empty;
public ReportFileType FileType { get; set; }
public ReportCategory Category { get; set; }
public string? AiSummary { get; set; } // AI 预解读结果
[Column(TypeName = "jsonb")]
public string? AiIndicators { get; set; } // JSONB: [{name, value, unit, range, status}]
public ReportStatus Status { get; set; }
public string? Severity { get; set; } // 严重程度Normal/Abnormal/Severe/Critical
public string? DoctorComment { get; set; } // 医生审核意见
public string? DoctorRecommendation { get; set; } // 医生建议(用药/复查/生活方式)
public string? DoctorName { get; set; }
public DateTime? ReviewedAt { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public User User { get; set; } = null!;
}