- SignalR Hub消息持久化+防重复+跨端广播 - 报告VLM+LLM真实AI流程(验证→提取→解读) - 医生审核页重构(严重程度/建议模板/综合评语) - 健康概览五合一趋势图(fl_chart+指标切换) - 用药提醒时区修复+跨午夜+过期提醒 - 运动打卡DayOfWeek映射修复+计划覆盖查询 - 体重与其他四指标同级(Abnormal检查/确认卡牌) - AI Agent支持多种类多时段批量录入 - 删除硬编码假数据(张三/假医生/假AI解读) - 随访/报告审核数据链路全部打通
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
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!;
|
||
}
|