//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2023-06-16 13:37:24
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using IRaCIS.Core.Domain.Models;
using System.Collections.Generic;
namespace IRaCIS.Core.Domain.Models
{
///
///项目临床数据问题
///
[Table("TrialClinicalQuestion")]
public class TrialClinicalQuestion : Entity, IAuditAdd
{
///
/// 项目临床数据Id
///
public Guid TrialClinicalId { get; set; }
///
/// 问题名称
///
public string QuestionName { get; set; } = string.Empty;
///
/// 问题英文名称
///
public string QuestionEnName { get; set; } = string.Empty;
///
/// 临床问题类型(分组,单选。)
///
public string ClinicalQuestionType { get; set; }
///
/// 问题标识
///
public ClinicalQuestionMark? ClinicalQuestionMarkEnum { get; set; }
///
/// 最大长度
///
public int? MaxAnswerLength { get; set; }
///
/// 临床数据选项类型(无,自定义)
///
public ClinicalOptionType ClinicalOptionTypeEnum { get; set; }
///
/// 分组Id
///
public Guid? GroupId { get; set; }
///
/// 自定义选项
///
public string TypeValue { get; set; } = string.Empty;
///
/// 字典Code
///
public string DictionaryCode { get; set; } = string.Empty;
///
/// 排序
///
public int ShowOrder { get; set; } = 0;
///
/// 是否必填
///
public IsRequired IsRequired { get; set; }
///
/// 关联Value
///
public string RelevanceValue { get; set; } = string.Empty;
///
/// 关联ID
///
public Guid? RelevanceId { get; set; }
///
/// 系统临床问题Id
///
public Guid? SystemClinicalQuestionId { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 创建人
///
public Guid CreateUserId { get; set; }
///
/// 父问题Id
///
public Guid? ParentId { get; set; }
///
/// 父问题触发值
///
public string ParentTriggerValue { get; set; } = string.Empty;
///
/// 显示类型
///
public ClinicalQuestionShow ClinicalQuestionShowEnum { get; set; } = ClinicalQuestionShow.Show;
///
/// 是否是检查日期
///
public bool IsCheckDate { get; set; }
///
/// 自定义计算标记
///
public ClinicalCalculateMark? CustomCalculateMark { get; set; }
///
/// 自定义计算问题
///
public string CalculateQuestions { get; set; } = "[]";
[NotMapped]
public List CalculateQuestionList
{
get
{
try
{
var result = JsonConvert.DeserializeObject>(this.CalculateQuestions);
return result == null ? new List() : result;
}
catch (Exception)
{
return new List();
}
}
}
///
/// 小数点位数
///
public int? DigitPlaces { get; set; }
///
/// 单位
///
public string Unit { get; set; } = string.Empty;
}
}