

using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;

namespace IRaCIS.Core.Domain.Models
{
	///<summary>
	/// 阅片任务答案
	///</summary>
	[Table("ReadingTaskQuestionAnswer")]
	public class ReadingTaskQuestionAnswer : Entity, IAuditAdd
	{
		/// <summary>
		/// 项目问题Id
		/// </summary>
		public Guid ReadingQuestionTrialId { get; set; }

		/// <summary>
		/// 项目问题标准Id
		/// </summary>
		public Guid ReadingQuestionCriterionTrialId { get; set; }

		/// <summary>
		/// 项目ID
		/// </summary>
		public Guid TrialId { get; set; }

		/// <summary>
		/// 患者Id
		/// </summary>
		public Guid SubjectId { get; set; }

		/// <summary>
		/// 任务Id
		/// </summary>
		public Guid VisitTaskId { get; set; }

		/// <summary>
		/// 答案
		/// </summary>
		public string Answer { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 全局阅片修改的答案
		/// </summary>
		public string GlobalChangeAnswer { get; set; }


		/// <summary>
		/// 全局阅片是否修改
		/// </summary>
		public bool IsGlobalChange { get; set; } = false;

		/// <summary>
		/// 创建人
		/// </summary>
		public Guid CreateUserId { get; set; }

        [JsonIgnore]
		[ForeignKey("VisitTaskId")]
		public VisitTask VisitTask { get; set; }

        [JsonIgnore]
		[ForeignKey("ReadingQuestionTrialId")]
		public ReadingQuestionTrial ReadingQuestionTrial { get; set; }


	}


	



}
