From 9190783ac4e6514a933894d27aa1a64e7230bf1d Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 12 Apr 2024 16:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/QC/DTO/QARecordViewModel.cs | 3 ++- IRaCIS.Core.Application/Service/QC/QCListService.cs | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Application/Service/QC/DTO/QARecordViewModel.cs b/IRaCIS.Core.Application/Service/QC/DTO/QARecordViewModel.cs index b0a7cb843..72234ea6f 100644 --- a/IRaCIS.Core.Application/Service/QC/DTO/QARecordViewModel.cs +++ b/IRaCIS.Core.Application/Service/QC/DTO/QARecordViewModel.cs @@ -256,7 +256,8 @@ namespace IRaCIS.Core.Application.Contracts.DTO public class TrialVisitQADTO { public bool ExistsManual { get; set; } - public SubjectClinicalDataDto SubjectClinicalData { get; set; } = new SubjectClinicalDataDto(); + public bool IsHaveStudyClinicalData { get; set; } + public SubjectClinicalDataDto SubjectClinicalData { get; set; } = new SubjectClinicalDataDto(); public List NoneDicomStudyList { get; set; } = new List(); diff --git a/IRaCIS.Core.Application/Service/QC/QCListService.cs b/IRaCIS.Core.Application/Service/QC/QCListService.cs index b0bbe2682..d2d7dc7b3 100644 --- a/IRaCIS.Core.Application/Service/QC/QCListService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCListService.cs @@ -8,6 +8,7 @@ using IRaCIS.Application.Interfaces; using IRaCIS.Application.Contracts; using IRaCIS.Core.Application.ViewModel; using IRaCIS.Core.Application.Service.Reading.Dto; +using static Org.BouncyCastle.Math.EC.ECCurve; namespace IRaCIS.Core.Application.Image.QA { @@ -613,8 +614,10 @@ namespace IRaCIS.Core.Application.Image.QA return new TrialVisitQADTO { - QCQuestionAnswerList = qacheckList, - StudyList = temp.StudyList, + QCQuestionAnswerList = qacheckList, + + IsHaveStudyClinicalData = await _clinicalDataTrialSetRepository.AnyAsync(x => x.IsConfirm && x.TrialId == sv.TrialId && x.ClinicalDataLevel == ClinicalLevel.Study), + StudyList = temp.StudyList, ExistsManual= (await _IReadingImageTaskService.GetManualList(new GetManualListInDto() { TrialId = sv.TrialId })).Count() > 0, SeriesList = temp.SeriesList, RelationInfo = await GetVisitQCSubjectInfo(subjectVisitId),