//-------------------------------------------------------------------- // 此代码由T4模板自动生成 byzhouhang 20210918 // 生成时间 2023-06-19 11:32:48 // 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。 using System; using IRaCIS.Core.Domain.Share; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Collections.Generic; using System.Linq; namespace IRaCIS.Core.Domain.Models { /// /// 系统临床表格问题 /// [Table("SystemClinicalTableQuestion")] public class SystemClinicalTableQuestion : BaseAuditAddEntity { /// /// 系统临床数据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; } /// /// 问题标识 /// public ClinicalTableQuestionMark? ClinicalTableQuestionMarkEnum { get; set; } /// /// 最大长度 /// public int? MaxAnswerLength { get; set; } /// /// 临床数据选项类型(无,自定义) /// public ClinicalOptionType ClinicalOptionTypeEnum { get; set; } /// /// 自定义选项 /// public string TypeValue { get; set; } /// /// 字典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; [NotMapped] public List RelevanceValueList { get { try { return this.RelevanceValue.Split(',').ToList(); } catch (Exception) { return new List(); } } } } }