修改 trila subjectVisit
parent
545c04e5db
commit
6d7fcbb726
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
||||||
<Using Include="IRaCIS.Core.Application;" />
|
<Using Include="IRaCIS.Core.Application;" />
|
||||||
<Using Include="AutoMapper.QueryableExtensions;" />
|
<Using Include="AutoMapper.QueryableExtensions;" />
|
||||||
<Using Include="Microsoft.EntityFrameworkCore;" />
|
<Using Include="Microsoft.EntityFrameworkCore;" />
|
||||||
<Using Include="IRaCIS.Core.Domain.Models;" />
|
<Using Include="IRaCIS.Core.Domain.Models;" />
|
||||||
|
|
|
@ -96,24 +96,24 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
//public List<VisitTask> SameSubjectVisiTaskList { get; set; }
|
//public List<VisitTask> SameSubjectVisiTaskList { get; set; }
|
||||||
|
|
||||||
public TaskConsistentRule TaskConsistentRule { get; set; }
|
|
||||||
|
|
||||||
//public TaskAllocationRule DoctorTaskAllocationRule { get; set; }
|
//public TaskAllocationRule DoctorTaskAllocationRule { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public TaskMedicalReviewRule DoctorTaskMedicalReviewRule { get; set; }
|
public TaskMedicalReviewRule DoctorTaskMedicalReviewRule { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("JudgeVisitTaskId")]
|
[ForeignKey("JudgeVisitTaskId")]
|
||||||
public VisitTask JudgeVisitTask { get; set; }
|
public VisitTask JudgeVisitTask { get; set; }
|
||||||
|
|
||||||
//public SubjectUser SujectArm { get; set; }
|
//public SubjectUser SujectArm { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public Subject Subject { get; set; }
|
public Subject Subject { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public List<TaskMedicalReview> TaskMedicalReviewList { get; set; }
|
public List<TaskMedicalReview> TaskMedicalReviewList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
#region 裁判任务特有
|
#region 裁判任务特有
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
//对于裁判任务而言,触发裁判的列表
|
//对于裁判任务而言,触发裁判的列表
|
||||||
public List<VisitTask> JudgeVisitList { get; set; }
|
public List<VisitTask> JudgeVisitList { get; set; }
|
||||||
|
|
||||||
|
@ -209,11 +209,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public List<ReadingTaskQuestionAnswer> ReadingTaskQuestionAnswerList { get; set; } = new List<ReadingTaskQuestionAnswer>();
|
public List<ReadingTaskQuestionAnswer> ReadingTaskQuestionAnswerList { get; set; } = new List<ReadingTaskQuestionAnswer>();
|
||||||
|
|
||||||
|
|
||||||
//重阅或者退回影像的记录中间表
|
//重阅或者退回影像的记录中间表
|
||||||
|
[JsonIgnore]
|
||||||
public List<TaskInfluence> TaskInfluenceList { get; set; } = new List<TaskInfluence>();
|
public List<TaskInfluence> TaskInfluenceList { get; set; } = new List<TaskInfluence>();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,4 +24,11 @@
|
||||||
<Folder Include="SQLFile\" />
|
<Folder Include="SQLFile\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Using Include=" Newtonsoft.Json;" />
|
||||||
|
<!-- Global using -->
|
||||||
|
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -16,28 +16,35 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
TrialDicList = new List<TrialDictionary>();
|
TrialDicList = new List<TrialDictionary>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public List<TaskConsistentRule> TaskConsistentRuleList { get; set; }
|
public List<TaskConsistentRule> TaskConsistentRuleList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public List<SubjectUser> SubjectDoctorUserList { get; set; } = new List<SubjectUser>();
|
public List<SubjectUser> SubjectDoctorUserList { get; set; } = new List<SubjectUser>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<VisitTask> VisitTaskList { get; set; } = new List<VisitTask>() { };
|
public List<VisitTask> VisitTaskList { get; set; } = new List<VisitTask>() { };
|
||||||
|
[JsonIgnore]
|
||||||
public List<TrialSiteSurvey> TrialSiteSurveyList { get; set; } = new List<TrialSiteSurvey>();
|
public List<TrialSiteSurvey> TrialSiteSurveyList { get; set; } = new List<TrialSiteSurvey>();
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public List<TrialDocument> TrialDocumentList { get; set; }
|
public List<TrialDocument> TrialDocumentList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public List<Enroll> EnrollList { get; set; } = new List<Enroll>();
|
public List<Enroll> EnrollList { get; set; } = new List<Enroll>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<Workload> WorkloadList { get; set; } = new List<Workload>();
|
public List<Workload> WorkloadList { get; set; } = new List<Workload>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<TrialUser> TrialUserList { get; set; } = new List<TrialUser>();
|
public List<TrialUser> TrialUserList { get; set; } = new List<TrialUser>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<ReadingQuestionCriterionTrial> ReadingQuestionCriterionTrialList { get; set; } = new List<ReadingQuestionCriterionTrial>();
|
public List<ReadingQuestionCriterionTrial> ReadingQuestionCriterionTrialList { get; set; } = new List<ReadingQuestionCriterionTrial>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<Subject> SubjectList { get; set; } = new List<Subject>();
|
public List<Subject> SubjectList { get; set; } = new List<Subject>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<DicomStudy> StudyList { get; set; } = new List<DicomStudy>();
|
public List<DicomStudy> StudyList { get; set; } = new List<DicomStudy>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<TrialSite> TrialSiteList { get; set; } = new List<TrialSite>();
|
public List<TrialSite> TrialSiteList { get; set; } = new List<TrialSite>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<TrialSiteUser> TrialSiteUserList { get; set; } = new List<TrialSiteUser>();
|
public List<TrialSiteUser> TrialSiteUserList { get; set; } = new List<TrialSiteUser>();
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("DeclarationTypeId")]
|
[ForeignKey("DeclarationTypeId")]
|
||||||
public Dictionary DeclarationType { get; set; }
|
public Dictionary DeclarationType { get; set; }
|
||||||
|
|
||||||
|
@ -46,29 +53,30 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public Guid IndicationTypeId { get; set; } = Guid.Empty;
|
public Guid IndicationTypeId { get; set; } = Guid.Empty;
|
||||||
public Guid? PhaseId { get; set; } = Guid.Empty;
|
public Guid? PhaseId { get; set; } = Guid.Empty;
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("IndicationTypeId")]
|
[ForeignKey("IndicationTypeId")]
|
||||||
public Dictionary IndicationType { get; set; }
|
public Dictionary IndicationType { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("PhaseId")]
|
[ForeignKey("PhaseId")]
|
||||||
public Dictionary Phase { get; set; }
|
public Dictionary Phase { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("SponsorId")]
|
[ForeignKey("SponsorId")]
|
||||||
public Sponsor Sponsor { get; set; }
|
public Sponsor Sponsor { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("CROId")]
|
[ForeignKey("CROId")]
|
||||||
public CRO CRO { get; set; }
|
public CRO CRO { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("ReviewModeId")]
|
[ForeignKey("ReviewModeId")]
|
||||||
public Dictionary ReviewMode { get; set; }
|
public Dictionary ReviewMode { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
|
||||||
public List<ClinicalDataTrialSet> clinicalDataTrialSets { get; set; } = new List<ClinicalDataTrialSet> { };
|
public List<ClinicalDataTrialSet> clinicalDataTrialSets { get; set; } = new List<ClinicalDataTrialSet> { };
|
||||||
|
[JsonIgnore]
|
||||||
public virtual ICollection<TrialStatusDetail> ClinicalTrialProjectDetails { get; set; }
|
public virtual ICollection<TrialStatusDetail> ClinicalTrialProjectDetails { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public virtual ICollection<TrialDictionary> TrialDicList { get; set; }
|
public virtual ICollection<TrialDictionary> TrialDicList { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,7 +98,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
[StringLength(500)]
|
[StringLength(500)]
|
||||||
public string TrialStatusStr { get; set; } = StaticData.TrialState.TrialInitializing;
|
public string TrialStatusStr { get; set; } = StaticData.TrialState.TrialInitializing;
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public List<TrialStateChange> TrialStateChangeList { get; set; } = new List<TrialStateChange>();
|
public List<TrialStateChange> TrialStateChangeList { get; set; } = new List<TrialStateChange>();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,12 +10,13 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public class SubjectVisit : Entity, IAuditUpdate, IAuditAdd, ISoftDelete
|
public class SubjectVisit : Entity, IAuditUpdate, IAuditAdd, ISoftDelete
|
||||||
{
|
{
|
||||||
//一个访视 对应有对应Site的 TrialSiteCode 所以 fluentApi中配置 TrialSite 连表用TrialId SiteId 双字段
|
//一个访视 对应有对应Site的 TrialSiteCode 所以 fluentApi中配置 TrialSite 连表用TrialId SiteId 双字段
|
||||||
|
[JsonIgnore]
|
||||||
public TrialSite TrialSite { get; set; }
|
public TrialSite TrialSite { get; set; }
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
public Guid SiteId { get; set; }
|
public Guid SiteId { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public VisitStage VisitStage { get; set; }
|
public VisitStage VisitStage { get; set; }
|
||||||
public Guid? VisitStageId { get; set; }
|
public Guid? VisitStageId { get; set; }
|
||||||
public int VisitDay { get; set; }
|
public int VisitDay { get; set; }
|
||||||
|
@ -118,6 +119,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid? OutPlanPreviousVisitId { get; set; }
|
public Guid? OutPlanPreviousVisitId { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("OutPlanPreviousVisitId")]
|
[ForeignKey("OutPlanPreviousVisitId")]
|
||||||
public SubjectVisit OutPlanPreviousVisit { get; set; }
|
public SubjectVisit OutPlanPreviousVisit { get; set; }
|
||||||
|
|
||||||
|
@ -125,6 +127,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
//public DateTime? ClinicalDataSignTime { get; set; }
|
//public DateTime? ClinicalDataSignTime { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("ClinicalDataSignUserId")]
|
[ForeignKey("ClinicalDataSignUserId")]
|
||||||
public User ClinicalDataSignUser { get; set; }
|
public User ClinicalDataSignUser { get; set; }
|
||||||
|
|
||||||
|
@ -132,12 +135,15 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
public User ForwardUser { get; set; }
|
public User ForwardUser { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("PreliminaryAuditUserId")]
|
[ForeignKey("PreliminaryAuditUserId")]
|
||||||
public User PreliminaryAuditUser { get; set; }
|
public User PreliminaryAuditUser { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("ReviewAuditUserId")]
|
[ForeignKey("ReviewAuditUserId")]
|
||||||
public User ReviewAuditUser { get; set; }
|
public User ReviewAuditUser { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("CurrentActionUserId")]
|
[ForeignKey("CurrentActionUserId")]
|
||||||
public User CurrentActionUser { get; set; }
|
public User CurrentActionUser { get; set; }
|
||||||
|
|
||||||
|
@ -172,12 +178,15 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
|
|
||||||
//导航属性
|
//导航属性
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("TrialId")]
|
[ForeignKey("TrialId")]
|
||||||
public Trial Trial { get; set; }
|
public Trial Trial { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("SiteId")]
|
[ForeignKey("SiteId")]
|
||||||
public Site Site { get; set; }
|
public Site Site { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
[ForeignKey("SubjectId")]
|
[ForeignKey("SubjectId")]
|
||||||
public Subject Subject { get; set; }
|
public Subject Subject { get; set; }
|
||||||
|
|
||||||
|
@ -188,28 +197,28 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
////一个访视 对应该Site下的多个CRC管理 必须加这个 不然生成的sql 会报 TrialSiteUserId 不存在该列名
|
////一个访视 对应该Site下的多个CRC管理 必须加这个 不然生成的sql 会报 TrialSiteUserId 不存在该列名
|
||||||
|
|
||||||
//public List<TrialSiteUser> TrialSiteUserList { get; set; }
|
//public List<TrialSiteUser> TrialSiteUserList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public List<PreviousHistory> PreviousHistoryList { get; set; }
|
public List<PreviousHistory> PreviousHistoryList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public List<PreviousOther> PreviousOtherList { get; set; }
|
public List<PreviousOther> PreviousOtherList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public List<PreviousSurgery> PreviousSurgeryList { get; set; }
|
public List<PreviousSurgery> PreviousSurgeryList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public List<PreviousPDF> PreviousPDFList { get; set; }
|
public List<PreviousPDF> PreviousPDFList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public List<ReadingClinicalData> ReadingClinicalDataList { get; set; }
|
public List<ReadingClinicalData> ReadingClinicalDataList { get; set; }
|
||||||
|
[JsonIgnore]
|
||||||
public List<CheckChallengeDialog> CheckChallengeDialogList { get; set; } = new List<CheckChallengeDialog>();
|
public List<CheckChallengeDialog> CheckChallengeDialogList { get; set; } = new List<CheckChallengeDialog>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<DicomStudy> StudyList { get; set; } = new List<DicomStudy>();
|
public List<DicomStudy> StudyList { get; set; } = new List<DicomStudy>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<NoneDicomStudy> NoneDicomStudyList { get; set; } = new List<NoneDicomStudy>();
|
public List<NoneDicomStudy> NoneDicomStudyList { get; set; } = new List<NoneDicomStudy>();
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public List<QCChallenge> QCChallengeList { get; set; } = new List<QCChallenge>();
|
public List<QCChallenge> QCChallengeList { get; set; } = new List<QCChallenge>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<QCChallengeDialog> QCChallengeDialogList { get; set; } = new List<QCChallengeDialog>();
|
public List<QCChallengeDialog> QCChallengeDialogList { get; set; } = new List<QCChallengeDialog>();
|
||||||
|
[JsonIgnore]
|
||||||
public List<VisitTask> VisitTaskList { get; set; } = new List<VisitTask>();
|
public List<VisitTask> VisitTaskList { get; set; } = new List<VisitTask>();
|
||||||
|
|
||||||
public ReadingStatusEnum ReadingStatus { get; set; }
|
public ReadingStatusEnum ReadingStatus { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue