同步数据模型和数据库对应关系2
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-09-19 23:45:43 +08:00
parent 19f4385055
commit 42e4fe59ec
73 changed files with 1760 additions and 1934 deletions
@@ -9,118 +9,89 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("系统临床表格问题 (需要同步)")]
[Table("SystemClinicalTableQuestion")]
public class SystemClinicalTableQuestion : BaseAddAuditEntity
{
///<summary>
/// 系统临床表格问题
///</summary>
[Table("SystemClinicalTableQuestion")]
public class SystemClinicalTableQuestion : 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 SystemClinicalId { 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>
/// 小数点位数
/// </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 SystemClinicalId { get; set; }
[Comment(" 临床数据选项类型(无,自定义)")]
public int ClinicalOptionTypeEnum { get; set; }
[Comment(" 问题标识")]
public ClinicalTableQuestionMark? ClinicalTableQuestionMarkEnum { get; set; }
[Comment(" 临床问题类型(分组,单选。)")]
public string ClinicalTableQuestionType { get; set; } = null!;
[Comment(" 字典Code")]
[StringLength(400)]
public string DictionaryCode { get; set; } = null!;
public int? DigitPlaces { get; set; }
[Comment(" 是否必填")]
public int IsRequired { get; set; }
[Comment(" 最大长度")]
public int? MaxAnswerLength { get; set; }
[Comment(" 问题英文名称")]
[StringLength(400)]
public string QuestionEnName { get; set; } = null!;
[Comment(" 外层问题Id")]
public Guid QuestionId { get; set; }
[Comment(" 问题名称")]
[StringLength(400)]
public string QuestionName { get; set; } = null!;
[Comment(" 关联ID")]
public Guid? RelevanceId { get; set; }
[Comment(" 关联Value")]
[StringLength(1000)]
public string RelevanceValue { get; set; } = null!;
[Comment(" 排序")]
public int ShowOrder { get; set; }
[Comment(" 自定义选项")]
[StringLength(1000)]
public string TypeValue { get; set; } = null!;
public string Unit { get; set; } = null!;
}
}