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
{
///
///读片模块
///
[Table("ReadModule")]
public class ReadModule : Entity, IAuditAdd, IAuditUpdate, ISoftDelete
{
[JsonIgnore]
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
[JsonIgnore]
public List ModuleTaskList { get; set; }
///
/// 受试者ID
///
public Guid SubjectId { get; set; }
public Guid TrialReadingCriterionId { get; set; }
///
/// 模块类型
///
public ModuleTypeEnum ModuleType { get; set; }
///
/// 模块名称
///
public string ModuleName { get; set; }
///
/// 是否加急
///
public bool? IsUrgent { get; set; }
///
/// 访视ID
///
public Guid SubjectVisitId { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 创建人
///
public Guid CreateUserId { get; set; }
///
/// 阅片计划ID
///
public Guid? ReadingPeriodSetId { get; set; }
///
/// 项目ID
///
public Guid TrialId { get; set; }
public Guid UpdateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public bool IsCRCConfirm { get; set; } = false;
public bool IsPMConfirm { get; set; } = false;
public bool IsNotNeedPMConfirm { get; set; } = false;
///
/// CRC是否正在申请撤回
///
public bool IsCRCApplicationRevoke { get; set; } = false;
public bool IsDeleted { get; set; }
public DateTime? DeletedTime { get; set; }
public Guid? DeleteUserId { get; set; }
///
/// 临床数据是否完整
///
public bool? IsClinicalDataComplete { get; set; }
///
/// 临床数据是否盲化
///
public bool? IsClinicalDataBlind { get; set; }
/////
/////
/////
//public decimal VisitNum { get; set; }
// [JsonIgnore]
/////
///// 对应
/////
//[ForeignKey("ReadModuleId")]
//public ReadModule ReadModuleModel { get; set; }
[JsonIgnore]
///
/// 受试者
///
[ForeignKey("SubjectId")]
public Subject Subject { get; set; }
[JsonIgnore]
///
/// 阅片期配置
///
[ForeignKey("ReadingPeriodSetId")]
public ReadingPeriodSet ReadingPeriodSet { get; set; }
[JsonIgnore]
///
/// 访视
///
[ForeignKey("SubjectVisitId")]
public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore]
[ForeignKey("TrialId")]
public Trial Trial { get; set; }
///
/// 阅片配置的类型
///
public ReadingSetType ReadingSetType { get; set; }
public ReadingStatusEnum ReadingStatus { get; set; } = ReadingStatusEnum.TaskAllocate;
}
}