diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs index d8ab9400e..027d28283 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs @@ -1350,6 +1350,10 @@ namespace IRaCIS.Core.Application.Service } + var isHaveBindingQuestion=(await _readingQuestionTrialRepository.AnyAsync(x=>x.ReadingQuestionCriterionTrialId==taskInfo.TrialReadingCriterionId&&x.ImageToolAttribute.IsNotNullOrEmpty())) + + || (await _readingTableQuestionTrialRepository.AnyAsync(x=>x.ReadingQuestionTrial.ReadingQuestionCriterionTrialId == taskInfo.TrialReadingCriterionId && x.ImageToolAttribute.IsNotNullOrEmpty())); + return (await GetReadingTableQuestion( new GetReadingTableQuestionOrAnswerInDto() { @@ -1364,6 +1368,7 @@ namespace IRaCIS.Core.Application.Service } ), new { + IsHaveBindingQuestion= isHaveBindingQuestion, IsBaseline = taskInfo.SourceSubjectVisit != null && taskInfo.SourceSubjectVisit.IsBaseLine, ReadingTaskState = taskInfo.ReadingTaskState, QuestionMarkInfoList = tableQuestionMarkList,