@@ -1,157 +1,115 @@
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using System.Linq;
|
||||
|
||||
namespace IRaCIS.Core.Domain.Models
|
||||
namespace IRaCIS.Core.Domain.Models;
|
||||
public class OSSImageInfo
|
||||
{
|
||||
public class OSSImageInfo
|
||||
{
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
|
||||
public string ImagePath { get; set; } = string.Empty;
|
||||
}
|
||||
///<summary>
|
||||
///TaskMedicalReview
|
||||
///</summary>
|
||||
[Table("TaskMedicalReview")]
|
||||
public class TaskMedicalReview : BaseFullAuditEntity
|
||||
{
|
||||
#region 导航属性
|
||||
|
||||
[JsonIgnore]
|
||||
public User LatestReplyUser { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public User MedicalManagerUser { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("VisitTaskId")]
|
||||
public VisitTask VisitTask { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public List<ReadingMedicalReviewDialog> ReadingMedicalReviewDialogList { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public Trial Trial { get; set; }
|
||||
/// <summary>
|
||||
/// 文件
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public List<OSSImageInfo> FileList
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = JsonConvert.DeserializeObject<List<OSSImageInfo>>(this.ImagePath);
|
||||
return result == null ? new List<OSSImageInfo>() : result;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<OSSImageInfo>();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
public List<Guid> PDRelationTaskIdList => PDRelationTaskIdListStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Select(t => Guid.Parse(t)).ToList();
|
||||
|
||||
#endregion
|
||||
|
||||
public Guid? LatestReplyUserId { get; set; }
|
||||
/// <summary>
|
||||
/// 分配时间
|
||||
/// </summary>
|
||||
public DateTime? AllocateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 审核状态
|
||||
/// </summary>
|
||||
[Required]
|
||||
public MedicalReviewAuditState AuditState { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 审核通过时间
|
||||
/// </summary>
|
||||
public DateTime? AuditSignTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 阅片人是否认同
|
||||
/// </summary>
|
||||
public MedicalReviewDoctorUserIdea DoctorUserIdeaEnum { get; set; }
|
||||
|
||||
public Guid? MedicalManagerUserId { get; set; }
|
||||
public Guid VisitTaskId { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否有问题
|
||||
/// </summary>
|
||||
public bool IsHaveQuestion { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 质询问题
|
||||
/// </summary>
|
||||
public string Questioning { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 图片路径
|
||||
/// </summary>
|
||||
public string ImagePath { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 审核建议
|
||||
/// </summary>
|
||||
public AuditAdvice AuditAdviceEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否关闭对话
|
||||
/// </summary>
|
||||
public bool IsClosedDialog { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 保存问题的时间
|
||||
/// </summary>
|
||||
public DateTime? SaveQuestionTime { get; set; }
|
||||
/// <summary>
|
||||
/// 不同意重阅原因
|
||||
/// </summary>
|
||||
public string DisagreeReason { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 是否申请重阅
|
||||
/// </summary>
|
||||
public bool IsApplyHeavyReading { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 保存结论时间
|
||||
/// </summary>
|
||||
public DateTime? SaveConclusionTime { get; set; }
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 是否发送消息
|
||||
/// </summary>
|
||||
public bool IsSendMessage { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 医学审核对话关闭原因
|
||||
/// </summary>
|
||||
public MedicalDialogClose MedicalDialogCloseEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对话关闭原因
|
||||
/// </summary>
|
||||
public string DialogCloseReason { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 无效的 为True无效
|
||||
/// </summary>
|
||||
public bool IsInvalid { get; set; }
|
||||
|
||||
public bool IsAutoGenerate { get; set; }
|
||||
|
||||
// | 分割
|
||||
public string PDRelationTaskIdListStr { get; set; } = string.Empty;
|
||||
}
|
||||
public string ImagePath { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
[Table("TaskMedicalReview")]
|
||||
public class TaskMedicalReview : BaseFullAuditEntity
|
||||
{
|
||||
#region 导航属性
|
||||
|
||||
[JsonIgnore]
|
||||
public User LatestReplyUser { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public User MedicalManagerUser { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("VisitTaskId")]
|
||||
public VisitTask VisitTask { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public List<ReadingMedicalReviewDialog> ReadingMedicalReviewDialogList { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public Trial Trial { get; set; }
|
||||
[Comment("文件")]
|
||||
[NotMapped]
|
||||
public List<OSSImageInfo> FileList
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
var result = JsonConvert.DeserializeObject<List<OSSImageInfo>>(this.ImagePath);
|
||||
return result == null ? new List<OSSImageInfo>() : result;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return new List<OSSImageInfo>();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
public List<Guid> PDRelationTaskIdList => PDRelationTaskIdListStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Select(t => Guid.Parse(t)).ToList();
|
||||
|
||||
#endregion
|
||||
|
||||
public Guid? LatestReplyUserId { get; set; }
|
||||
[Comment("分配时间")]
|
||||
public DateTime? AllocateTime { get; set; }
|
||||
|
||||
[Comment("审核状态")]
|
||||
[Required]
|
||||
public MedicalReviewAuditState AuditState { get; set; }
|
||||
|
||||
[Comment("审核通过时间")]
|
||||
public DateTime? AuditSignTime { get; set; }
|
||||
|
||||
[Comment("阅片人是否认同")]
|
||||
public MedicalReviewDoctorUserIdea DoctorUserIdeaEnum { get; set; }
|
||||
|
||||
public Guid? MedicalManagerUserId { get; set; }
|
||||
public Guid VisitTaskId { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
[Comment("是否有问题")]
|
||||
public bool IsHaveQuestion { get; set; } = false;
|
||||
|
||||
[Comment("质询问题")]
|
||||
public string Questioning { get; set; } = string.Empty;
|
||||
[Comment("图片路径")]
|
||||
public string ImagePath { get; set; } = string.Empty;
|
||||
|
||||
[Comment("审核建议")]
|
||||
public AuditAdvice AuditAdviceEnum { get; set; }
|
||||
|
||||
[Comment("是否关闭对话")]
|
||||
public bool IsClosedDialog { get; set; }
|
||||
|
||||
[Comment("保存问题的时间")]
|
||||
public DateTime? SaveQuestionTime { get; set; }
|
||||
[Comment("不同意重阅原因")]
|
||||
public string DisagreeReason { get; set; } = string.Empty;
|
||||
[Comment("是否申请重阅")]
|
||||
public bool IsApplyHeavyReading { get; set; } = false;
|
||||
[Comment("保存结论时间")]
|
||||
public DateTime? SaveConclusionTime { get; set; }
|
||||
[Comment("文件名称")]
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
|
||||
[Comment("是否发送消息")]
|
||||
public bool IsSendMessage { get; set; } = false;
|
||||
[Comment("医学审核对话关闭原因")]
|
||||
public MedicalDialogClose MedicalDialogCloseEnum { get; set; }
|
||||
|
||||
[Comment("对话关闭原因")]
|
||||
public string DialogCloseReason { get; set; } = string.Empty;
|
||||
|
||||
[Comment("无效的 为True无效")]
|
||||
public bool IsInvalid { get; set; }
|
||||
|
||||
public bool IsAutoGenerate { get; set; }
|
||||
|
||||
// | 分割
|
||||
public string PDRelationTaskIdListStr { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user