using IRaCIS.Core.Domain.Share; using System.Linq; namespace IRaCIS.Core.Domain.Models { /// /// 系统临床表格问题 /// [Table("SystemClinicalTableQuestion")] public class SystemClinicalTableQuestion : BaseAddAuditEntity { #region 导航属性 [NotMapped] public List RelevanceValueList { get { try { return this.RelevanceValue.Split(',').ToList(); } catch (Exception) { return new List(); } } } #endregion /// /// 系统临床数据Id /// public Guid SystemClinicalId { get; set; } /// /// 问题名称 /// public string QuestionName { get; set; } = string.Empty; /// /// 问题英文名称 /// public string QuestionEnName { get; set; } = string.Empty; /// /// 临床问题类型(分组,单选。) /// public string ClinicalTableQuestionType { get; set; } = string.Empty; /// /// 问题标识 /// public ClinicalTableQuestionMark? ClinicalTableQuestionMarkEnum { get; set; } /// /// 最大长度 /// public int? MaxAnswerLength { get; set; } /// /// 临床数据选项类型(无,自定义) /// public ClinicalOptionType ClinicalOptionTypeEnum { get; set; } /// /// 自定义选项 /// public string TypeValue { get; set; } = string.Empty; /// /// 字典Code /// public string DictionaryCode { get; set; } = string.Empty; /// /// 排序 /// public int ShowOrder { get; set; } /// /// 是否必填 /// public IsRequired IsRequired { get; set; } /// /// 外层问题Id /// public Guid QuestionId { get; set; } /// /// 小数点位数 /// public int? DigitPlaces { get; set; } /// /// 单位 /// public string Unit { get; set; } = string.Empty; /// /// 关联ID /// public Guid? RelevanceId { get; set; } /// /// 关联Value /// public string RelevanceValue { get; set; } = string.Empty; } }