整理数据库实体备注
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,127 +1,85 @@
using IRaCIS.Core.Domain.Share;
using System.Linq;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("项目临床表格问题")]
[Table("TrialClinicalTableQuestion")]
public class TrialClinicalTableQuestion : BaseAddAuditEntity
{
///<summary>
/// 项目临床表格问题
///</summary>
[Table("TrialClinicalTableQuestion")]
public class TrialClinicalTableQuestion : BaseAddAuditEntity
#region
[NotMapped]
public List<string> RelevanceValueList
{
#region
[NotMapped]
public List<string> RelevanceValueList
get
{
get
try
{
try
{
return this.RelevanceValue.Split(',').ToList();
}
catch (Exception)
{
return new List<string>();
}
return this.RelevanceValue.Split(',').ToList();
}
catch (Exception)
{
return new List<string>();
}
}
#endregion
/// <summary>
/// 项目临床数据Id
/// </summary>
public Guid TrialClinicalId { get; set; }
/// <summary>
/// 问题名称
/// </summary>
public string QuestionName { get; set; } = string.Empty;
/// <summary>
/// 问题英文名称
/// </summary>
public string QuestionEnName { get; set; } = string.Empty;
/// <summary>
/// 临床问题类型(分组,单选。)
/// </summary>
public string ClinicalTableQuestionType { get; set; } = string.Empty;
/// <summary>
/// 问题标识
/// </summary>
public ClinicalTableQuestionMark? ClinicalTableQuestionMarkEnum { get; set; }
/// <summary>
/// 最大长度
/// </summary>
public int? MaxAnswerLength { get; set; }
/// <summary>
/// 临床数据选项类型(无,自定义)
/// </summary>
public ClinicalOptionType ClinicalOptionTypeEnum { get; set; }
/// <summary>
/// 自定义选项
/// </summary>
public string TypeValue { get; set; } = string.Empty;
/// <summary>
/// 字典Code
/// </summary>
public string DictionaryCode { get; set; } = string.Empty;
/// <summary>
/// 排序
/// </summary>
public int ShowOrder { get; set; }
/// <summary>
/// 是否必填
/// </summary>
public IsRequired IsRequired { get; set; }
/// <summary>
/// 外层问题Id
/// </summary>
public Guid QuestionId { get; set; }
/// <summary>
/// 系统表格问题Id
/// </summary>
public Guid? SystemTableQuestionId { get; set; }
/// <summary>
/// 自定义计算标记
/// </summary>
public ClinicalCalculateMark? ClinicalCalculateMarkEnum { get; set; }
/// <summary>
/// 自定义计算问题
/// </summary>
public string CalculateQuestions { get; set; } = "[]";
/// <summary>
/// 小数点位数
/// </summary>
public int? DigitPlaces { get; set; }
/// <summary>
/// 单位
/// </summary>
public string Unit { get; set; } = string.Empty;
/// <summary>
/// 关联ID
/// </summary>
public Guid? RelevanceId { get; set; }
/// <summary>
/// 关联Value
/// </summary>
public string RelevanceValue { get; set; } = string.Empty;
}
#endregion
[Comment("项目临床数据Id")]
public Guid TrialClinicalId { get; set; }
[Comment("问题名称")]
public string QuestionName { get; set; } = string.Empty;
[Comment("问题英文名称")]
public string QuestionEnName { get; set; } = string.Empty;
[Comment("临床问题类型(分组,单选。)")]
public string ClinicalTableQuestionType { get; set; } = string.Empty;
[Comment("问题标识")]
public ClinicalTableQuestionMark? ClinicalTableQuestionMarkEnum { get; set; }
[Comment("最大长度")]
public int? MaxAnswerLength { get; set; }
[Comment("临床数据选项类型(无,自定义)")]
public ClinicalOptionType ClinicalOptionTypeEnum { get; set; }
[Comment("自定义选项")]
public string TypeValue { get; set; } = string.Empty;
[Comment("字典Code")]
public string DictionaryCode { get; set; } = string.Empty;
[Comment("排序")]
public int ShowOrder { get; set; }
[Comment("是否必填")]
public IsRequired IsRequired { get; set; }
[Comment("外层问题Id")]
public Guid QuestionId { get; set; }
[Comment("系统表格问题Id")]
public Guid? SystemTableQuestionId { get; set; }
[Comment("自定义计算标记")]
public ClinicalCalculateMark? ClinicalCalculateMarkEnum { get; set; }
[Comment("自定义计算问题")]
public string CalculateQuestions { get; set; } = "[]";
[Comment("小数点位数")]
public int? DigitPlaces { get; set; }
[Comment("单位")]
public string Unit { get; set; } = string.Empty;
[Comment("关联ID")]
public Guid? RelevanceId { get; set; }
[Comment("关联Value")]
public string RelevanceValue { get; set; } = string.Empty;
}