导航属性优化整理
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
4319982be9
commit
47ec4a5e7e
|
@ -15,7 +15,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///是否需要拆表
|
///是否需要拆表
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SubjectTaskCategory")]
|
[Table("SubjectTaskCategory")]
|
||||||
public class SubjectTaskCategory : BaseAuditAddEntity
|
public class SubjectTaskCategory : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///TaskInfluence
|
///TaskInfluence
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TaskInfluence")]
|
[Table("TaskInfluence")]
|
||||||
public class TaskInfluence : BaseAuditAddEntity
|
public class TaskInfluence : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///TrialVirtualSiteCodeUpdate
|
///TrialVirtualSiteCodeUpdate
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TrialVirtualSiteCodeUpdate")]
|
[Table("TrialVirtualSiteCodeUpdate")]
|
||||||
public class TrialVirtualSiteCodeUpdate : BaseAuditAddEntity
|
public class TrialVirtualSiteCodeUpdate : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
|
|
|
@ -56,13 +56,23 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
#region 减少实体属性,增加基类
|
#region 减少实体属性,增加基类
|
||||||
|
|
||||||
public abstract class BaseAuditAddEntity : Entity, IAuditAdd
|
public abstract class BaseAddAuditEntity : Entity, IAuditAdd
|
||||||
{
|
{
|
||||||
|
|
||||||
public Guid CreateUserId { get; set; }
|
public Guid CreateUserId { get; set; }
|
||||||
public DateTime CreateTime { get; set; }
|
public DateTime CreateTime { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public abstract class BaseAddDeleteAuditEntity : Entity, IAuditAdd, ISoftDelete
|
||||||
|
{
|
||||||
|
|
||||||
|
public Guid CreateUserId { get; set; }
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
|
public Guid? DeleteUserId { get; set; }
|
||||||
|
public bool IsDeleted { get; set; }
|
||||||
|
public DateTime? DeletedTime { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public abstract class BaseFullAuditEntity : Entity, IAuditUpdate, IAuditAdd
|
public abstract class BaseFullAuditEntity : Entity, IAuditUpdate, IAuditAdd
|
||||||
{
|
{
|
||||||
public Guid CreateUserId { get; set; }
|
public Guid CreateUserId { get; set; }
|
||||||
|
@ -72,7 +82,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public abstract class BaseFullAuditDeleteEntity : Entity, IAuditUpdate, IAuditAdd, ISoftDelete
|
public abstract class BaseFullDeleteAuditEntity : Entity, IAuditUpdate, IAuditAdd, ISoftDelete
|
||||||
{
|
{
|
||||||
public Guid? DeleteUserId { get; set; }
|
public Guid? DeleteUserId { get; set; }
|
||||||
public bool IsDeleted { get; set; }
|
public bool IsDeleted { get; set; }
|
||||||
|
@ -85,7 +95,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public abstract class BaseAuditAddEntityWithUserName : Entity, IAuditAddWithUserName
|
public abstract class BaseAddAuditEntityWithUserName : Entity, IAuditAddWithUserName
|
||||||
{
|
{
|
||||||
public string CreateUser { get; set; }
|
public string CreateUser { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///CommonDocument
|
///CommonDocument
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("CommonDocument")]
|
[Table("CommonDocument")]
|
||||||
public class CommonDocument : BaseFullAuditDeleteEntity
|
public class CommonDocument : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
public string Code { get; set; } = String.Empty;
|
public string Code { get; set; } = String.Empty;
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///EmailNoticeConfig
|
///EmailNoticeConfig
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("EmailNoticeConfig")]
|
[Table("EmailNoticeConfig")]
|
||||||
public class EmailNoticeConfig : BaseFullAuditDeleteEntity
|
public class EmailNoticeConfig : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///ExploreRecommend
|
///ExploreRecommend
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ExploreRecommend")]
|
[Table("ExploreRecommend")]
|
||||||
public class ExploreRecommend : BaseFullAuditDeleteEntity
|
public class ExploreRecommend : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
[Table("VerificationCode")]
|
[Table("VerificationCode")]
|
||||||
public class VerificationCode:BaseAuditAddEntity
|
public class VerificationCode:BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
public Guid UserId { get; set; } = Guid.Empty;
|
public Guid UserId { get; set; } = Guid.Empty;
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
// HighestDegreeCertificate=7//最高学历证书
|
// HighestDegreeCertificate=7//最高学历证书
|
||||||
//}
|
//}
|
||||||
[Table("Attachment")]
|
[Table("Attachment")]
|
||||||
public partial class Attachment : BaseAuditAddEntity
|
public partial class Attachment : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///DoctorCriterionFile
|
///DoctorCriterionFile
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("DoctorCriterionFile")]
|
[Table("DoctorCriterionFile")]
|
||||||
public class DoctorCriterionFile :BaseAuditAddEntity
|
public class DoctorCriterionFile :BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///EnrollReadingCriterion
|
///EnrollReadingCriterion
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("EnrollReadingCriterion")]
|
[Table("EnrollReadingCriterion")]
|
||||||
public class EnrollReadingCriterion :BaseAuditAddEntity
|
public class EnrollReadingCriterion :BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
|
|
||||||
|
|
|
@ -12,55 +12,32 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///SystemDocConfirmedUser
|
///SystemDocConfirmedUser
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SystemDocConfirmedUser")]
|
[Table("SystemDocConfirmedUser")]
|
||||||
public class SystemDocConfirmedUser : BaseAuditAddEntity, ISoftDelete
|
public class SystemDocConfirmedUser : BaseAddDeleteAuditEntity
|
||||||
|
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
|
|
||||||
#endregion
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public SystemDocument SystemDocument { get; set; }
|
public SystemDocument SystemDocument { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("ConfirmUserId")]
|
[ForeignKey("ConfirmUserId")]
|
||||||
public User User { get; set; }
|
public User User { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TrialDocumentId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid SystemDocumentId { get; set; }
|
public Guid SystemDocumentId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ConfirmTime
|
|
||||||
/// </summary>
|
|
||||||
public DateTime? ConfirmTime { get; set; }
|
public DateTime? ConfirmTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ConfirmUserId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid ConfirmUserId { get; set; }
|
public Guid ConfirmUserId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// SignFirstViewTime
|
|
||||||
/// </summary>
|
|
||||||
public DateTime? SignFirstViewTime { get; set; }
|
public DateTime? SignFirstViewTime { get; set; }
|
||||||
|
|
||||||
public string SignText { get; set; } = string.Empty;
|
public string SignText { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 是否废除
|
|
||||||
/// </summary>
|
|
||||||
public bool IsDeleted { get; set; }
|
|
||||||
|
|
||||||
public DateTime? DeletedTime { get; set; }
|
|
||||||
|
|
||||||
public Guid? DeleteUserId { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///SystemDocument
|
///SystemDocument
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SystemDocument")]
|
[Table("SystemDocument")]
|
||||||
public class SystemDocument : BaseFullAuditDeleteEntity
|
public class SystemDocument : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
@ -12,8 +12,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///TrialDocUserTypeConfirmUser
|
///TrialDocUserTypeConfirmUser
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TrialDocConfirmedUser")]
|
[Table("TrialDocConfirmedUser")]
|
||||||
public class TrialDocConfirmedUser : BaseAuditAddEntity,ISoftDelete
|
public class TrialDocConfirmedUser : BaseAddDeleteAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
@ -42,15 +42,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 是否废除
|
|
||||||
/// </summary>
|
|
||||||
public bool IsDeleted { get; set; }
|
|
||||||
|
|
||||||
public DateTime? DeletedTime { get; set; }
|
|
||||||
|
|
||||||
public Guid? DeleteUserId { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///TrialDocument
|
///TrialDocument
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TrialDocument")]
|
[Table("TrialDocument")]
|
||||||
public class TrialDocument : BaseFullAuditDeleteEntity
|
public class TrialDocument : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///TrialEmailNoticeConfig
|
///TrialEmailNoticeConfig
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TrialEmailNoticeConfig")]
|
[Table("TrialEmailNoticeConfig")]
|
||||||
public class TrialEmailNoticeConfig : BaseFullAuditDeleteEntity
|
public class TrialEmailNoticeConfig : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
#region 导航属性
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
@ -15,7 +15,9 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("TrialEmailNoticeUser")]
|
[Table("TrialEmailNoticeUser")]
|
||||||
public class TrialEmailNoticeUser : Entity
|
public class TrialEmailNoticeUser : Entity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public TrialEmailNoticeConfig TrialEmailNoticeConfig { get; set; }
|
public TrialEmailNoticeConfig TrialEmailNoticeConfig { get; set; }
|
||||||
|
|
|
@ -7,6 +7,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("DicomInstance")]
|
[Table("DicomInstance")]
|
||||||
public class DicomInstance : BaseFullAuditEntity
|
public class DicomInstance : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("SeriesId")]
|
[ForeignKey("SeriesId")]
|
||||||
public DicomSeries DicomSerie { get; set; }
|
public DicomSeries DicomSerie { get; set; }
|
||||||
|
@ -14,6 +15,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public DicomStudy DicomStudy { get; set; }
|
public DicomStudy DicomStudy { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,9 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
[Table("DicomSeries")]
|
[Table("DicomSeries")]
|
||||||
public class DicomSeries : BaseFullAuditDeleteEntity
|
public class DicomSeries : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public DicomStudy DicomStudy { get; set; }
|
public DicomStudy DicomStudy { get; set; }
|
||||||
|
@ -17,6 +18,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<SubjectCriteriaEvaluationVisitStudyFilter> SubjectCriteriaEvaluationVisitStudyFilterList { get; set; }
|
public List<SubjectCriteriaEvaluationVisitStudyFilter> SubjectCriteriaEvaluationVisitStudyFilterList { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
|
|
@ -6,8 +6,9 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
[Table("DicomStudy")]
|
[Table("DicomStudy")]
|
||||||
public class DicomStudy : BaseFullAuditDeleteEntity
|
public class DicomStudy : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
//一个检查 由多个人管理
|
//一个检查 由多个人管理
|
||||||
//public List<TrialSiteUser> TrialSiteUserList { get; set; } = new List<TrialSiteUser>();
|
//public List<TrialSiteUser> TrialSiteUserList { get; set; } = new List<TrialSiteUser>();
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
@ -15,10 +16,30 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<DicomSeries> SeriesList { get; set; }
|
public List<DicomSeries> SeriesList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SubjectId")]
|
||||||
|
public Subject Subject { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SubjectVisitId")]
|
||||||
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<SubjectCriteriaEvaluationVisitStudyFilter> SubjectCriteriaEvaluationVisitStudyFilterList { get; set; }
|
[ForeignKey("CreateUserId")]
|
||||||
|
public User Uploader { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<ReadingClinicalData> ReadingClinicalDataList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<ReadingConsistentClinicalData> ReadingConsistentClinicalDataList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<SubjectCriteriaEvaluationVisitStudyFilter> SubjectCriteriaEvaluationVisitStudyFilterList { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
public Guid SeqId { get; set; }
|
public Guid SeqId { get; set; }
|
||||||
|
@ -68,27 +89,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
//0 未知 1 单重 2 双重
|
//0 未知 1 单重 2 双重
|
||||||
public bool IsDoubleReview { get; set; }
|
public bool IsDoubleReview { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SubjectId")]
|
|
||||||
public Subject Subject { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SubjectVisitId")]
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("CreateUserId")]
|
|
||||||
public User Uploader { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public List<ReadingClinicalData> ReadingClinicalDataList { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public List<ReadingConsistentClinicalData> ReadingConsistentClinicalDataList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public bool IsFromPACS { get; set; }
|
public bool IsFromPACS { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -12,15 +12,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///DicomStudyMonitor
|
///DicomStudyMonitor
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("StudyMonitor")]
|
[Table("StudyMonitor")]
|
||||||
public class StudyMonitor : BaseAuditAddEntity
|
public class StudyMonitor : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public DicomStudy DicomStudy { get; set; }
|
public DicomStudy DicomStudy { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public NoneDicomStudy NoneDicomStudy { get; set; }
|
public NoneDicomStudy NoneDicomStudy { get; set; }
|
||||||
|
@ -29,6 +26,24 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public TaskStudy TaskStudy { get; set; }
|
public TaskStudy TaskStudy { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SubjectId")]
|
||||||
|
public Subject Subject { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SubjectVisitId")]
|
||||||
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("TrialId")]
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("CreateUserId")]
|
||||||
|
public User Uploader { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//可能是Dicom 也可能是非Dicom 该字段废弃
|
//可能是Dicom 也可能是非Dicom 该字段废弃
|
||||||
|
@ -66,21 +81,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SubjectId")]
|
|
||||||
public Subject Subject { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SubjectVisitId")]
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("TrialId")]
|
|
||||||
public Trial Trial { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("CreateUserId")]
|
|
||||||
public User Uploader { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public bool IsSuccess { get; set; }
|
public bool IsSuccess { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,9 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
public class ImageShare: Entity
|
public class ImageShare: Entity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
#endregion
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
public Guid StudyId { get; set; }
|
public Guid StudyId { get; set; }
|
||||||
|
|
|
@ -14,33 +14,39 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///SCPImageUpload
|
///SCPImageUpload
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SCPImageUpload")]
|
[Table("SCPImageUpload")]
|
||||||
public class SCPImageUpload : BaseAuditAddEntity
|
public class SCPImageUpload : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
|
||||||
[Required]
|
[JsonIgnore]
|
||||||
public string CallingAE { get; set; }=string.Empty;
|
public TrialSite TrialSite { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
[Required]
|
|
||||||
|
public string CallingAE { get; set; }=string.Empty;
|
||||||
|
|
||||||
|
|
||||||
public string CalledAE { get; set; } = string.Empty;
|
public string CalledAE { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public string CallingAEIP { get; set; } = string.Empty;
|
public string CallingAEIP { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public DateTime StartTime { get; set; }
|
public DateTime StartTime { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
public DateTime EndTime { get; set; }
|
public DateTime EndTime { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public int FileCount { get; set; }
|
public int FileCount { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public long FileSize { get; set; }
|
public long FileSize { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,12 +58,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
public Guid TrialSiteId { get; set; }
|
public Guid TrialSiteId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public Trial Trial { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public TrialSite TrialSite { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("SCPInstance")]
|
[Table("SCPInstance")]
|
||||||
public class SCPInstance : BaseFullAuditEntity
|
public class SCPInstance : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("SeriesId")]
|
[ForeignKey("SeriesId")]
|
||||||
public SCPSeries SCPSeries { get; set; }
|
public SCPSeries SCPSeries { get; set; }
|
||||||
|
@ -14,6 +15,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public SCPStudy SCPStudy { get; set; }
|
public SCPStudy SCPStudy { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,17 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("SCPPatient")]
|
[Table("SCPPatient")]
|
||||||
public class SCPPatient : BaseFullAuditEntity
|
public class SCPPatient : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
public List<SCPStudy> SCPStudyList { get; set; }
|
public List<SCPStudy> SCPStudyList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public Subject Subject { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public TrialSite TrialSite { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public string PatientIdStr { get; set; } = string.Empty;
|
public string PatientIdStr { get; set; } = string.Empty;
|
||||||
public string PatientName { get; set; } = string.Empty;
|
public string PatientName { get; set; } = string.Empty;
|
||||||
|
@ -28,12 +38,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid TrialSiteId { get; set; }
|
public Guid TrialSiteId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public Subject Subject { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
public Trial Trial { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
public TrialSite TrialSite { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,14 +6,17 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
[Table("SCPSeries")]
|
[Table("SCPSeries")]
|
||||||
public class SCPSeries : BaseFullAuditDeleteEntity
|
public class SCPSeries : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public SCPStudy SCPStudy { get; set; }
|
public SCPStudy SCPStudy { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<SCPInstance> SCPInstanceList { get; set; }
|
public List<SCPInstance> SCPInstanceList { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
public Guid SeqId { get; set; }
|
public Guid SeqId { get; set; }
|
||||||
|
|
|
@ -6,22 +6,32 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
[Table("SCPStudy")]
|
[Table("SCPStudy")]
|
||||||
public class SCPStudy : BaseFullAuditDeleteEntity
|
public class SCPStudy : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<SCPInstance> InstanceList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<SCPSeries> SeriesList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public TrialSite TrialSite { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//0 未知 1 单重 2 双重
|
//0 未知 1 单重 2 双重
|
||||||
public bool IsDoubleReview { get; set; }
|
public bool IsDoubleReview { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<SCPInstance> InstanceList { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<SCPSeries> SeriesList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
public Guid SeqId { get; set; }
|
public Guid SeqId { get; set; }
|
||||||
|
@ -31,9 +41,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public SCPPatient Patient { get; set; }
|
public SCPPatient Patient { get; set; }
|
||||||
public Guid PatientId { get; set; }
|
public Guid PatientId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public string StudyInstanceUid { get; set; } = string.Empty;
|
public string StudyInstanceUid { get; set; } = string.Empty;
|
||||||
public DateTime? StudyTime { get; set; }
|
public DateTime? StudyTime { get; set; }
|
||||||
public string Modalities { get; set; } = string.Empty;
|
public string Modalities { get; set; } = string.Empty;
|
||||||
|
@ -76,15 +83,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public Guid? SubjectVisitId { get; set; }
|
public Guid? SubjectVisitId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public Trial Trial { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public TrialSite TrialSite { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,8 +14,10 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("SystemAnonymization")]
|
[Table("SystemAnonymization")]
|
||||||
public class SystemAnonymization : BaseFullAuditEntity
|
public class SystemAnonymization : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
public string Group { get; set; } = String.Empty;
|
|
||||||
|
#endregion
|
||||||
|
public string Group { get; set; } = String.Empty;
|
||||||
|
|
||||||
public string Element { get; set; } = String.Empty;
|
public string Element { get; set; } = String.Empty;
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
public class TaskInstance : BaseFullAuditEntity
|
public class TaskInstance : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("SeriesId")]
|
[ForeignKey("SeriesId")]
|
||||||
public TaskSeries TaskSeries { get; set; }
|
public TaskSeries TaskSeries { get; set; }
|
||||||
|
@ -13,6 +14,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public TaskStudy TaskStudy { get; set; }
|
public TaskStudy TaskStudy { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,17 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
public class TaskSeries : BaseFullAuditDeleteEntity
|
public class TaskSeries : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
public TaskStudy TaskStudy { get; set; }
|
public TaskStudy TaskStudy { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<TaskInstance> InstanceList { get; set; }
|
public List<TaskInstance> InstanceList { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
|
|
@ -5,9 +5,9 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
public class TaskStudy : BaseFullAuditDeleteEntity
|
public class TaskStudy : BaseFullDeleteAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("VisitTaskId")]
|
[ForeignKey("VisitTaskId")]
|
||||||
public VisitTask VisitTask { get; set; }
|
public VisitTask VisitTask { get; set; }
|
||||||
|
@ -21,6 +21,18 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<TaskSeries> SeriesList { get; set; }
|
public List<TaskSeries> SeriesList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SubjectId")]
|
||||||
|
public Subject Subject { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("CreateUserId")]
|
||||||
|
public User Uploader { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
public Guid SeqId { get; set; }
|
public Guid SeqId { get; set; }
|
||||||
|
@ -70,15 +82,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
//0 未知 1 单重 2 双重
|
//0 未知 1 单重 2 双重
|
||||||
public bool IsDoubleReview { get; set; }
|
public bool IsDoubleReview { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SubjectId")]
|
|
||||||
public Subject Subject { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("CreateUserId")]
|
|
||||||
public User Uploader { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,9 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("TrialDicomAE")]
|
[Table("TrialDicomAE")]
|
||||||
public class TrialDicomAE : BaseFullAuditEntity
|
public class TrialDicomAE : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
#endregion
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,9 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("CROCompany")]
|
[Table("CROCompany")]
|
||||||
public partial class CRO : BaseFullAuditEntity
|
public partial class CRO : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
#endregion
|
||||||
public string CROName { get; set; } = string.Empty;
|
public string CROName { get; set; } = string.Empty;
|
||||||
public string CRONameCN { get; set; } = string.Empty;
|
public string CRONameCN { get; set; } = string.Empty;
|
||||||
public string CROCode { get; set; }
|
public string CROCode { get; set; }
|
||||||
|
|
|
@ -7,6 +7,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("Hospital")]
|
[Table("Hospital")]
|
||||||
public class Hospital : BaseFullAuditEntity
|
public class Hospital : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SiteId")]
|
||||||
|
public Site Site { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<Doctor> DoctorList { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public string HospitalName { get; set; } = string.Empty;
|
public string HospitalName { get; set; } = string.Empty;
|
||||||
public string UniversityAffiliated { get; set; } = string.Empty;
|
public string UniversityAffiliated { get; set; } = string.Empty;
|
||||||
public string Country { get; set; } = string.Empty;
|
public string Country { get; set; } = string.Empty;
|
||||||
|
@ -26,12 +36,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid? SiteId { get; set; } = Guid.Empty;
|
public Guid? SiteId { get; set; } = Guid.Empty;
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SiteId")]
|
|
||||||
public Site Site { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<Doctor> DoctorList { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,14 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("Site")]
|
[Table("Site")]
|
||||||
public partial class Site : BaseFullAuditEntity
|
public partial class Site : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("HospitalId")]
|
[ForeignKey("HospitalId")]
|
||||||
public Hospital Hospital { get; set; }
|
public Hospital Hospital { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<TrialSite> TrialSiteList { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
public string SiteName { get; set; } = string.Empty;
|
public string SiteName { get; set; } = string.Empty;
|
||||||
public string SiteNameCN{ get; set; } = string.Empty;
|
public string SiteNameCN{ get; set; } = string.Empty;
|
||||||
public string AliasName { get; set; } = string.Empty;
|
public string AliasName { get; set; } = string.Empty;
|
||||||
|
@ -35,9 +40,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//导航属性
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<TrialSite> TrialSiteList { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,9 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("Sponsor")]
|
[Table("Sponsor")]
|
||||||
public partial class Sponsor : BaseFullAuditEntity
|
public partial class Sponsor : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
#endregion
|
||||||
public string SponsorName { get; set; } = String.Empty;
|
public string SponsorName { get; set; } = String.Empty;
|
||||||
public string SponsorNameCN { get; set; } = String.Empty;
|
public string SponsorNameCN { get; set; } = String.Empty;
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("Menu")]
|
[Table("Menu")]
|
||||||
public class Menu : BaseFullAuditEntity
|
public class Menu : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<UserTypeMenu> UserTypeMenuList { get; set; }
|
public List<UserTypeMenu> UserTypeMenuList { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//上级菜单
|
//上级菜单
|
||||||
|
|
|
@ -18,18 +18,19 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("SystemNotice")]
|
[Table("SystemNotice")]
|
||||||
public class SystemNotice : BaseFullAuditEntity
|
public class SystemNotice : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<SystemNoticeUserType> NoticeUserTypeList { get; set; }=new List<SystemNoticeUserType>();
|
public List<SystemNoticeUserType> NoticeUserTypeList { get; set; } = new List<SystemNoticeUserType>();
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<SystemNoticeUserRead> NoticeUserReadList { get; set; }=new List<SystemNoticeUserRead>();
|
public List<SystemNoticeUserRead> NoticeUserReadList { get; set; } = new List<SystemNoticeUserRead>();
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public User CreateUser { get; set; }
|
public User CreateUser { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public string NoticeContent { get; set; }
|
|
||||||
|
|
||||||
|
public string NoticeContent { get; set; }
|
||||||
|
|
||||||
public SystemNotice_NoticeTypeEnum NoticeTypeEnum { get; set; }
|
public SystemNotice_NoticeTypeEnum NoticeTypeEnum { get; set; }
|
||||||
|
|
||||||
|
@ -41,15 +42,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public SystemNotice_NoticeStateEnum NoticeStateEnum { get; set; }
|
public SystemNotice_NoticeStateEnum NoticeStateEnum { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public DateTime? StartDate { get; set; }
|
public DateTime? StartDate { get; set; }
|
||||||
|
|
||||||
public DateTime? EndDate { get; set; }
|
public DateTime? EndDate { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
public string FileName { get; set; }
|
public string FileName { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
|
|
||||||
public Guid? PublishedUserId { get; set; }
|
public Guid? PublishedUserId { get; set; }
|
||||||
|
|
|
@ -13,10 +13,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///SystemNoticeUserRead
|
///SystemNoticeUserRead
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SystemNoticeUserRead")]
|
[Table("SystemNoticeUserRead")]
|
||||||
public class SystemNoticeUserRead : BaseAuditAddEntity
|
public class SystemNoticeUserRead : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
public Guid SystemNoticeId { get; set; }
|
public Guid SystemNoticeId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -13,20 +13,22 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///SystemNoticeUserType
|
///SystemNoticeUserType
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SystemNoticeUserType")]
|
[Table("SystemNoticeUserType")]
|
||||||
public class SystemNoticeUserType : BaseAuditAddEntity
|
public class SystemNoticeUserType : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
|
||||||
public Guid SystemNoticeId { get; set; }
|
[ForeignKey("UserTypeId")]
|
||||||
|
public UserType NoticeUserType { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Guid SystemNoticeId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public Guid UserTypeId { get; set; }
|
public Guid UserTypeId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
[ForeignKey("UserTypeId")]
|
|
||||||
public UserType NoticeUserType { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,9 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("Role")]
|
[Table("Role")]
|
||||||
public partial class Role : BaseFullAuditEntity
|
public partial class Role : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
#endregion
|
||||||
public string RoleName { get; set; } = string.Empty;
|
public string RoleName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string RoleDescription { get; set; } = string.Empty;
|
public string RoleDescription { get; set; } = string.Empty;
|
||||||
|
|
|
@ -10,6 +10,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("User")]
|
[Table("User")]
|
||||||
public partial class User : BaseFullAuditEntity
|
public partial class User : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[ForeignKey("UserTypeId")]
|
[ForeignKey("UserTypeId")]
|
||||||
public UserType UserTypeRole { get; set; }
|
public UserType UserTypeRole { get; set; }
|
||||||
|
|
||||||
|
@ -23,6 +24,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<VisitTask> VisitTaskList { get; set; }
|
public List<VisitTask> VisitTaskList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("DoctorId")]
|
||||||
|
public Doctor Doctor { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[StringLength(255)]
|
[StringLength(255)]
|
||||||
public string UserName { get; set; } = String.Empty;
|
public string UserName { get; set; } = String.Empty;
|
||||||
|
@ -53,12 +60,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public bool PasswordChanged { get; set; }
|
public bool PasswordChanged { get; set; }
|
||||||
|
|
||||||
//public Guid OrganizationId { get; set; } = Guid.Empty;
|
|
||||||
//public Guid OrganizationTypeId { get; set; } = Guid.Empty;
|
|
||||||
//public string OrganizationType { get; set; } = String.Empty;
|
|
||||||
//public string UserType { get; set; } = string.Empty;
|
|
||||||
//public bool SuperAdmin { get; set; } = false;
|
|
||||||
//public string RealName { get; set; }
|
|
||||||
|
|
||||||
public string UserCode { get; set; } = string.Empty;
|
public string UserCode { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
@ -87,11 +88,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
//医生生成账号后,会有值
|
//医生生成账号后,会有值
|
||||||
public Guid? DoctorId { get; set; }
|
public Guid? DoctorId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("DoctorId")]
|
|
||||||
public Doctor Doctor { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public bool IsTestUser { get; set; }
|
public bool IsTestUser { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -16,6 +16,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("UserFeedBack")]
|
[Table("UserFeedBack")]
|
||||||
public class UserFeedBack : BaseFullAuditEntity
|
public class UserFeedBack : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public Trial Trial { get; set; }
|
public Trial Trial { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
@ -31,6 +32,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public VisitTask VisitTask { get; set; }
|
public VisitTask VisitTask { get; set; }
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> ScreenshotList => JsonConvert.DeserializeObject<List<string>>(ScreenshotListStr);
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public Guid? VisitTaskId { get; set; }
|
public Guid? VisitTaskId { get; set; }
|
||||||
|
|
||||||
public Guid? SubjectId { get; set; }
|
public Guid? SubjectId { get; set; }
|
||||||
|
@ -58,8 +64,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public string ScreenshotListStr { get; set; }
|
public string ScreenshotListStr { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> ScreenshotList => JsonConvert.DeserializeObject<List<string>>(ScreenshotListStr);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,15 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///UserLog
|
///UserLog
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("UserLog")]
|
[Table("UserLog")]
|
||||||
public class UserLog : BaseAuditAddEntity
|
public class UserLog : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
public User LoginUser { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public User OptUser { get; set; }
|
||||||
|
#endregion
|
||||||
public string IP { get; set; } = string.Empty;
|
public string IP { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,11 +38,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public Guid? OptUserId { get;set; }
|
public Guid? OptUserId { get;set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public User LoginUser { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public User OptUser { get; set; }
|
|
||||||
|
|
||||||
public string IPRegion { get; set; }
|
public string IPRegion { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -13,14 +13,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///UserPassWordLog
|
///UserPassWordLog
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("UserPassWordLog")]
|
[Table("UserPassWordLog")]
|
||||||
public class UserPassWordLog : BaseAuditAddEntity
|
public class UserPassWordLog : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
/// <summary>
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
/// 用户Id
|
/// 用户Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid UserId { get; set; }
|
public Guid UserId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 密码
|
/// 密码
|
||||||
|
|
|
@ -8,7 +8,18 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<UserTypeMenu> UserTypeMenuList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<UserTypeGroup> UserTypeGroupList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<SystemDocNeedConfirmedUserType> SystemDocNeedConfirmedUserTypeList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<User> UserList { get; set; }
|
||||||
|
#endregion
|
||||||
public UserTypeEnum UserTypeEnum { get; set; }
|
public UserTypeEnum UserTypeEnum { get; set; }
|
||||||
|
|
||||||
public string UserTypeName { get; set; }
|
public string UserTypeName { get; set; }
|
||||||
|
@ -26,16 +37,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<UserTypeMenu> UserTypeMenuList { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
public List <UserTypeGroup> UserTypeGroupList { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<SystemDocNeedConfirmedUserType> SystemDocNeedConfirmedUserTypeList { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<User> UserList { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -14,27 +14,24 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("UserTypeGroup")]
|
[Table("UserTypeGroup")]
|
||||||
public class UserTypeGroup : Entity
|
public class UserTypeGroup : Entity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
/// <summary>
|
[JsonIgnore]
|
||||||
/// UserTypeId
|
[ForeignKey("DictionaryId")]
|
||||||
/// </summary>
|
public Dictionary Group { get; set; }
|
||||||
[Required]
|
|
||||||
public Guid UserTypeId { get; set; }
|
[JsonIgnore]
|
||||||
|
[ForeignKey("UserTypeId")]
|
||||||
|
public UserType UserType { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
public Guid UserTypeId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// DictionaryId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid DictionaryId { get; set; }
|
public Guid DictionaryId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("DictionaryId")]
|
|
||||||
public Dictionary Group { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("UserTypeId")]
|
|
||||||
public UserType UserType { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,19 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("UserTypeMenu")]
|
[Table("UserTypeMenu")]
|
||||||
public partial class UserTypeMenu : Entity
|
public partial class UserTypeMenu : Entity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
public Menu Menu { get; set; }
|
|
||||||
public Guid UserTypeId { get; set; }
|
|
||||||
public Guid MenuId { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("UserTypeId")]
|
[ForeignKey("UserTypeId")]
|
||||||
public UserType UserType { get; set; }
|
public UserType UserType { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public Menu Menu { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Guid UserTypeId { get; set; }
|
||||||
|
public Guid MenuId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,11 +7,15 @@ using System.Text;
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
|
|
||||||
public class CheckChallengeDialog : BaseAuditAddEntity
|
public class CheckChallengeDialog : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
public string TalkContent { get; set; } = string.Empty;
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public string TalkContent { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
public User CreateUser { get; set; }
|
public User CreateUser { get; set; }
|
||||||
|
@ -19,7 +23,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public UserTypeEnum UserTypeEnum { get; set; }
|
public UserTypeEnum UserTypeEnum { get; set; }
|
||||||
|
|
||||||
//
|
|
||||||
public bool? IsCRCNeedReply { get; set; }
|
public bool? IsCRCNeedReply { get; set; }
|
||||||
|
|
||||||
public string ParamInfo { get; set; }
|
public string ParamInfo { get; set; }
|
||||||
|
|
|
@ -12,84 +12,41 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///PreviousHistory
|
///PreviousHistory
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("PreviousHistory")]
|
[Table("PreviousHistory")]
|
||||||
public class PreviousHistory : Entity, IAuditAddWithUserName
|
public class PreviousHistory : BaseAddAuditEntityWithUserName
|
||||||
{
|
{
|
||||||
[JsonIgnore]
|
#region 导航属性
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
[JsonIgnore]
|
||||||
/// <summary>
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
/// CreateUserId
|
#endregion
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid CreateUserId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CreateTime
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public DateTime CreateTime { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CreateUser
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string CreateUser { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// StartTime
|
|
||||||
/// </summary>
|
|
||||||
public DateTime? StartTime { get; set; }
|
public DateTime? StartTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// EndTime
|
|
||||||
/// </summary>
|
|
||||||
public DateTime? EndTime { get; set; }
|
public DateTime? EndTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsPD
|
|
||||||
/// </summary>
|
|
||||||
public int? IsPD { get; set; }
|
public int? IsPD { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// SubjectVisitId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsSubjectLevel
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public bool IsSubjectLevel { get; set; }
|
public bool IsSubjectLevel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Path
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Path { get; set; } = String.Empty;
|
public string Path { get; set; } = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// FileName
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string FileName { get; set; } = String.Empty;
|
public string FileName { get; set; } = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Position
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Position { get; set; } = String.Empty;
|
public string Position { get; set; } = String.Empty;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 临床数据类型Id
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid ClinicalDataTrialSetId { get; set; }
|
public Guid ClinicalDataTrialSetId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
//[Required]
|
|
||||||
//public Guid SubjectId { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//移动到DBContext文件中
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,73 +12,34 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///PreviousOther
|
///PreviousOther
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("PreviousOther")]
|
[Table("PreviousOther")]
|
||||||
public class PreviousOther : Entity, IAuditAddWithUserName
|
public class PreviousOther : BaseAddAuditEntityWithUserName
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// CreateUserId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid CreateUserId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CreateTime
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public DateTime CreateTime { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CreateUser
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string CreateUser { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// StartTime
|
|
||||||
/// </summary>
|
|
||||||
public DateTime? StartTime { get; set; }
|
public DateTime? StartTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// EndTime
|
|
||||||
/// </summary>
|
|
||||||
public DateTime? EndTime { get; set; }
|
public DateTime? EndTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsPD
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public bool IsPD { get; set; }
|
public bool IsPD { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// SubjectVisitId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsSubjectLevel
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public bool IsSubjectLevel { get; set; }
|
public bool IsSubjectLevel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Path
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Path { get; set; } = String.Empty;
|
public string Path { get; set; } = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// FileName
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string FileName { get; set; } = String.Empty;
|
public string FileName { get; set; } = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TreatmentType
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string TreatmentType { get; set; } = String.Empty;
|
public string TreatmentType { get; set; } = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -87,10 +48,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Required]
|
[Required]
|
||||||
public Guid ClinicalDataTrialSetId { get; set; }
|
public Guid ClinicalDataTrialSetId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
//public Guid SubjectId { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//移动到DBContext文件中
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,45 +13,22 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///PreviousPDF
|
///PreviousPDF
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("PreviousPDF")]
|
[Table("PreviousPDF")]
|
||||||
public class PreviousPDF : Entity, IAuditAdd
|
public class PreviousPDF : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CreateTime
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public DateTime CreateTime { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// SubjectVisitId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Path
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// FileName
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string FileName { get; set; }
|
public string FileName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CreateUserId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid CreateUserId { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 是否是访视
|
|
||||||
/// </summary>
|
|
||||||
public bool? IsVisist { get; set; }
|
public bool? IsVisist { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -69,14 +46,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ClinicalUploadType? UploadType { get; set; }
|
public ClinicalUploadType? UploadType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目Id
|
|
||||||
/// </summary>
|
|
||||||
public Guid? TrialId { get; set; }
|
public Guid? TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 受试者ID
|
|
||||||
/// </summary>
|
|
||||||
public Guid? SubjectId { get; set; }
|
public Guid? SubjectId { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,65 +12,27 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///PreviousSurgery
|
///PreviousSurgery
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("PreviousSurgery")]
|
[Table("PreviousSurgery")]
|
||||||
public class PreviousSurgery : Entity, IAuditAddWithUserName
|
public class PreviousSurgery : BaseAddAuditEntityWithUserName
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
/// <summary>
|
#endregion
|
||||||
/// CreateUserId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid CreateUserId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CreateTime
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public DateTime CreateTime { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// CreateUser
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string CreateUser { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// OperationTime
|
|
||||||
/// </summary>
|
|
||||||
public DateTime? OperationTime { get; set; }
|
public DateTime? OperationTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// SubjectVisitId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsSubjectLevel
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public bool IsSubjectLevel { get; set; }
|
public bool IsSubjectLevel { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Path
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Path { get; set; } = String.Empty;
|
public string Path { get; set; } = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// FileName
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string FileName { get; set; } = String.Empty;
|
public string FileName { get; set; } = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// OperationName
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string OperationName { get; set; } = String.Empty;
|
public string OperationName { get; set; } = String.Empty;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 临床数据类型Id
|
/// 临床数据类型Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -78,8 +40,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid ClinicalDataTrialSetId { get; set; }
|
public Guid ClinicalDataTrialSetId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
//[Required]
|
|
||||||
//public Guid SubjectId { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,33 +8,22 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 一致性核查文件
|
/// 一致性核查文件
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("InspectionFile")]
|
[Table("InspectionFile")]
|
||||||
public class InspectionFile : BaseAuditAddEntity
|
public class InspectionFile : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// 文件名称
|
[JsonIgnore]
|
||||||
/// </summary>
|
[ForeignKey("CreateUserId")]
|
||||||
public string FileName { get; set; }
|
public User User { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public string FileName { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 相对路径
|
|
||||||
/// </summary>
|
|
||||||
public string RelativePath { get; set; }
|
public string RelativePath { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目ID
|
|
||||||
/// </summary>
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
/// <summary>
|
|
||||||
/// 创建人
|
|
||||||
/// </summary>
|
|
||||||
[ForeignKey("CreateUserId")]
|
|
||||||
public User User { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,15 +15,22 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("NoneDicomStudy")]
|
[Table("NoneDicomStudy")]
|
||||||
public class NoneDicomStudy : BaseFullAuditEntity
|
public class NoneDicomStudy : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<NoneDicomStudyFile> NoneDicomFileList { get; set; }
|
public List<NoneDicomStudyFile> NoneDicomFileList { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
public Subject Subject { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("CreateUserId")]
|
||||||
|
public User CreateUser { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public Subject Subject { get; set; }
|
|
||||||
|
|
||||||
public string StudyCode { get; set; } = string.Empty;
|
public string StudyCode { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
@ -31,36 +38,24 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public string BodyPart { get; set; }
|
public string BodyPart { get; set; }
|
||||||
|
|
||||||
[Required]
|
|
||||||
public string Modality { get; set; }
|
public string Modality { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
|
||||||
public DateTime ImageDate { get; set; }
|
public DateTime ImageDate { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[ForeignKey("CreateUserId")]
|
|
||||||
public User CreateUser { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,14 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///NoneDicomStudyFile
|
///NoneDicomStudyFile
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("NoneDicomStudyFile")]
|
[Table("NoneDicomStudyFile")]
|
||||||
public class NoneDicomStudyFile : BaseAuditAddEntity
|
public class NoneDicomStudyFile : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[ForeignKey("NoneDicomStudyId")]
|
[ForeignKey("NoneDicomStudyId")]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public NoneDicomStudy NoneDicomStudy { get; set; }
|
public NoneDicomStudy NoneDicomStudy { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public Guid NoneDicomStudyId { get; set; }
|
public Guid NoneDicomStudyId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,25 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
public class QCChallenge : BaseAuditAddEntity
|
public class QCChallenge : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("CreateUserId")]
|
[ForeignKey("CreateUserId")]
|
||||||
|
|
||||||
public User CreateUser { get; set; }
|
public User CreateUser { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("LatestReplyUserId")]
|
||||||
|
public User LatestReplyUser { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
//导航属性
|
||||||
|
[ForeignKey("SubjectVisitId")]
|
||||||
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<QCChallengeDialog> DialogList { get; set; } = new List<QCChallengeDialog>();
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,13 +49,10 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public DateTime? LatestMsgTime { get; set; }
|
public DateTime? LatestMsgTime { get; set; }
|
||||||
|
|
||||||
//public int ChallengeState { get; set; }
|
|
||||||
|
|
||||||
public Guid? LatestReplyUserId { get; set; }
|
public Guid? LatestReplyUserId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("LatestReplyUserId")]
|
|
||||||
public User LatestReplyUser { get; set; }
|
|
||||||
public string ChallengeCode { get; set; }
|
public string ChallengeCode { get; set; }
|
||||||
|
|
||||||
public int Code { get; set; }
|
public int Code { get; set; }
|
||||||
|
@ -68,15 +78,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public string ChallengeType { get; set; } = string.Empty;
|
public string ChallengeType { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
//导航属性
|
|
||||||
[ForeignKey("SubjectVisitId")]
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<QCChallengeDialog> DialogList { get; set; } = new List<QCChallengeDialog>();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,20 +4,22 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Domain.Models
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
public class QCChallengeDialog : BaseAuditAddEntity
|
public class QCChallengeDialog : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public QCChallenge QCChallenge { get; set; }
|
public QCChallenge QCChallenge { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("CreateUserId")]
|
||||||
|
public User CreateUser { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
public string TalkContent { get; set; } = string.Empty;
|
public string TalkContent { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Guid QCChallengeId { get; set; }
|
public Guid QCChallengeId { get; set; }
|
||||||
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("CreateUserId")]
|
|
||||||
public User CreateUser { get; set; }
|
|
||||||
|
|
||||||
public UserTypeEnum UserTypeEnum { get; set; }
|
public UserTypeEnum UserTypeEnum { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -13,54 +13,34 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("QCQuestion")]
|
[Table("QCQuestion")]
|
||||||
public class QCQuestion : BaseFullAuditEntity
|
public class QCQuestion : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// QuestionName
|
|
||||||
/// </summary>
|
[JsonIgnore]
|
||||||
[Required]
|
[ForeignKey("ParentId")]
|
||||||
public string QuestionName { get; set; } = string.Empty;
|
public QCQuestion ParentQuestion { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public string QuestionName { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary> 语言类型 </summary>
|
||||||
/// 语言类型
|
|
||||||
/// </summary>
|
|
||||||
public LanguageType LanguageType { get; set; } = LanguageType.Chinese;
|
public LanguageType LanguageType { get; set; } = LanguageType.Chinese;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsRequired
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public bool IsRequired { get; set; }
|
public bool IsRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsEnable
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public bool IsEnable { get; set; }
|
public bool IsEnable { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary> 下拉框、文本、单选、多选 </summary>
|
||||||
/// 下拉框、文本、单选、多选
|
public string Type { get; set; } = string.Empty;
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Type { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TypeValue
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string TypeValue { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
[JsonIgnore]
|
public string TypeValue { get; set; } = string.Empty;
|
||||||
[ForeignKey("ParentId")]
|
|
||||||
public QCQuestion ParentQuestion { get; set; }
|
|
||||||
|
|
||||||
public string ParentTriggerValue { get; set; }
|
public string ParentTriggerValue { get; set; }
|
||||||
public Guid? ParentId { get; set; }
|
public Guid? ParentId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ShowOrder
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public int ShowOrder { get; set; }
|
public int ShowOrder { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,78 +15,52 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("TrialQCQuestion")]
|
[Table("TrialQCQuestion")]
|
||||||
public class TrialQCQuestion : BaseFullAuditEntity
|
public class TrialQCQuestion : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
[JsonIgnore]
|
#region 导航属性
|
||||||
public Trial Trial { get; set; }
|
[JsonIgnore]
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ParentId")]
|
||||||
|
public TrialQCQuestion ParentQCQuestion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
[JsonIgnore]
|
||||||
/// TrialId
|
public List<TrialQCQuestionAnswer> TrialQCQuestionAnswerList { get; set; }
|
||||||
/// </summary>
|
|
||||||
[Required]
|
#endregion
|
||||||
public Guid TrialId { get; set; }
|
|
||||||
|
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// QuestionName
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string QuestionName { get; set; } = string.Empty;
|
public string QuestionName { get; set; } = string.Empty;
|
||||||
|
/// <summary> 语言类型 </summary>
|
||||||
|
|
||||||
|
public LanguageType LanguageType { get; set; } = LanguageType.Chinese;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 语言类型
|
|
||||||
/// </summary>
|
|
||||||
public LanguageType LanguageType { get; set; } = LanguageType.Chinese;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsRequired
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public bool IsRequired { get; set; }
|
public bool IsRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsEnable
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public bool IsEnable { get; set; }
|
public bool IsEnable { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary> 下拉框、文本、单选、多选 </summary>
|
||||||
/// 下拉框、文本、单选、多选
|
public string Type { get; set; } = string.Empty;
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Type { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
|
|
||||||
public Guid? ParentId { get; set; }
|
public Guid? ParentId { get; set; }
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ParentId")]
|
|
||||||
public TrialQCQuestion ParentQCQuestion { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TypeValue
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string TypeValue { get; set; }
|
public string TypeValue { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ChildInvalidValue
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string ParentTriggerValue { get; set; }
|
public string ParentTriggerValue { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ShowOrder
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public int ShowOrder { get; set; }
|
public int ShowOrder { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 是否确认
|
|
||||||
/// </summary>
|
|
||||||
public bool? IsConfirm { get; set; }
|
public bool? IsConfirm { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<TrialQCQuestionAnswer> TrialQCQuestionAnswerList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,21 +15,15 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("TrialQCQuestionAnswer")]
|
[Table("TrialQCQuestionAnswer")]
|
||||||
public class TrialQCQuestionAnswer : BaseFullAuditEntity
|
public class TrialQCQuestionAnswer : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
/// <summary>
|
public TrialQCQuestion TrialQCQuestionConfigure { get; set; }
|
||||||
/// TrialId
|
#endregion
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Answer
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Answer { get; set; }
|
public string Answer { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public TrialQCProcess QCProcessEnum { get; set; }
|
public TrialQCProcess QCProcessEnum { get; set; }
|
||||||
|
|
||||||
|
@ -38,12 +32,10 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public Guid SubjectVisitId { get; set; }
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
//public string Note { get; set; }
|
|
||||||
|
|
||||||
public Guid TrialQCQuestionConfigureId { get; set; }
|
public Guid TrialQCQuestionConfigureId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public TrialQCQuestion TrialQCQuestionConfigure { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,53 +15,47 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("SubjectAdditionalEvaluationResult")]
|
[Table("SubjectAdditionalEvaluationResult")]
|
||||||
public class SubjectAdditionalEvaluationResult : BaseFullAuditEntity
|
public class SubjectAdditionalEvaluationResult : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("TrialReadingQuestionId")]
|
[ForeignKey("TrialReadingQuestionId")]
|
||||||
public ReadingQuestionTrial TrialReadingQuestion { get; set; }
|
public ReadingQuestionTrial TrialReadingQuestion { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Guid TrialReadingQuestionId { get; set; }
|
public Guid TrialReadingQuestionId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Guid? VisitTaskId { get; set; }
|
public Guid? VisitTaskId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public string Answer { get; set; }
|
public string Answer { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 附加评估答案翻译字典
|
/// 附加评估答案翻译字典
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
|
||||||
public string TranslateDictionaryCode { get; set; }=string.Empty;
|
public string TranslateDictionaryCode { get; set; }=string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否是最终结果
|
/// 是否是最终结果
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
|
||||||
public bool IsFinalResult { get; set; }
|
public bool IsFinalResult { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最终结果
|
/// 最终结果
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
|
||||||
public string FinalAnswer { get; set; }
|
public string FinalAnswer { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 最终结果翻字典
|
/// 最终结果翻字典
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
|
||||||
public string FinalTranslateDictionaryCode { get; set; }
|
public string FinalTranslateDictionaryCode { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,32 +17,26 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("SubjectCriteriaEvaluation")]
|
[Table("SubjectCriteriaEvaluation")]
|
||||||
public class SubjectCriteriaEvaluation : BaseFullAuditEntity
|
public class SubjectCriteriaEvaluation : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
[JsonIgnore]
|
#region 导航属性
|
||||||
public Subject subject { get; set; }
|
[JsonIgnore]
|
||||||
|
public Subject subject { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("TrialReadingCriterionId")]
|
[ForeignKey("TrialReadingCriterionId")]
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public List<SubjectCriteriaEvaluationVisitFilter> SubjectCriteriaEvaluationVisitFilterList { get; set; }
|
public List<SubjectCriteriaEvaluationVisitFilter> SubjectCriteriaEvaluationVisitFilterList { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// SubjectId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TrialReadingCriterionId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否参与评估
|
/// 是否参与评估
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
|
||||||
public bool IsJoinEvaluation { get; set; }
|
public bool IsJoinEvaluation { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("SubjectCriteriaEvaluationVisitFilter")]
|
[Table("SubjectCriteriaEvaluationVisitFilter")]
|
||||||
public class SubjectCriteriaEvaluationVisitFilter : BaseFullAuditEntity
|
public class SubjectCriteriaEvaluationVisitFilter : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
//[JsonIgnore]
|
|
||||||
|
|
||||||
//public List<VisitTask> SubjectCriterionTaskList { get; set; }
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("TrialReadingCriterionId")]
|
[ForeignKey("TrialReadingCriterionId")]
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
|
@ -32,6 +29,9 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,19 +44,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 影像筛选状态
|
/// 影像筛选状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
|
||||||
public ImageFilterState ImageFilterState { get; set; }
|
public ImageFilterState ImageFilterState { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 影像判断结果
|
/// 影像判断结果
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
|
||||||
public ImageDeterminationResultState ImageDeterminationResultState { get; set; }
|
public ImageDeterminationResultState ImageDeterminationResultState { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否已生成任务
|
/// 是否已生成任务
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
|
||||||
public bool IsGeneratedTask { get; set; }
|
public bool IsGeneratedTask { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("SubjectCriteriaEvaluationVisitStudyFilter")]
|
[Table("SubjectCriteriaEvaluationVisitStudyFilter")]
|
||||||
public class SubjectCriteriaEvaluationVisitStudyFilter : BaseFullAuditEntity
|
public class SubjectCriteriaEvaluationVisitStudyFilter : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("TrialReadingCriterionId")]
|
[ForeignKey("TrialReadingCriterionId")]
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
|
@ -30,6 +31,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[ForeignKey("StudyId")]
|
[ForeignKey("StudyId")]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public DicomStudy Study { get; set; }
|
public DicomStudy Study { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -13,13 +13,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 临床资料系统配置
|
/// 临床资料系统配置
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ClinicalDataSystemSet")]
|
[Table("ClinicalDataSystemSet")]
|
||||||
public class ClinicalDataSystemSet : BaseAuditAddEntity
|
public class ClinicalDataSystemSet : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
/// <summary>
|
#endregion
|
||||||
/// 枚举(字典里面取的)
|
|
||||||
/// </summary>
|
/// <summary>
|
||||||
public int ClinicalDataSetEnum { get; set; }
|
/// 枚举(字典里面取的)
|
||||||
|
/// </summary>
|
||||||
|
public int ClinicalDataSetEnum { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 名称
|
/// 名称
|
||||||
|
|
|
@ -13,12 +13,27 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 临床资料项目配置
|
/// 临床资料项目配置
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ClinicalDataTrialSet")]
|
[Table("ClinicalDataTrialSet")]
|
||||||
public class ClinicalDataTrialSet : BaseAuditAddEntity
|
public class ClinicalDataTrialSet : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<ReadingClinicalData> ReadingClinicalDataList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("TrialId")]
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<TrialClinicalDataSetCriterion> TrialClinicalDataSetCriteriaList { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<TrialClinicalQuestion> TrialClinicalQuestionList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SystemClinicalDataSetId")]
|
||||||
|
public ClinicalDataSystemSet? ClinicalDataSystemSet { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目ID
|
|
||||||
/// </summary>
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -51,8 +66,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SystemClinicalDataSetId
|
/// SystemClinicalDataSetId
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("SystemClinicalDataSetId")]
|
|
||||||
public ClinicalDataSystemSet? ClinicalDataSystemSet { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否确认
|
/// 是否确认
|
||||||
|
@ -80,24 +94,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public List<ReadingClinicalData> ReadingClinicalDataList { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
[ForeignKey("TrialId")]
|
|
||||||
public Trial Trial { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<TrialClinicalDataSetCriterion> TrialClinicalDataSetCriteriaList { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<TrialClinicalQuestion> TrialClinicalQuestionList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public string CriterionEnumListStr { get; set; } = String.Empty;
|
public string CriterionEnumListStr { get; set; } = String.Empty;
|
||||||
|
|
|
@ -12,12 +12,43 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 项目的临床数据
|
/// 项目的临床数据
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingClinicalData")]
|
[Table("ReadingClinicalData")]
|
||||||
public class ReadingClinicalData : BaseAuditAddEntity
|
public class ReadingClinicalData : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// 项目ID
|
|
||||||
/// </summary>
|
[JsonIgnore]
|
||||||
public Guid TrialId { get; set; }
|
[ForeignKey("ClinicalDataTrialSetId")]
|
||||||
|
|
||||||
|
public ClinicalDataTrialSet ClinicalDataTrialSet { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public DicomStudy? DicomStudy { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("TrialId")]
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ReadingId")]
|
||||||
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SubjectId")]
|
||||||
|
public Subject Subject { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ReadingId")]
|
||||||
|
|
||||||
|
public ReadModule ReadModule { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PDF文件
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<ReadingClinicalDataPDF> ReadingClinicalDataPDFList { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 访视Id 或者模块Id
|
/// 访视Id 或者模块Id
|
||||||
|
@ -26,9 +57,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public Guid? StudyId { get; set; }
|
public Guid? StudyId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 受试者ID
|
|
||||||
/// </summary>
|
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -64,40 +93,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
//临床数据状态
|
//临床数据状态
|
||||||
public ReadingClinicalDataStatus ReadingClinicalDataState { get; set; }
|
public ReadingClinicalDataStatus ReadingClinicalDataState { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ClinicalDataTrialSetId")]
|
|
||||||
|
|
||||||
public ClinicalDataTrialSet ClinicalDataTrialSet { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public DicomStudy? DicomStudy { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("TrialId")]
|
|
||||||
|
|
||||||
public Trial Trial { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ReadingId")]
|
|
||||||
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SubjectId")]
|
|
||||||
|
|
||||||
public Subject Subject { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ReadingId")]
|
|
||||||
|
|
||||||
public ReadModule ReadModule { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// PDF文件
|
|
||||||
/// </summary>
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<ReadingClinicalDataPDF> ReadingClinicalDataPDFList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,37 +11,27 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 项目的临床数据
|
/// 项目的临床数据
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingClinicalDataPDF")]
|
[Table("ReadingClinicalDataPDF")]
|
||||||
public class ReadingClinicalDataPDF : BaseAuditAddEntity
|
public class ReadingClinicalDataPDF : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
[JsonIgnore]
|
#region 导航属性
|
||||||
[ForeignKey("ReadingClinicalDataId")]
|
[JsonIgnore]
|
||||||
public ReadingClinicalData ReadingClinicalData { get; set; }
|
[ForeignKey("ReadingClinicalDataId")]
|
||||||
/// <summary>
|
public ReadingClinicalData ReadingClinicalData { get; set; }
|
||||||
/// 阅片临床数据ID
|
#endregion
|
||||||
/// </summary>
|
|
||||||
public Guid ReadingClinicalDataId { get; set; }
|
/// <summary>
|
||||||
|
/// 阅片临床数据ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid ReadingClinicalDataId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Path
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// FileName
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string FileName { get; set; }
|
public string FileName { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 大小
|
|
||||||
/// </summary>
|
|
||||||
public int Size { get; set; } = 0;
|
public int Size { get; set; } = 0;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 文件类型
|
|
||||||
/// </summary>
|
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,12 +12,48 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 一致性分析临床数据
|
/// 一致性分析临床数据
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingConsistentClinicalData")]
|
[Table("ReadingConsistentClinicalData")]
|
||||||
public class ReadingConsistentClinicalData : BaseAuditAddEntity
|
public class ReadingConsistentClinicalData : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// 项目ID
|
[JsonIgnore]
|
||||||
/// </summary>
|
[ForeignKey("ClinicalDataTrialSetId")]
|
||||||
public Guid TrialId { get; set; }
|
|
||||||
|
public ClinicalDataTrialSet ClinicalDataTrialSet { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
|
||||||
|
public DicomStudy? DicomStudy { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("TrialId")]
|
||||||
|
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ReadingId")]
|
||||||
|
|
||||||
|
public SubjectVisit SubjectVisit { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SubjectId")]
|
||||||
|
|
||||||
|
public Subject Subject { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ReadingId")]
|
||||||
|
|
||||||
|
public ReadModule ReadModule { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PDF文件
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
public List<ReadingConsistentClinicalDataPDF> ReadingClinicalDataPDFList { get; set; }
|
||||||
|
#endregion
|
||||||
|
/// <summary>
|
||||||
|
/// 项目ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 访视Id 或者模块Id
|
/// 访视Id 或者模块Id
|
||||||
|
@ -64,40 +100,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
//临床数据状态
|
//临床数据状态
|
||||||
public ReadingClinicalDataStatus ReadingClinicalDataState { get; set; }
|
public ReadingClinicalDataStatus ReadingClinicalDataState { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ClinicalDataTrialSetId")]
|
|
||||||
|
|
||||||
public ClinicalDataTrialSet ClinicalDataTrialSet { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public DicomStudy? DicomStudy { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("TrialId")]
|
|
||||||
|
|
||||||
public Trial Trial { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ReadingId")]
|
|
||||||
|
|
||||||
public SubjectVisit SubjectVisit { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SubjectId")]
|
|
||||||
|
|
||||||
public Subject Subject { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ReadingId")]
|
|
||||||
|
|
||||||
public ReadModule ReadModule { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// PDF文件
|
|
||||||
/// </summary>
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<ReadingConsistentClinicalDataPDF> ReadingClinicalDataPDFList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,32 +11,24 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 一致性分析临床数据
|
/// 一致性分析临床数据
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingConsistentClinicalDataPDF")]
|
[Table("ReadingConsistentClinicalDataPDF")]
|
||||||
public class ReadingConsistentClinicalDataPDF : BaseAuditAddEntity
|
public class ReadingConsistentClinicalDataPDF : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
[JsonIgnore]
|
#region 导航属性
|
||||||
[ForeignKey("ReadingConsistentClinicalDataId")]
|
[JsonIgnore]
|
||||||
public ReadingConsistentClinicalData ReadingConsistentClinicalData { get; set; }
|
[ForeignKey("ReadingConsistentClinicalDataId")]
|
||||||
/// <summary>
|
public ReadingConsistentClinicalData ReadingConsistentClinicalData { get; set; }
|
||||||
/// 阅片临床数据ID
|
#endregion
|
||||||
/// </summary>
|
|
||||||
public Guid ReadingConsistentClinicalDataId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Path
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Path { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// FileName
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string FileName { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 大小
|
/// 阅片临床数据ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
public Guid ReadingConsistentClinicalDataId { get; set; }
|
||||||
|
|
||||||
|
public string Path { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public string FileName { get; set; }
|
||||||
|
|
||||||
public int Size { get; set; } = 0;
|
public int Size { get; set; } = 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -16,24 +16,22 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public class TrialClinicalDataSetCriterion : BaseFullAuditEntity
|
public class TrialClinicalDataSetCriterion : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// TrialClinicalDataSetId
|
[JsonIgnore]
|
||||||
/// </summary>
|
|
||||||
[Required]
|
[ForeignKey("TrialClinicalDataSetId")]
|
||||||
public Guid TrialClinicalDataSetId { get; set; }
|
public ClinicalDataTrialSet TrialClinicalDataSet { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("TrialReadingCriterionId")]
|
||||||
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Guid TrialClinicalDataSetId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TrialReadingCriterionId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[ForeignKey("TrialClinicalDataSetId")]
|
|
||||||
public ClinicalDataTrialSet TrialClinicalDataSet { get; set; }
|
|
||||||
|
|
||||||
[ForeignKey("TrialReadingCriterionId")]
|
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,36 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///系统临床数据问题
|
///系统临床数据问题
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SystemClinicalQuestion")]
|
[Table("SystemClinicalQuestion")]
|
||||||
public class SystemClinicalQuestion : BaseAuditAddEntity
|
public class SystemClinicalQuestion : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
/// <summary>
|
||||||
|
/// 分组
|
||||||
|
/// </summary>
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("GroupId")]
|
||||||
|
public SystemClinicalQuestion GroupQuestin { get; set; }
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<CalculateInfo> CalculateQuestionList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var result = JsonConvert.DeserializeObject<List<CalculateInfo>>(this.CalculateQuestions);
|
||||||
|
return result == null ? new List<CalculateInfo>() : result;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<CalculateInfo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目临床数据Id
|
/// 项目临床数据Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -135,32 +163,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string CalculateQuestions { get; set; } = "[]";
|
public string CalculateQuestions { get; set; } = "[]";
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 分组
|
|
||||||
/// </summary>
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("GroupId")]
|
|
||||||
public SystemClinicalQuestion GroupQuestin { get; set; }
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<CalculateInfo> CalculateQuestionList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var result = JsonConvert.DeserializeObject<List<CalculateInfo>>(this.CalculateQuestions);
|
|
||||||
return result == null ? new List<CalculateInfo>() : result;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<CalculateInfo>();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,31 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 系统临床表格问题
|
/// 系统临床表格问题
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SystemClinicalTableQuestion")]
|
[Table("SystemClinicalTableQuestion")]
|
||||||
public class SystemClinicalTableQuestion : BaseAuditAddEntity
|
public class SystemClinicalTableQuestion : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> RelevanceValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.RelevanceValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
/// <summary>
|
||||||
/// 系统临床数据Id
|
/// 系统临床数据Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid SystemClinicalId { get; set; }
|
public Guid SystemClinicalId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 问题名称
|
/// 问题名称
|
||||||
|
@ -99,23 +118,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string RelevanceValue { get; set; } = string.Empty;
|
public string RelevanceValue { get; set; } = string.Empty;
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> RelevanceValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.RelevanceValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,36 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///项目临床数据问题
|
///项目临床数据问题
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TrialClinicalQuestion")]
|
[Table("TrialClinicalQuestion")]
|
||||||
public class TrialClinicalQuestion : BaseAuditAddEntity
|
public class TrialClinicalQuestion : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[NotMapped]
|
||||||
|
public List<CalculateInfo> CalculateQuestionList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var result = JsonConvert.DeserializeObject<List<CalculateInfo>>(this.CalculateQuestions);
|
||||||
|
return result == null ? new List<CalculateInfo>() : result;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<CalculateInfo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("TrialClinicalId")]
|
||||||
|
public ClinicalDataTrialSet ClinicalDataTrialSet { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目临床数据Id
|
/// 项目临床数据Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -136,40 +164,17 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 自定义计算问题
|
/// 自定义计算问题
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string CalculateQuestions { get; set; } = "[]";
|
public string CalculateQuestions { get; set; } = "[]";
|
||||||
|
/// <summary>
|
||||||
[NotMapped]
|
/// 小数点位数
|
||||||
public List<CalculateInfo> CalculateQuestionList
|
/// </summary>
|
||||||
{
|
public int? DigitPlaces { get; set; }
|
||||||
get
|
|
||||||
{
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var result = JsonConvert.DeserializeObject<List<CalculateInfo>>(this.CalculateQuestions);
|
|
||||||
return result == null ? new List<CalculateInfo>() : result;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<CalculateInfo>();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 小数点位数
|
|
||||||
/// </summary>
|
|
||||||
public int? DigitPlaces { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 单位
|
/// 单位
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Unit { get; set; } = string.Empty;
|
public string Unit { get; set; } = string.Empty;
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("TrialClinicalId")]
|
|
||||||
public ClinicalDataTrialSet ClinicalDataTrialSet { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,32 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 项目临床表格问题
|
/// 项目临床表格问题
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TrialClinicalTableQuestion")]
|
[Table("TrialClinicalTableQuestion")]
|
||||||
public class TrialClinicalTableQuestion : BaseAuditAddEntity
|
public class TrialClinicalTableQuestion : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> RelevanceValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.RelevanceValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
/// <summary>
|
||||||
/// 项目临床数据Id
|
/// 项目临床数据Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid TrialClinicalId { get; set; }
|
public Guid TrialClinicalId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 问题名称
|
/// 问题名称
|
||||||
|
@ -113,23 +133,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string RelevanceValue { get; set; } = string.Empty;
|
public string RelevanceValue { get; set; } = string.Empty;
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> RelevanceValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.RelevanceValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,13 +13,13 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///ClinicalAnswerRowInfo
|
///ClinicalAnswerRowInfo
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ClinicalAnswerRowInfo")]
|
[Table("ClinicalAnswerRowInfo")]
|
||||||
public class ClinicalAnswerRowInfo : BaseAuditAddEntity
|
public class ClinicalAnswerRowInfo : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
/// <summary>
|
|
||||||
/// 受试者Id
|
#endregion
|
||||||
/// </summary>
|
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 表单Id
|
/// 表单Id
|
||||||
|
|
|
@ -13,13 +13,19 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///ClinicalForm
|
///ClinicalForm
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ClinicalForm")]
|
[Table("ClinicalForm")]
|
||||||
public class ClinicalForm : BaseAuditAddEntity
|
public class ClinicalForm : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
/// <summary>
|
[JsonIgnore]
|
||||||
/// 受试者Id
|
[ForeignKey("ClinicalDataTrialSetId")]
|
||||||
/// </summary>
|
public ClinicalDataTrialSet ClinicalDataTrialSet { get; set; }
|
||||||
public Guid SubjectId { get; set; }
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("SubjectId")]
|
||||||
|
public Subject Subject { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
@ -35,9 +41,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public string PicturePath { get; set; } = string.Empty;
|
public string PicturePath { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ClinicalDataTrialSetId
|
|
||||||
/// </summary>
|
|
||||||
public Guid ClinicalDataTrialSetId { get; set; }
|
public Guid ClinicalDataTrialSetId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -46,13 +49,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid? ReadingId { get; set; }
|
public Guid? ReadingId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ClinicalDataTrialSetId")]
|
|
||||||
public ClinicalDataTrialSet ClinicalDataTrialSet { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("SubjectId")]
|
|
||||||
public Subject Subject { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,17 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///ClinicalQuestionAnswer
|
///ClinicalQuestionAnswer
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ClinicalQuestionAnswer")]
|
[Table("ClinicalQuestionAnswer")]
|
||||||
public class ClinicalQuestionAnswer : BaseAuditAddEntity
|
public class ClinicalQuestionAnswer : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// 受试者Id
|
|
||||||
/// </summary>
|
|
||||||
public Guid SubjectId { get; set; }
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ClinicalFormId")]
|
||||||
|
public ClinicalForm ClinicalForm { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 表单Id
|
/// 表单Id
|
||||||
|
@ -31,19 +36,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 问题Id
|
/// 问题Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid QuestionId { get; set; }
|
public Guid QuestionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Answer
|
|
||||||
/// </summary>
|
|
||||||
public string Answer { get; set; }
|
public string Answer { get; set; }
|
||||||
|
|
||||||
public Guid ClinicalDataTrialSetId { get; set; }
|
public Guid ClinicalDataTrialSetId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ClinicalFormId")]
|
|
||||||
public ClinicalForm ClinicalForm { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,43 +13,28 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///ClinicalTableAnswer
|
///ClinicalTableAnswer
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ClinicalTableAnswer")]
|
[Table("ClinicalTableAnswer")]
|
||||||
public class ClinicalTableAnswer : BaseAuditAddEntity
|
public class ClinicalTableAnswer : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("RowId")]
|
||||||
|
public ClinicalAnswerRowInfo ClinicalAnswerRowInfo{get; set;}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 受试者Id
|
|
||||||
/// </summary>
|
|
||||||
public Guid SubjectId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 表单Id
|
|
||||||
/// </summary>
|
|
||||||
public Guid ClinicalFormId { get; set; }
|
public Guid ClinicalFormId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 问题Id
|
|
||||||
/// </summary>
|
|
||||||
public Guid QuestionId { get; set; }
|
public Guid QuestionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 答案行的Id
|
|
||||||
/// </summary>
|
|
||||||
public Guid RowId { get; set; }
|
public Guid RowId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 答案
|
|
||||||
/// </summary>
|
|
||||||
public string Answer { get; set; }
|
public string Answer { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 表格问题id
|
|
||||||
/// </summary>
|
|
||||||
public Guid TableQuestionId { get; set; }
|
public Guid TableQuestionId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("RowId")]
|
|
||||||
public ClinicalAnswerRowInfo ClinicalAnswerRowInfo { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,23 +13,21 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///ReadModuleCriterionFrom
|
///ReadModuleCriterionFrom
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadModuleCriterionFrom")]
|
[Table("ReadModuleCriterionFrom")]
|
||||||
public class ReadModuleCriterionFrom : BaseAuditAddEntity
|
public class ReadModuleCriterionFrom : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
/// <summary>
|
|
||||||
/// 阅片期Id
|
|
||||||
/// </summary>
|
|
||||||
[ForeignKey("ReadModuleId")]
|
[ForeignKey("ReadModuleId")]
|
||||||
public Guid ReadModuleId { get; set; }
|
public Guid ReadModuleId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
[JsonIgnore]
|
||||||
/// 受试者Id
|
[ForeignKey("ClinicalFormId")]
|
||||||
/// </summary>
|
public ClinicalForm ClinicalForm { get; set; }
|
||||||
public Guid SubjectId { get; set; }
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目Id
|
|
||||||
/// </summary>
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -38,9 +36,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid ClinicalFormId { get; set; }
|
public Guid ClinicalFormId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ClinicalFormId")]
|
|
||||||
public ClinicalForm ClinicalForm { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,12 +16,46 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///阅片医学审核对话
|
///阅片医学审核对话
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingMedicalReviewDialog")]
|
[Table("ReadingMedicalReviewDialog")]
|
||||||
public class ReadingMedicalReviewDialog : BaseAuditAddEntity
|
public class ReadingMedicalReviewDialog : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("TaskMedicalReviewId")]
|
||||||
|
public TaskMedicalReview TaskMedicalReview { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 文件
|
||||||
|
/// </summary>
|
||||||
|
[NotMapped]
|
||||||
|
public List<OSSImageInfo> FileList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var result = JsonConvert.DeserializeObject<List<OSSImageInfo>>(this.ImagePath);
|
||||||
|
return result == null ? new List<OSSImageInfo>() : result;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<OSSImageInfo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("CreateUserId")]
|
||||||
|
public User CreateUser { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
/// <summary>
|
||||||
/// 医学审核Id
|
/// 医学审核Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid TaskMedicalReviewId { get; set; }
|
public Guid TaskMedicalReviewId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 任务Id
|
/// 任务Id
|
||||||
|
@ -80,9 +114,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool? IsApplyHeavyReading { get; set; }
|
public bool? IsApplyHeavyReading { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("CreateUserId")]
|
|
||||||
public User CreateUser { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -95,35 +126,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string FileName { get; set; } = string.Empty;
|
public string FileName { get; set; } = string.Empty;
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("TaskMedicalReviewId")]
|
|
||||||
public TaskMedicalReview TaskMedicalReview { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 文件
|
|
||||||
/// </summary>
|
|
||||||
[NotMapped]
|
|
||||||
public List<OSSImageInfo> FileList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var result = JsonConvert.DeserializeObject<List<OSSImageInfo>>(this.ImagePath);
|
|
||||||
return result == null ? new List<OSSImageInfo>() : result;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<OSSImageInfo>();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,36 +11,31 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("ReadingMedicineQuestionAnswer")]
|
[Table("ReadingMedicineQuestionAnswer")]
|
||||||
public class ReadingMedicineQuestionAnswer : BaseFullAuditEntity
|
public class ReadingMedicineQuestionAnswer : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
[JsonIgnore]
|
||||||
/// 医学审核问题Id
|
[ForeignKey("TaskMedicalReviewId")]
|
||||||
/// </summary>
|
public TaskMedicalReview TaskMedicalReview { get; set; }
|
||||||
public Guid ReadingMedicineQuestionId { get; set; }
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 医学审核问题Id
|
||||||
|
/// </summary>
|
||||||
|
public Guid ReadingMedicineQuestionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 医学审核Id
|
/// 医学审核Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
public Guid TaskMedicalReviewId { get; set; }
|
public Guid TaskMedicalReviewId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 任务Id
|
|
||||||
/// </summary>
|
|
||||||
|
|
||||||
public Guid VisitTaskId { get; set; }
|
public Guid VisitTaskId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 答案
|
|
||||||
/// </summary>
|
|
||||||
|
|
||||||
public string Answer { get; set; }
|
public string Answer { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("TaskMedicalReviewId")]
|
|
||||||
public TaskMedicalReview TaskMedicalReview { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,21 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[Table("ReadingMedicineSystemQuestion")]
|
[Table("ReadingMedicineSystemQuestion")]
|
||||||
public class ReadingMedicineSystemQuestion : BaseFullAuditEntity
|
public class ReadingMedicineSystemQuestion : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
|
||||||
/// <summary>
|
[ForeignKey("ParentId")]
|
||||||
/// 类型
|
public ReadingMedicineSystemQuestion ParentQuestion { get; set; }
|
||||||
/// </summary>
|
//// |1|2| 这种保存
|
||||||
public string Type { get; set; }
|
// public string CriterionEnumStr { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
// [NotMapped]
|
||||||
|
// public List<int> CriterionEnumList => CriterionEnumStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Where(t => !string.IsNullOrEmpty(t)).Select(t=> Convert.ToInt32(t.Trim()) ).ToList(
|
||||||
|
#endregion
|
||||||
|
/// <summary>
|
||||||
|
/// 类型
|
||||||
|
/// </summary>
|
||||||
|
public string Type { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 父问题触发
|
/// 父问题触发
|
||||||
|
@ -73,10 +83,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ReadingCategory ReadingCategory { get; set; }
|
public ReadingCategory ReadingCategory { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
[ForeignKey("ParentId")]
|
|
||||||
public ReadingMedicineSystemQuestion ParentQuestion { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -85,11 +92,5 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public bool IsGeneral { get; set; }
|
public bool IsGeneral { get; set; }
|
||||||
|
|
||||||
|
|
||||||
//// |1|2| 这种保存
|
}
|
||||||
// public string CriterionEnumStr { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
// [NotMapped]
|
|
||||||
// public List<int> CriterionEnumList => CriterionEnumStr.Split('|', StringSplitOptions.RemoveEmptyEntries).Where(t => !string.IsNullOrEmpty(t)).Select(t=> Convert.ToInt32(t.Trim()) ).ToList();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,14 +14,18 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingMedicineTrialQuestion")]
|
[Table("ReadingMedicineTrialQuestion")]
|
||||||
public class ReadingMedicineTrialQuestion : BaseFullAuditEntity
|
public class ReadingMedicineTrialQuestion : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ParentId")]
|
||||||
|
public ReadingMedicineTrialQuestion ParentQuestion { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
/// <summary>
|
|
||||||
/// 类型
|
/// 类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 父问题触发值
|
/// 父问题触发值
|
||||||
|
@ -88,9 +92,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public Guid? SystemQuestionId { get; set; }
|
public Guid? SystemQuestionId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ParentId")]
|
|
||||||
public ReadingMedicineTrialQuestion ParentQuestion { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,13 +13,17 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 标准病灶中间表
|
/// 标准病灶中间表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Table("CriterionNidusSystem")]
|
[Table("CriterionNidusSystem")]
|
||||||
public class CriterionNidusSystem : BaseAuditAddEntity
|
public class CriterionNidusSystem : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
/// <summary>
|
[ForeignKey("CriterionId")]
|
||||||
/// 标准ID
|
[JsonIgnore]
|
||||||
/// </summary>
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
public Guid CriterionId { get; set; }
|
#endregion
|
||||||
|
/// <summary>
|
||||||
|
/// 标准ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid CriterionId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -39,9 +43,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public bool IsSystemCriterion { get; set; }
|
public bool IsSystemCriterion { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[ForeignKey("CriterionId")]
|
|
||||||
[JsonIgnore]
|
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,18 +13,14 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///CriterionNidusTrial
|
///CriterionNidusTrial
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("CriterionNidusTrial")]
|
[Table("CriterionNidusTrial")]
|
||||||
public class CriterionNidusTrial : BaseAuditAddEntity
|
public class CriterionNidusTrial : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
public Guid CriterionId { get; set; }
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
public Guid CriterionId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 病灶类型
|
|
||||||
/// </summary>
|
|
||||||
public LesionType LesionType { get; set; }
|
public LesionType LesionType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -13,14 +13,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///OrganInfo
|
///OrganInfo
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("OrganInfo")]
|
[Table("OrganInfo")]
|
||||||
public class OrganInfo : BaseAuditAddEntity
|
public class OrganInfo : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
/// <summary>
|
#endregion
|
||||||
/// 分类
|
/// <summary>
|
||||||
/// </summary>
|
/// 分类
|
||||||
public string Classification { get; set; } = string.Empty;
|
/// </summary>
|
||||||
|
public string Classification { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 分类 英文
|
/// 分类 英文
|
||||||
|
|
|
@ -13,13 +13,18 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///OrganTrialInfo
|
///OrganTrialInfo
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("OrganTrialInfo")]
|
[Table("OrganTrialInfo")]
|
||||||
public class OrganTrialInfo : BaseAuditAddEntity
|
public class OrganTrialInfo : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
/// <summary>
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("OrganInfoId")]
|
||||||
|
public OrganInfo OrganInfo { get; set; }
|
||||||
|
#endregion
|
||||||
|
/// <summary>
|
||||||
/// 器官Id
|
/// 器官Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid OrganInfoId { get; set; }
|
public Guid OrganInfoId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目Id
|
/// 项目Id
|
||||||
|
@ -29,12 +34,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public bool IsEnable { get; set; }
|
public bool IsEnable { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 病灶类型 项目自定义标准 可能会更改
|
|
||||||
///// </summary>
|
|
||||||
//public OrganType OrganType { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 标准Id
|
/// 标准Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -101,9 +100,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public OrganType? OrganType { get; set; }
|
public OrganType? OrganType { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("OrganInfoId")]
|
|
||||||
public OrganInfo OrganInfo { get; set; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///阅片标准分页
|
///阅片标准分页
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingCriterionPage")]
|
[Table("ReadingCriterionPage")]
|
||||||
public class ReadingCriterionPage : BaseAuditAddEntity
|
public class ReadingCriterionPage : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// 项目ID
|
[JsonIgnore]
|
||||||
/// </summary>
|
public List<ReadingQuestionTrial> ReadingQuestionList { get; set; } = new List<ReadingQuestionTrial>();
|
||||||
public Guid TrialId { get; set; }
|
#endregion
|
||||||
|
/// <summary>
|
||||||
|
/// 项目ID
|
||||||
|
/// </summary>
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 分页名称
|
/// 分页名称
|
||||||
|
@ -48,8 +52,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
public Guid ReadingQuestionCriterionTrialId { get; set; }
|
public Guid ReadingQuestionCriterionTrialId { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<ReadingQuestionTrial> ReadingQuestionList { get; set; } = new List<ReadingQuestionTrial>();
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,12 +12,16 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 系统阅片标准
|
/// 系统阅片标准
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingQuestionCriterionSystem")]
|
[Table("ReadingQuestionCriterionSystem")]
|
||||||
public class ReadingQuestionCriterionSystem : BaseAuditAddEntity
|
public class ReadingQuestionCriterionSystem : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// 标准
|
[JsonIgnore]
|
||||||
/// </summary>
|
public List<ReadingQuestionSystem> ReadingQuestionSystemList { get; set; } = new List<ReadingQuestionSystem>();
|
||||||
public string CriterionName { get; set; }
|
#endregion
|
||||||
|
/// <summary>
|
||||||
|
/// 标准
|
||||||
|
/// </summary>
|
||||||
|
public string CriterionName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否启用
|
/// 是否启用
|
||||||
|
@ -68,12 +72,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsMustGlobalReading { get; set; } = false;
|
public bool IsMustGlobalReading { get; set; } = false;
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<ReadingQuestionSystem> ReadingQuestionSystemList { get; set; } = new List<ReadingQuestionSystem>();
|
|
||||||
|
|
||||||
//[JsonIgnore]
|
|
||||||
//[ForeignKey("CriterionId")]
|
|
||||||
//public Dictionary Dictionary { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,27 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 项目阅片标准
|
/// 项目阅片标准
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingQuestionCriterionTrial")]
|
[Table("ReadingQuestionCriterionTrial")]
|
||||||
public class ReadingQuestionCriterionTrial : BaseAuditAddEntity
|
public class ReadingQuestionCriterionTrial : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[ForeignKey("TrialId")]
|
||||||
|
[JsonIgnore]
|
||||||
|
public Trial Trial { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
|
||||||
|
public List<ReadingQuestionTrial> ReadingQuestionTrialList = new List<ReadingQuestionTrial>();
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
|
||||||
|
public List<TrialCriterionAdditionalAssessmentType> TrialCriterionAdditionalAssessmentTypeList { get; set; } = new List<TrialCriterionAdditionalAssessmentType>();
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
|
||||||
|
public List<VisitTask> VisitTaskList { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 系统标准ID
|
/// 系统标准ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -247,26 +266,8 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public bool IsAutoCreate { get; set; } = true;
|
public bool IsAutoCreate { get; set; } = true;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目
|
|
||||||
/// </summary>
|
|
||||||
[ForeignKey("TrialId")]
|
|
||||||
[JsonIgnore]
|
|
||||||
public Trial Trial { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public List<ReadingQuestionTrial> ReadingQuestionTrialList = new List<ReadingQuestionTrial>();
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public List<TrialCriterionAdditionalAssessmentType> TrialCriterionAdditionalAssessmentTypeList { get; set; } = new List<TrialCriterionAdditionalAssessmentType>();
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
|
|
||||||
public List<VisitTask> VisitTaskList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public ReadingImageDownload ImageDownloadEnum { get; set; }
|
public ReadingImageDownload ImageDownloadEnum { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -13,18 +13,14 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///SystemCriterionDictionaryCode
|
///SystemCriterionDictionaryCode
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("SystemCriterionDictionaryCode")]
|
[Table("SystemCriterionDictionaryCode")]
|
||||||
public class SystemCriterionDictionaryCode : BaseAuditAddEntity
|
public class SystemCriterionDictionaryCode : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// SystemCriterionId
|
|
||||||
/// </summary>
|
#endregion
|
||||||
[Required]
|
|
||||||
public Guid SystemCriterionId { get; set; }
|
public Guid SystemCriterionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Code
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TrialCriterionAdditionalAssessmentType")]
|
[Table("TrialCriterionAdditionalAssessmentType")]
|
||||||
public class TrialCriterionAdditionalAssessmentType : BaseFullAuditEntity
|
public class TrialCriterionAdditionalAssessmentType : BaseFullAuditEntity
|
||||||
{
|
{
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion{get;set;}
|
#region 导航属性
|
||||||
|
[JsonIgnore]
|
||||||
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -13,22 +13,17 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///TrialCriterionDictionaryCode
|
///TrialCriterionDictionaryCode
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("TrialCriterionDictionaryCode")]
|
[Table("TrialCriterionDictionaryCode")]
|
||||||
public class TrialCriterionDictionaryCode : BaseAuditAddEntity
|
public class TrialCriterionDictionaryCode : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
[ForeignKey("TrialCriterionId")]
|
#region 导航属性
|
||||||
[JsonIgnore]
|
[ForeignKey("TrialCriterionId")]
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
[JsonIgnore]
|
||||||
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TrialCriterionId
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public Guid TrialCriterionId { get; set; }
|
public Guid TrialCriterionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Code
|
|
||||||
/// </summary>
|
|
||||||
[Required]
|
|
||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,88 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 系统阅片问题
|
/// 系统阅片问题
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingQuestionSystem")]
|
[Table("ReadingQuestionSystem")]
|
||||||
public class ReadingQuestionSystem : BaseAuditAddEntity
|
public class ReadingQuestionSystem : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// 系统标准Id
|
[JsonIgnore]
|
||||||
/// </summary>
|
[ForeignKey("GroupId")]
|
||||||
public Guid ReadingQuestionCriterionSystemId { get; set; }
|
public ReadingQuestionSystem GroupInfo { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ReadingQuestionCriterionSystemId")]
|
||||||
|
public ReadingQuestionCriterionSystem ReadingQuestionCriterionSystem { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ParentId")]
|
||||||
|
public ReadingQuestionSystem ParentReadingQuestionSystem { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("RelevanceId")]
|
||||||
|
public ReadingQuestionSystem RelevanceReadingQuestionSystem { get; set; }
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> ParentTriggerValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.ParentTriggerValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> RelevanceValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.RelevanceValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> HighlightAnswerList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var result = JsonConvert.DeserializeObject<List<string>>(this.HighlightAnswer);
|
||||||
|
return result == null ? new List<string>() : result;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
/// <summary>
|
||||||
|
/// 系统标准Id
|
||||||
|
/// </summary>
|
||||||
|
public Guid ReadingQuestionCriterionSystemId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 类型
|
/// 类型
|
||||||
|
@ -214,80 +290,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string HighlightAnswer { get; set; } = "[]";
|
public string HighlightAnswer { get; set; } = "[]";
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("GroupId")]
|
|
||||||
public ReadingQuestionSystem GroupInfo { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ReadingQuestionCriterionSystemId")]
|
|
||||||
public ReadingQuestionCriterionSystem ReadingQuestionCriterionSystem { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ParentId")]
|
|
||||||
public ReadingQuestionSystem ParentReadingQuestionSystem { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("RelevanceId")]
|
|
||||||
public ReadingQuestionSystem RelevanceReadingQuestionSystem { get; set; }
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> ParentTriggerValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.ParentTriggerValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> RelevanceValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.RelevanceValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> HighlightAnswerList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var result = JsonConvert.DeserializeObject<List<string>>(this.HighlightAnswer);
|
|
||||||
return result == null ? new List<string>() : result;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,110 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 项目阅片问题
|
/// 项目阅片问题
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingQuestionTrial")]
|
[Table("ReadingQuestionTrial")]
|
||||||
public class ReadingQuestionTrial : BaseAuditAddEntity
|
public class ReadingQuestionTrial : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
/// <summary>
|
||||||
|
/// 分页标准
|
||||||
|
/// </summary>
|
||||||
|
[ForeignKey("ReadingCriterionPageId")]
|
||||||
|
[JsonIgnore]
|
||||||
|
public ReadingCriterionPage ReadingCriterionPage { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ParentId")]
|
||||||
|
public ReadingQuestionTrial ParentReadingQuestionTrial { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("RelevanceId")]
|
||||||
|
public ReadingQuestionTrial RelevanceReadingQuestionTrial { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ReadingQuestionCriterionTrialId")]
|
||||||
|
public ReadingQuestionCriterionTrial ReadingQuestionCriterionTrial { get; set; }
|
||||||
|
|
||||||
public bool IsAdditional { get; set; }
|
[JsonIgnore]
|
||||||
|
public List<ReadingTableQuestionTrial> ReadingTableQuestionTrialList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("GroupId")]
|
||||||
|
public ReadingQuestionTrial GroupInfo { get; set; }
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> ParentTriggerValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.ParentTriggerValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> RelevanceValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.RelevanceValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<CalculateInfo> CalculateQuestionList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var result = JsonConvert.DeserializeObject<List<CalculateInfo>>(this.CalculateQuestions);
|
||||||
|
return result == null ? new List<CalculateInfo>() : result;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<CalculateInfo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> HighlightAnswerList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var result = JsonConvert.DeserializeObject<List<string>>(this.HighlightAnswer);
|
||||||
|
return result == null ? new List<string>() : result;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
public bool IsAdditional { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -292,112 +392,14 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public QuestionClassify? QuestionClassify { get; set; }
|
public QuestionClassify? QuestionClassify { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("GroupId")]
|
|
||||||
public ReadingQuestionTrial GroupInfo { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 高亮问题的答案
|
/// 高亮问题的答案
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string HighlightAnswer { get; set; } = "[]";
|
public string HighlightAnswer { get; set; } = "[]";
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 分页标准
|
|
||||||
/// </summary>
|
|
||||||
[ForeignKey("ReadingCriterionPageId")]
|
|
||||||
[JsonIgnore]
|
|
||||||
public ReadingCriterionPage ReadingCriterionPage { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ParentId")]
|
|
||||||
public ReadingQuestionTrial ParentReadingQuestionTrial { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("RelevanceId")]
|
|
||||||
public ReadingQuestionTrial RelevanceReadingQuestionTrial { get; set; }
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ReadingQuestionCriterionTrialId")]
|
|
||||||
public ReadingQuestionCriterionTrial ReadingQuestionCriterionTrial { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<ReadingTableQuestionTrial> ReadingTableQuestionTrialList { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> ParentTriggerValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.ParentTriggerValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> RelevanceValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.RelevanceValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<CalculateInfo> CalculateQuestionList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var result = JsonConvert.DeserializeObject<List<CalculateInfo>>(this.CalculateQuestions);
|
|
||||||
return result == null ? new List<CalculateInfo>() : result;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<CalculateInfo>();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> HighlightAnswerList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var result = JsonConvert.DeserializeObject<List<string>>(this.HighlightAnswer);
|
|
||||||
return result == null ? new List<string>() : result;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,15 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///ReadingCriterionDictionary
|
///ReadingCriterionDictionary
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingSystemCriterionDictionary")]
|
[Table("ReadingSystemCriterionDictionary")]
|
||||||
public class ReadingSystemCriterionDictionary : BaseAuditAddEntity
|
public class ReadingSystemCriterionDictionary : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
|
||||||
public Guid CriterionId { get; set; }
|
[JsonIgnore]
|
||||||
|
[ForeignKey("DictionaryId")]
|
||||||
|
public Dictionary Dictionary { get; set; }
|
||||||
|
#endregion
|
||||||
|
public Guid CriterionId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public Guid DictionaryId { get; set; }
|
public Guid DictionaryId { get; set; }
|
||||||
|
@ -37,9 +42,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public CrterionDictionaryGroup CrterionDictionaryGroup { get; set; } = CrterionDictionaryGroup.General;
|
public CrterionDictionaryGroup CrterionDictionaryGroup { get; set; } = CrterionDictionaryGroup.General;
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("DictionaryId")]
|
|
||||||
public Dictionary Dictionary { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,22 +16,59 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
///系统表格问题
|
///系统表格问题
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingTableQuestionSystem")]
|
[Table("ReadingTableQuestionSystem")]
|
||||||
public class ReadingTableQuestionSystem : BaseAuditAddEntity
|
public class ReadingTableQuestionSystem : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
|
#region 导航属性
|
||||||
|
[ForeignKey("DependParentId")]
|
||||||
|
[JsonIgnore]
|
||||||
|
public ReadingTableQuestionSystem DependParentQuestion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
[NotMapped]
|
||||||
/// 系统表的问题Id ReadingQuestionSystem的Id
|
public List<string> ParentTriggerValueList
|
||||||
/// </summary>
|
{
|
||||||
public Guid ReadingQuestionId { get; set; }
|
get
|
||||||
|
{
|
||||||
/// <summary>
|
try
|
||||||
/// Type
|
{
|
||||||
|
return this.ParentTriggerValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> RelevanceValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.RelevanceValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 系统表的问题Id ReadingQuestionSystem的Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
public Guid ReadingQuestionId { get; set; }
|
||||||
|
|
||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ParentId
|
|
||||||
/// </summary>
|
|
||||||
public Guid? ParentId { get; set; }
|
public Guid? ParentId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -64,10 +101,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsEnable { get; set; }
|
public bool IsEnable { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 备注
|
|
||||||
/// </summary>
|
|
||||||
public string Remark { get; set; }
|
public string Remark { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -172,46 +205,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public QuestionClassify? QuestionClassify { get; set; }
|
public QuestionClassify? QuestionClassify { get; set; }
|
||||||
|
|
||||||
[ForeignKey("DependParentId")]
|
|
||||||
[JsonIgnore]
|
|
||||||
public ReadingTableQuestionSystem DependParentQuestion { get; set; }
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> ParentTriggerValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.ParentTriggerValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> RelevanceValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.RelevanceValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,113 +16,125 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// 项目阅片问题
|
/// 项目阅片问题
|
||||||
///</summary>
|
///</summary>
|
||||||
[Table("ReadingTableQuestionTrial")]
|
[Table("ReadingTableQuestionTrial")]
|
||||||
public class ReadingTableQuestionTrial : BaseAuditAddEntity
|
public class ReadingTableQuestionTrial : BaseAddAuditEntity
|
||||||
{
|
{
|
||||||
/// <summary>
|
#region 导航属性
|
||||||
/// TrialId
|
[JsonIgnore]
|
||||||
/// </summary>
|
[ForeignKey("DependParentId")]
|
||||||
public Guid TrialId { get; set; }
|
public ReadingTableQuestionTrial DependParentQuestion { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
[ForeignKey("ReadingQuestionId")]
|
||||||
|
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> ParentTriggerValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.ParentTriggerValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<string> RelevanceValueList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return this.RelevanceValue.Split(',').ToList();
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<string>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public List<CalculateInfo> CalculateQuestionList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var result = JsonConvert.DeserializeObject<List<CalculateInfo>>(this.CalculateQuestions);
|
||||||
|
return result == null ? new List<CalculateInfo>() : result;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
return new List<CalculateInfo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目问题的Id ReadingQuestionTrial的id
|
/// 项目问题的Id ReadingQuestionTrial的id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid ReadingQuestionId { get; set; }
|
public Guid ReadingQuestionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Type
|
|
||||||
/// </summary>
|
|
||||||
public string Type { get; set; } = string.Empty;
|
public string Type { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ParentId
|
|
||||||
/// </summary>
|
|
||||||
public Guid? ParentId { get; set; }
|
public Guid? ParentId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ParentTriggerValue
|
|
||||||
/// </summary>
|
|
||||||
public string ParentTriggerValue { get; set; } = string.Empty;
|
public string ParentTriggerValue { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// QuestionName
|
|
||||||
/// </summary>
|
|
||||||
public string QuestionName { get; set; } = string.Empty;
|
public string QuestionName { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsRequired
|
|
||||||
/// </summary>
|
|
||||||
public IsRequired IsRequired { get; set; }
|
public IsRequired IsRequired { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ShowOrder
|
|
||||||
/// </summary>
|
|
||||||
public int ShowOrder { get; set; }
|
public int ShowOrder { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TypeValue
|
|
||||||
/// </summary>
|
|
||||||
public string TypeValue { get; set; } = string.Empty;
|
public string TypeValue { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsEnable
|
|
||||||
/// </summary>
|
|
||||||
public bool IsEnable { get; set; }
|
public bool IsEnable { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Remark
|
|
||||||
/// </summary>
|
|
||||||
public string Remark { get; set; } = string.Empty;
|
public string Remark { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// RelevanceId
|
|
||||||
/// </summary>
|
|
||||||
public Guid? RelevanceId { get; set; }
|
public Guid? RelevanceId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// RelevanceValue
|
|
||||||
/// </summary>
|
|
||||||
public string RelevanceValue { get; set; } = string.Empty;
|
public string RelevanceValue { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ShowQuestion
|
|
||||||
/// </summary>
|
|
||||||
public int ShowQuestion { get; set; }
|
public int ShowQuestion { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// MaxRowCount
|
|
||||||
/// </summary>
|
|
||||||
public int? MaxRowCount { get; set; }
|
public int? MaxRowCount { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// DataTableName
|
|
||||||
/// </summary>
|
|
||||||
public string DataTableName { get; set; } = string.Empty;
|
public string DataTableName { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// DataTableColumn
|
|
||||||
/// </summary>
|
|
||||||
public string DataTableColumn { get; set; }
|
public string DataTableColumn { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TableQuestionType
|
|
||||||
/// </summary>
|
|
||||||
public TableQuestionType? TableQuestionType { get; set; }
|
public TableQuestionType? TableQuestionType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// DependParentId
|
|
||||||
/// </summary>
|
|
||||||
public Guid? DependParentId { get; set; }
|
public Guid? DependParentId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// IsDepend
|
|
||||||
/// </summary>
|
|
||||||
public IsDepend IsDepend { get; set; }
|
public IsDepend IsDepend { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 项目标准Id
|
|
||||||
/// </summary>
|
|
||||||
public Guid TrialCriterionId { get; set; }
|
public Guid TrialCriterionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -191,13 +203,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public QuestionClassify? QuestionClassify { get; set; }
|
public QuestionClassify? QuestionClassify { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("DependParentId")]
|
|
||||||
public ReadingTableQuestionTrial DependParentQuestion { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
[ForeignKey("ReadingQuestionId")]
|
|
||||||
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 复制病灶的时候 是否复制这个问题
|
/// 复制病灶的时候 是否复制这个问题
|
||||||
|
@ -210,62 +216,6 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid? SystemTableQuestionId { get; set; }
|
public Guid? SystemTableQuestionId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> ParentTriggerValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.ParentTriggerValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<string> RelevanceValueList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return this.RelevanceValue.Split(',').ToList();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<string>();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
public List<CalculateInfo> CalculateQuestionList
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var result = JsonConvert.DeserializeObject<List<CalculateInfo>>(this.CalculateQuestions);
|
|
||||||
return result == null ? new List<CalculateInfo>() : result;
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
return new List<CalculateInfo>();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue