整理数据库实体备注
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-20 18:20:37 +08:00
parent d3e3ed79ba
commit 40c8a51a31
174 changed files with 5006 additions and 6652 deletions
@@ -1,25 +1,21 @@
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Table("ReadingCustomTag")]
public class ReadingCustomTag : BaseAddAuditEntity
{
///<summary>
///ReadingCustomTag
///</summary>
[Table("ReadingCustomTag")]
public class ReadingCustomTag : BaseAddAuditEntity
{
#region
#region
#endregion
#endregion
public Guid VisitTaskId { get; set; }
public Guid VisitTaskId { get; set; }
public Guid? StudyId { get; set; }
public Guid? SeriesId { get; set; }
public Guid? StudyId { get; set; }
public Guid? SeriesId { get; set; }
public Guid? InstanceId { get; set; }
public Guid? InstanceId { get; set; }
public string MeasureData { get; set; } = string.Empty;
public string MeasureData { get; set; } = string.Empty;
public int? NumberOfFrames { get; set; }
public int? NumberOfFrames { get; set; }
}
}
@@ -1,54 +1,40 @@
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("阅片全局任务信息")]
[Table("ReadingGlobalTaskInfo")]
public class ReadingGlobalTaskInfo : BaseAddAuditEntity
{
///<summary>
/// 阅片全局任务信息
///</summary>
[Table("ReadingGlobalTaskInfo")]
public class ReadingGlobalTaskInfo : BaseAddAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("TaskId")]
public VisitTask VisitTask { get; set; }
#region
[JsonIgnore]
[ForeignKey("TaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
[ForeignKey("GlobalTaskId")]
public VisitTask GlobalVisitTask { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial TrialReadingQuestion { get; set; }
#endregion
[JsonIgnore]
[ForeignKey("GlobalTaskId")]
public VisitTask GlobalVisitTask { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial TrialReadingQuestion { get; set; }
#endregion
/// <summary>
/// 全局任务Id
/// </summary>
public Guid GlobalTaskId { get; set; }
[Comment("全局任务Id")]
public Guid GlobalTaskId { get; set; }
/// <summary>
/// 原任务ID
/// </summary>
[Comment("原任务ID")]
public Guid TaskId { get; set; }
public Guid TaskId { get; set; }
/// <summary>
/// 问题ID
/// </summary>
public Guid? QuestionId { get; set; }
[Comment("问题ID")]
public Guid? QuestionId { get; set; }
/// <summary>
/// 问题答案
/// </summary>
[Comment("问题答案")]
public string Answer { get; set; } = string.Empty;
public Guid TrialId { get; set; }
public string Answer { get; set; } = string.Empty;
public Guid TrialId { get; set; }
/// <summary>
/// 全局答案类型
/// </summary>
public GlobalAnswerType GlobalAnswerType { get; set; }
[Comment("全局答案类型")]
public GlobalAnswerType GlobalAnswerType { get; set; }
public Guid SubjectId { get; set; }
public Guid SubjectId { get; set; }
}
}
@@ -1,33 +1,23 @@
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("阅片裁判信息")]
[Table("ReadingJudgeInfo")]
public class ReadingJudgeInfo : BaseAddAuditEntity
{
///<summary>
///阅片裁判信息
///</summary>
[Table("ReadingJudgeInfo")]
public class ReadingJudgeInfo : BaseAddAuditEntity
{
#region
#region
#endregion
/// <summary>
/// 第一个任务ID
/// </summary>
[Required]
public Guid TaskIdOne { get; set; }
#endregion
[Comment("第一个任务ID")]
[Required]
public Guid TaskIdOne { get; set; }
/// <summary>
/// 第二个任务ID
/// </summary>
[Required]
public Guid TaskIdTwo { get; set; }
[Comment("第二个任务ID")]
[Required]
public Guid TaskIdTwo { get; set; }
/// <summary>
/// 裁判任务ID
/// </summary>
[Required]
public Guid JudgeTaskId { get; set; }
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
[Comment("裁判任务ID")]
[Required]
public Guid JudgeTaskId { get; set; }
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
}
}
@@ -1,48 +1,32 @@
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("阅片肿瘤学 针对访视任务 添加了一个结果")]
[Table("ReadingOncologyTaskInfo")]
public class ReadingOncologyTaskInfo : BaseAddAuditEntity
{
/// <summary>
/// 阅片肿瘤学 针对访视任务 添加了一个结果
/// </summary>
[Table("ReadingOncologyTaskInfo")]
public class ReadingOncologyTaskInfo : BaseAddAuditEntity
{
#region
#region
[JsonIgnore]
[ForeignKey("OncologyTaskId")]
public VisitTask OncologyVisitTask { get; set; }
[JsonIgnore]
[ForeignKey("OncologyTaskId")]
public VisitTask OncologyVisitTask { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
#endregion
/// <summary>
/// 肿瘤学 阅片任务ID
/// </summary>
public Guid OncologyTaskId { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
#endregion
[Comment("肿瘤学 阅片任务ID")]
public Guid OncologyTaskId { get; set; }
/// <summary>
/// 产生肿瘤学阅片任务的 访视类型的阅片任务Id
/// </summary>
public Guid VisitTaskId { get; set; }
[Comment("产生肿瘤学阅片任务的 访视类型的阅片任务Id")]
public Guid VisitTaskId { get; set; }
/// <summary>
/// 结果
/// </summary>
public string EvaluationResult { get; set; } = string.Empty;
[Comment("结果")]
public string EvaluationResult { get; set; } = string.Empty;
/// <summary>
/// 原因
/// </summary>
public string EvaluationReason { get; set; } = string.Empty;
/// <summary>
/// 项目Id
/// </summary>
public Guid TrialId { get; set; }
[Comment("原因")]
public string EvaluationReason { get; set; } = string.Empty;
[Comment("项目Id")]
public Guid TrialId { get; set; }
/// <summary>
/// 受试者Id
/// </summary>
public Guid SubjectId { get; set; }
}
[Comment("受试者Id")]
public Guid SubjectId { get; set; }
}
@@ -1,137 +1,107 @@
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("表格问题答案行数据")]
[Table("ReadingTableAnswerRowInfo")]
public class ReadingTableAnswerRowInfo : BaseFullDeleteAuditEntity
{
///<summary>
/// 表格问题答案行数据
///</summary>
[Table("ReadingTableAnswerRowInfo")]
public class ReadingTableAnswerRowInfo : BaseFullDeleteAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("InstanceId")]
public DicomInstance Instance { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
[ForeignKey("OrganInfoId")]
public OrganInfo OrganInfo { get; set; }
[JsonIgnore]
[ForeignKey("SplitRowId")]
public ReadingTableAnswerRowInfo SplitRow { get; set; }
[JsonIgnore]
[ForeignKey("MergeRowId")]
public ReadingTableAnswerRowInfo MergeRow { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
//病灶答案表
[JsonIgnore]
public List<ReadingTableQuestionAnswer> LesionAnswerList { get; set; } = new List<ReadingTableQuestionAnswer>();
#endregion
public Guid QuestionId { get; set; }
public Guid VisitTaskId { get; set; }
#region
[JsonIgnore]
[ForeignKey("InstanceId")]
public DicomInstance Instance { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
[ForeignKey("OrganInfoId")]
public OrganInfo OrganInfo { get; set; }
[JsonIgnore]
[ForeignKey("SplitRowId")]
public ReadingTableAnswerRowInfo SplitRow { get; set; }
[JsonIgnore]
[ForeignKey("MergeRowId")]
public ReadingTableAnswerRowInfo MergeRow { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
//病灶答案表
[JsonIgnore]
public List<ReadingTableQuestionAnswer> LesionAnswerList { get; set; } = new List<ReadingTableQuestionAnswer>();
#endregion
public Guid QuestionId { get; set; }
public Guid VisitTaskId { get; set; }
public Guid TrialId { get; set; }
public Guid? InstanceId { get; set; }
public Guid TrialId { get; set; }
public Guid? InstanceId { get; set; }
public Guid? SeriesId { get; set; }
public Guid? StudyId { get; set; }
public Guid? SeriesId { get; set; }
public Guid? StudyId { get; set; }
public Guid? OtherInstanceId { get; set; }
public Guid? OtherInstanceId { get; set; }
public Guid? OtherSeriesId { get; set; }
public Guid? OtherSeriesId { get; set; }
public Guid? OtherStudyId { get; set; }
public Guid? OtherStudyId { get; set; }
public string OtherMarkTool { get; set; } = string.Empty;
public string OtherMarkTool { get; set; } = string.Empty;
public string OtherPicturePath { get; set; } = string.Empty;
public string OtherPicturePath { get; set; } = string.Empty;
public int? OtherNumberOfFrames { get; set; }
public int? OtherNumberOfFrames { get; set; }
public bool IsCanEditPosition { get; set; } = false;
/// <summary>
/// 是Dicom阅片
/// </summary>
public bool IsDicomReading { get; set; } = true;
public bool IsCanEditPosition { get; set; } = false;
[Comment("是Dicom阅片")]
public bool IsDicomReading { get; set; } = true;
public decimal RowIndex { get; set; }
public decimal RowIndex { get; set; }
public string MeasureData { get; set; } = string.Empty;
public string MeasureData { get; set; } = string.Empty;
/// <summary>
/// 是否是当前任务添加
/// </summary>
public bool IsCurrentTaskAdd { get; set; } = false;
[Comment("是否是当前任务添加")]
public bool IsCurrentTaskAdd { get; set; } = false;
public Guid? SplitRowId { get; set; }
public Guid? SplitRowId { get; set; }
public Guid? MergeRowId { get; set; }
public Guid? MergeRowId { get; set; }
public string BlindName { get; set; } = string.Empty;
public string BlindName { get; set; } = string.Empty;
public string OrderMark { get; set; } = string.Empty;
public string OrderMark { get; set; } = string.Empty;
/// <summary>
/// 截图地址
/// </summary>
public string PicturePath { get; set; } = string.Empty;
[Comment("截图地址")]
public string PicturePath { get; set; } = string.Empty;
/// <summary>
/// 第一次添加的任务ID
/// </summary>
public decimal FristAddTaskNum { get; set; } = 0;
[Comment("第一次添加的任务ID")]
public decimal FristAddTaskNum { get; set; } = 0;
/// <summary>
/// 首次添加任务ID
/// </summary>
public Guid FristAddTaskId { get; set; }
[Comment("首次添加任务ID")]
public Guid FristAddTaskId { get; set; }
/// <summary>
/// 融合的PTSeriesId
/// </summary>
public Guid? PTSeriesId { get; set; }
[Comment("融合的PTSeriesId")]
public Guid? PTSeriesId { get; set; }
/// <summary>
/// 融合的CTSeriesId
/// </summary>
public Guid? CTSeriesId { get; set; }
[Comment("融合的CTSeriesId")]
public Guid? CTSeriesId { get; set; }
public SplitOrMergeType? SplitOrMergeType { get; set; }
public int? NumberOfFrames { get; set; }
/// <summary>
/// 器官Id
/// </summary>
public Guid? OrganInfoId { get; set; }
/// <summary>
/// 窗宽WW
/// </summary>
public decimal? WW { get; set; }
public SplitOrMergeType? SplitOrMergeType { get; set; }
public int? NumberOfFrames { get; set; }
[Comment("器官Id")]
public Guid? OrganInfoId { get; set; }
[Comment("窗宽WW")]
public decimal? WW { get; set; }
/// <summary>
/// 窗位WL
/// </summary>
public decimal? WL { get; set; }
[Comment("窗位WL")]
public decimal? WL { get; set; }
/// <summary>
/// 来自于哪个标记
/// </summary>
public string FromMark { get; set; } = string.Empty;
[Comment("来自于哪个标记")]
public string FromMark { get; set; } = string.Empty;
/// <summary>
/// 报告页面显示来自于哪个标记
/// </summary>
public string ReportMark { get; set; } = string.Empty;
public string OtherMeasureData { get; set; } = string.Empty;
//病灶编号
public string RowMark { get; set; } = string.Empty;
[Comment("报告页面显示来自于哪个标记")]
public string ReportMark { get; set; } = string.Empty;
public string OtherMeasureData { get; set; } = string.Empty;
//病灶编号
public string RowMark { get; set; } = string.Empty;
/// <summary>
/// 标记工具
/// </summary>
public string MarkTool { get; set; } = string.Empty;
}
[Comment("标记工具")]
public string MarkTool { get; set; } = string.Empty;
}
@@ -1,41 +1,35 @@
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Table("ReadingTableQuestionAnswer")]
public class ReadingTableQuestionAnswer : BaseFullDeleteAuditEntity
{
///<summary>
///ReadingTableQuestionAnswer
///</summary>
[Table("ReadingTableQuestionAnswer")]
public class ReadingTableQuestionAnswer : BaseFullDeleteAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("RowId")]
#region
[JsonIgnore]
[ForeignKey("RowId")]
public ReadingTableAnswerRowInfo Lesion { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingTableAnswerRowInfo Lesion { get; set; }
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
[JsonIgnore]
[ForeignKey("TableQuestionId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
[JsonIgnore]
[ForeignKey("TableQuestionId")]
public ReadingTableQuestionTrial ReadingTableQuestionTrial { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
#endregion
public Guid QuestionId { get; set; }
public ReadingTableQuestionTrial ReadingTableQuestionTrial { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
#endregion
public Guid QuestionId { get; set; }
/// <summary>
/// 表格问题Id
/// </summary>
public Guid TableQuestionId { get; set; }
[Comment("表格问题Id")]
public Guid TableQuestionId { get; set; }
public Guid VisitTaskId { get; set; }
public Guid VisitTaskId { get; set; }
public Guid TrialId { get; set; }
public decimal RowIndex { get; set; }
public Guid TrialId { get; set; }
public decimal RowIndex { get; set; }
public string Answer { get; set; } = string.Empty;
public Guid RowId { get; set; }
}
public string Answer { get; set; } = string.Empty;
public Guid RowId { get; set; }
}
@@ -1,49 +1,35 @@
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("阅片任务答案")]
[Table("ReadingTaskQuestionAnswer")]
public class ReadingTaskQuestionAnswer : BaseAddAuditEntity
{
///<summary>
/// 阅片任务答案
///</summary>
[Table("ReadingTaskQuestionAnswer")]
public class ReadingTaskQuestionAnswer : BaseAddAuditEntity
{
#region
#region
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
[ForeignKey("ReadingQuestionTrialId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
#endregion
/// <summary>
/// 项目问题Id
/// </summary>
public Guid ReadingQuestionTrialId { get; set; }
[JsonIgnore]
[ForeignKey("ReadingQuestionTrialId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
#endregion
[Comment("项目问题Id")]
public Guid ReadingQuestionTrialId { get; set; }
/// <summary>
/// 项目问题标准Id
/// </summary>
public Guid ReadingQuestionCriterionTrialId { get; set; }
[Comment("项目问题标准Id")]
public Guid ReadingQuestionCriterionTrialId { get; set; }
public Guid TrialId { get; set; }
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
public Guid SubjectId { get; set; }
public Guid VisitTaskId { get; set; }
public Guid VisitTaskId { get; set; }
/// <summary>
/// 答案
/// </summary>
public string Answer { get; set; } = string.Empty;
[Comment("答案")]
public string Answer { get; set; } = string.Empty;
/// <summary>
/// 全局阅片修改的答案
/// </summary>
public string GlobalChangeAnswer { get; set; } = string.Empty;
/// <summary>
/// 全局阅片是否修改
/// </summary>
public bool IsGlobalChange { get; set; } = false;
}
[Comment("全局阅片修改的答案")]
public string GlobalChangeAnswer { get; set; } = string.Empty;
[Comment("全局阅片是否修改")]
public bool IsGlobalChange { get; set; } = false;
}
@@ -1,52 +1,49 @@
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Table("ReadingTaskQuestionMark")]
public class ReadingTaskQuestionMark : BaseAddAuditEntity
{
///<summary>
///
///</summary>
[Table("ReadingTaskQuestionMark")]
public class ReadingTaskQuestionMark : BaseAddAuditEntity
{
#region
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
#region
[JsonIgnore]
[ForeignKey("QuestionId")]
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
#endregion
public Guid VisitTaskId { get; set; }
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
#endregion
public Guid VisitTaskId { get; set; }
public Guid QuestionId { get; set; }
public Guid QuestionId { get; set; }
public Guid? InstanceId { get; set; }
public Guid? InstanceId { get; set; }
public Guid? SeriesId { get; set; }
public Guid? StudyId { get; set; }
public string MarkTool { get; set; } = string.Empty;
public Guid? SeriesId { get; set; }
public Guid? StudyId { get; set; }
public string MarkTool { get; set; } = string.Empty;
public string PicturePath { get; set; } = string.Empty;
public string PicturePath { get; set; } = string.Empty;
public int? NumberOfFrames { get; set; }
public int? NumberOfFrames { get; set; }
public string MeasureData { get; set; } = string.Empty;
public Guid? FirstAddTaskId { get; set; }
public string MeasureData { get; set; } = string.Empty;
public Guid? FirstAddTaskId { get; set; }
public QuestionType? QuestionType { get; set; }
public string OrderMarkName { get; set; } = string.Empty;
public QuestionType? QuestionType { get; set; }
public string OrderMarkName { get; set; } = string.Empty;
public Guid? OtherInstanceId { get; set; }
public Guid? OtherInstanceId { get; set; }
public Guid? OtherSeriesId { get; set; }
public Guid? OtherSeriesId { get; set; }
public Guid? OtherStudyId { get; set; }
public Guid? OtherStudyId { get; set; }
public string OtherMarkTool { get; set; } = string.Empty;
public string OtherMarkTool { get; set; } = string.Empty;
public string OtherPicturePath { get; set; } = string.Empty;
public string OtherPicturePath { get; set; } = string.Empty;
public int? OtherNumberOfFrames { get; set; }
public string OtherMeasureData { get; set; } = string.Empty;
}
public int? OtherNumberOfFrames { get; set; }
public string OtherMeasureData { get; set; } = string.Empty;
}
@@ -1,32 +1,22 @@
using IRaCIS.Core.Domain.Share;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("任务关系表")]
[Table("ReadingTaskRelation")]
public class ReadingTaskRelation : BaseAddAuditEntity
{
///<summary>
///任务关系表
///</summary>
[Table("ReadingTaskRelation")]
public class ReadingTaskRelation : BaseAddAuditEntity
{
#region
#region
[ForeignKey("TaskId")]
[JsonIgnore]
public VisitTask VisitTask { get; set; }
#endregion
[ForeignKey("TaskId")]
[JsonIgnore]
public VisitTask VisitTask { get; set; }
#endregion
/// <summary>
/// 任务ID
/// </summary>
public Guid TaskId { get; set; }
[Comment("任务ID")]
public Guid TaskId { get; set; }
/// <summary>
/// 关联的任务ID
/// </summary>
public Guid RelevanceTaskId { get; set; }
[Comment("关联的任务ID")]
public Guid RelevanceTaskId { get; set; }
/// <summary>
/// 类型具体解释 看枚举
/// </summary>
public RelevanceType RelevanceType { get; set; }
}
[Comment("类型具体解释 看枚举")]
public RelevanceType RelevanceType { get; set; }
}