From 0b7878b1c60437492b7089e3bcf27f28cc6b95c7 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Tue, 16 May 2023 18:05:02 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRECIST1Point1CalculateService.cs | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs index 425327950..4471b153b 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs @@ -2539,7 +2539,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate /// { /// 疗效为 iUPD /// } - /// else if ((靶病灶评估为iCR || 非靶病灶评估为iCR) && 新病灶评估为ND) + /// else if ((靶病灶评估为iCR && 非靶病灶评估为iCR && 新病灶评估为ND) && (靶病灶评估为ND && 非靶病灶评估为iCR && 新病灶评估为ND) && (靶病灶评估为iCR && 非靶病灶评估为ND && 新病灶评估为ND)) /// { /// 疗效为 iCR /// } @@ -2638,14 +2638,26 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate // 疗效为 iUPD result = OverallAssessment.iUPD; } - // else if ((靶病灶评估为iCR||靶病灶评估为ND) && (非靶病灶评估为iCR||非靶病灶评估为ND)) && 新病灶评估为ND) - else if (((inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.TargetLesion && x.Answer.EqEnum(TargetAssessment.iCR)) - || inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.TargetLesion && x.Answer.EqEnum(TargetAssessment.ND)) ) - && - (inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NoTargetLesion && x.Answer.EqEnum(NoTargetAssessment.iCR)) - || inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NoTargetLesion && x.Answer.EqEnum(NoTargetAssessment.ND)) - )) - && inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NewLesionEvaluation && x.Answer.EqEnum(NewLesionAssessment.ND)) + // + // else if ((靶病灶评估为iCR && 非靶病灶评估为iCR && 新病灶评估为ND) && (靶病灶评估为ND && 非靶病灶评估为iCR && 新病灶评估为ND) && (靶病灶评估为iCR && 非靶病灶评估为ND && 新病灶评估为ND)) + else if ( + + (inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.TargetLesion && x.Answer.EqEnum(TargetAssessment.iCR)) + && inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NoTargetLesion && x.Answer.EqEnum(NoTargetAssessment.iCR)) + && inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NewLesionEvaluation && x.Answer.EqEnum(NewLesionAssessment.ND)) + ) + || + + (inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.TargetLesion && x.Answer.EqEnum(TargetAssessment.ND)) + && inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NoTargetLesion && x.Answer.EqEnum(NoTargetAssessment.iCR)) + && inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NewLesionEvaluation && x.Answer.EqEnum(NewLesionAssessment.ND)) + ) + || + + (inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.TargetLesion && x.Answer.EqEnum(TargetAssessment.iCR)) + && inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NoTargetLesion && x.Answer.EqEnum(NoTargetAssessment.ND)) + && inDto.QuestionInfo.Any(x => x.QuestionType == QuestionType.NewLesionEvaluation && x.Answer.EqEnum(NewLesionAssessment.ND)) + ) ) { // 疗效为 iCR From 36576d193628c02252c35796ff84ed21752ab37c Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 17 May 2023 13:40:10 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRaCIS.Core.Application.xml | 10 ++++++ .../Reading/Dto/ReadingImageTaskViewModel.cs | 15 ++++++++- .../ReadingImageTaskService.cs | 33 +++++++++++++++++++ .../General/GeneralCalculateService.cs | 2 +- .../General/ReadingCalculateService.cs | 4 +-- .../IRECIST1Point1CalculateService.cs | 4 +-- .../Interface/ICriterionCalculateService.cs | 2 +- .../Interface/IReadingCalculateService.cs | 2 +- .../ReadingCalculate/PCWG3CalculateService.cs | 4 +-- .../RECIST1Point1CalculateService.cs | 4 +-- .../RECIST1Point1_BMCalculateService.cs | 4 +-- .../SelfDefineCalculateService.cs | 4 +-- IRaCIS.Core.Domain/Allocation/VisitTask.cs | 4 +++ 13 files changed, 76 insertions(+), 16 deletions(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index b336482c7..d09adad8e 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -3834,6 +3834,16 @@ 字典code + + + 是否存在疾病 + + + + + 整体肿瘤评估 + + 任务Id diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs index 4530544ce..6fb1dca6e 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs @@ -176,7 +176,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public object ReportCalculateResult{ get; set; } - public object CalculateResult { get; set; } + public GetReportVerifyOutDto CalculateResult { get; set; } public ReadingTaskState ReadingTaskState { get; set; } public List VisitTaskList { get; set; } @@ -1687,6 +1687,19 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public Func> Fun { get; set; } } + public class GetReportVerifyOutDto + { + /// + /// 是否存在疾病 + /// + public string? IsExistDisease { get; set; } + + /// + /// 整体肿瘤评估 + /// + public string? TumorEvaluate { get; set; } + } + public class GetReportVerifyInDto { public Guid VisitTaskId { get; set; } diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs index 151e25924..d985796c8 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs @@ -1406,7 +1406,40 @@ namespace IRaCIS.Application.Services public async Task ChangeDicomReadingQuestionAnswer(ChangeDicomReadingQuestionAnswerInDto inDto) { await VerifyTaskIsSign(inDto.VisitTaskId); + + + var taskInfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).FirstNotNullAsync(); + + var tumorQuestionId = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == taskInfo.TrialReadingCriterionId && x.QuestionType == QuestionType.Tumor).Select(x => x.Id).FirstOrDefaultAsync(); + + var tumorAnswer = inDto.Answers.Where(x => x.Id == tumorQuestionId).FirstOrDefault(); + if (tumorAnswer != null) + { + var isConvertedTask = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Select(x => x.IsConvertedTask).FirstOrDefaultAsync(); + var reportVerify = await _readingCalculateService.GetReportVerify(new GetReportVerifyInDto() { + BeforeConvertedTaskId= taskInfo.BeforeConvertedTaskId, + IsConvertTask= isConvertedTask, + VisitTaskId=inDto.VisitTaskId + }); + + if (tumorAnswer.Answer == reportVerify.TumorEvaluate) + { + await _visitTaskRepository.BatchUpdateNoTrackingAsync(x => x.Id == inDto.VisitTaskId, x => new VisitTask() + { + IsChangeTumorEvaluate = false + }); + } + else + { + await _visitTaskRepository.BatchUpdateNoTrackingAsync(x => x.Id == inDto.VisitTaskId, x => new VisitTask() + { + IsChangeTumorEvaluate = true + }); + } + } + + var criterionId = taskInfo.TrialReadingCriterionId; var questionIds = inDto.Answers.Select(x => x.Id).ToList(); await _readingTaskQuestionAnswerRepository.BatchDeleteNoTrackingAsync(x => x.VisitTaskId == inDto.VisitTaskId && questionIds.Contains(x.ReadingQuestionTrialId)); diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs index 6fffbc2b4..44a48cfa5 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs @@ -155,7 +155,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate { var originalTask = await _visitTaskRepository.Where(x => x.Id == visitTaskId).Include(x => x.TrialReadingCriterion).FirstNotNullAsync(); - var taskAnswer = await _readingTaskQuestionAnswerRepository.Where(x => x.VisitTaskId == beforeConvertedTaskId && x.ReadingQuestionTrial.Type != "calculation").IgnoreAutoIncludes().AsNoTracking().ToListAsync(); + var taskAnswer = await _readingTaskQuestionAnswerRepository.Where(x => x.VisitTaskId == beforeConvertedTaskId &&x.ReadingQuestionTrial.QuestionType!=QuestionType.AdjustReason && x.ReadingQuestionTrial.Type != "calculation").IgnoreAutoIncludes().AsNoTracking().ToListAsync(); taskAnswer.ForEach(x => { diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/General/ReadingCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/General/ReadingCalculateService.cs index 91e3c1ede..6b37448c4 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/General/ReadingCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/General/ReadingCalculateService.cs @@ -162,7 +162,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate /// /// /// - public async Task GetReportVerify(GetReportVerifyInDto inDto) + public async Task GetReportVerify(GetReportVerifyInDto inDto) { var service = await this.GetService(inDto.VisitTaskId); @@ -173,7 +173,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate } else { - return new { }; + return new GetReportVerifyOutDto() { }; } } diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs index 4471b153b..319964f68 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs @@ -409,7 +409,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate /// /// /// - public async Task GetReportVerify(GetReportVerifyInDto inDto) + public async Task GetReportVerify(GetReportVerifyInDto inDto) { var tumorEvaluate = string.Empty; var readingCalculateDto= await _generalCalculateService.GetReadingCalculateDto(inDto.VisitTaskId); @@ -428,7 +428,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate tumorEvaluate = await GetIRECSITTargetLesionEvaluate(readingCalculateDto); } - return new + return new GetReportVerifyOutDto() { TumorEvaluate = tumorEvaluate, IsExistDisease = await this.GetReportIsExistDisease(inDto.VisitTaskId), diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/Interface/ICriterionCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/Interface/ICriterionCalculateService.cs index bda18fd44..8405d7aeb 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/Interface/ICriterionCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/Interface/ICriterionCalculateService.cs @@ -37,7 +37,7 @@ namespace IRaCIS.Core.Application.Service /// /// /// - Task GetReportVerify(GetReportVerifyInDto inDto); + Task GetReportVerify(GetReportVerifyInDto inDto); /// /// 获取阅片报告 diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/Interface/IReadingCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/Interface/IReadingCalculateService.cs index ffe22c606..0aad0c08c 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/Interface/IReadingCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/Interface/IReadingCalculateService.cs @@ -36,7 +36,7 @@ namespace IRaCIS.Core.Application.Service /// /// /// - Task GetReportVerify(GetReportVerifyInDto inDto); + Task GetReportVerify(GetReportVerifyInDto inDto); /// /// 获取阅片报告 diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/PCWG3CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/PCWG3CalculateService.cs index 1c12533a1..845f43f6e 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/PCWG3CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/PCWG3CalculateService.cs @@ -1018,9 +1018,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate } - public async Task GetReportVerify(GetReportVerifyInDto inDto) + public async Task GetReportVerify(GetReportVerifyInDto inDto) { - return new() { + return new GetReportVerifyOutDto() { }; } diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/RECIST1Point1CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/RECIST1Point1CalculateService.cs index a17147ac7..85eee1514 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/RECIST1Point1CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/RECIST1Point1CalculateService.cs @@ -371,9 +371,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate /// /// /// - public async Task GetReportVerify(GetReportVerifyInDto inDto) + public async Task GetReportVerify(GetReportVerifyInDto inDto) { - return new + return new GetReportVerifyOutDto() { TumorEvaluate = await this.GetReportTumor(inDto.VisitTaskId), IsExistDisease = await this.GetReportIsExistDisease(inDto.VisitTaskId), diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/RECIST1Point1_BMCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/RECIST1Point1_BMCalculateService.cs index 72b331209..3fd7eecc2 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/RECIST1Point1_BMCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/RECIST1Point1_BMCalculateService.cs @@ -367,9 +367,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate /// /// /// - public async Task GetReportVerify(GetReportVerifyInDto inDto) + public async Task GetReportVerify(GetReportVerifyInDto inDto) { - return new + return new GetReportVerifyOutDto() { TumorEvaluate = await this.GetReportTumor(inDto.VisitTaskId), IsExistDisease = await this.GetReportIsExistDisease(inDto.VisitTaskId), diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/SelfDefineCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/SelfDefineCalculateService.cs index d6ed8fe62..e0b34c9fa 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/SelfDefineCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/SelfDefineCalculateService.cs @@ -506,9 +506,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate - public async Task GetReportVerify(GetReportVerifyInDto inDto) + public async Task GetReportVerify(GetReportVerifyInDto inDto) { - return new() { + return new GetReportVerifyOutDto() { }; } diff --git a/IRaCIS.Core.Domain/Allocation/VisitTask.cs b/IRaCIS.Core.Domain/Allocation/VisitTask.cs index 1f4ebc15f..73daba8ce 100644 --- a/IRaCIS.Core.Domain/Allocation/VisitTask.cs +++ b/IRaCIS.Core.Domain/Allocation/VisitTask.cs @@ -335,6 +335,10 @@ namespace IRaCIS.Core.Domain.Models ).Any(); + /// + /// 是否修改了整体肿瘤评估 + /// + public bool IsChangeTumorEvaluate { get; set; } = false; /// From a3c471de38cdf712f8e027becb0215d8325bfeda Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 17 May 2023 13:56:56 +0800 Subject: [PATCH 3/7] =?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/ReadingCalculate/IRECIST1Point1CalculateService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs index 319964f68..0f73ee0ae 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs @@ -1337,7 +1337,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate /// public async Task GetiSODData(ReadingCalculateDto inDto) { - if (!inDto.IsConvertedTask || inDto.BeforeConvertedTaskId != null) + if (!inDto.IsConvertedTask) { return null; } From b95592db96665bac9344fd83d3be312fb870f291 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 17 May 2023 14:18:54 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReadingImageTask/ReadingImageTaskService.cs | 12 ++++++------ .../IRECIST1Point1CalculateService.cs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs index d985796c8..868d95cf3 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs @@ -76,13 +76,13 @@ namespace IRaCIS.Application.Services IRepository subjectRepository, IRepository readingGlobalTaskInfoRepository, IRepository readingCriterionPageRepository, - IRepository readingTaskRelationRepository, + IRepository readingTaskRelationRepository, IRepository readingJudgeInfoRepository, IRepository readModuleRepository, IRepository dicomInstanceRepository, - IRepository organInfoRepository, - IRepository trialDocumentRepository, - IRepository userRepository, + IRepository organInfoRepository, + IRepository trialDocumentRepository, + IRepository userRepository, IMemoryCache cache, IRepository readingCriterionDictionaryRepository, IRepository readingTrialCriterionDictionaryRepository, @@ -94,8 +94,8 @@ namespace IRaCIS.Application.Services IRepository readingQuestionCriterionTrialRepository, IRepository readingQuestionCriterionSystemRepository, IRepository ReadingQuestionSystem, - ITrialEmailNoticeConfigService trialEmailNoticeConfigService, - IRepository noneDicomStudyFileSystem, + ITrialEmailNoticeConfigService trialEmailNoticeConfigService, + IRepository noneDicomStudyFileSystem, IRepository readingQuestionTrialRepository ) { diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs index 0f73ee0ae..f8faee726 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs @@ -1320,7 +1320,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate var value = await GetSODData(inDto); - if (value == null || inDto.IsBaseLine || !inDto.IsConvertedTask||inDto.BeforeConvertedTaskId!=null) + if (value == null || inDto.IsBaseLine ) { return null; } From 559b18ff5af55ad76b0848f74d7cd554bfbc5ced Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 17 May 2023 14:47:57 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IRECIST1Point1CalculateService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs index f8faee726..9ef45fbfd 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs @@ -1815,11 +1815,11 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate /// { /// 非靶病灶疗效为 ND /// } - /// else if (上次非靶病灶评估结果为非iUPD && (任一非靶病灶状态评估为“进一步增大(iCPD)||出现至少1个上一访视未评估为“显著增大(iUPD)”的病灶本次访视评估为“显著增大(iUPD)”)) + /// else if (上次非靶病灶评估结果为iUPD && (任一非靶病灶状态评估为“进一步增大(iCPD)||出现至少1个上一访视未评估为“显著增大(iUPD)”的病灶本次访视评估为“显著增大(iUPD)”)) /// { /// 非靶病灶疗效为 iCPD /// } - /// else if (上次非靶病灶评估结果为非iCPD && 任一非靶病灶状态评估为“进一步增大(iCPD)”或“显著增大(iUPD)”) + /// else if (上次非靶病灶评估结果为iCPD && 任一非靶病灶状态评估为“进一步增大(iCPD)”或“显著增大(iUPD)”) /// { /// 非靶病灶疗效为 iCPD /// } @@ -1897,14 +1897,14 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate // 非靶病灶疗效为 ND result = NoTargetAssessment.ND; } - // else if (上次非靶病灶评估结果为非iUPD && (任一非靶病灶状态评估为“进一步增大(iCPD)||出现至少1个上一访视未评估为“显著增大(iUPD)”的病灶本次访视评估为“显著增大(iUPD)”)) - else if (!data.LastNoTargetLesion.EqEnum(NoTargetAssessment.iUPD) && (data.ExistiCPD || data.LastNoUPD)) + // else if (上次非靶病灶评估结果为iUPD && (任一非靶病灶状态评估为“进一步增大(iCPD)||出现至少1个上一访视未评估为“显著增大(iUPD)”的病灶本次访视评估为“显著增大(iUPD)”)) + else if (data.LastNoTargetLesion.EqEnum(NoTargetAssessment.iUPD) && (data.ExistiCPD || data.LastNoUPD)) { // 非靶病灶疗效为 iCPD result = NoTargetAssessment.iCPD; } - // else if (上次非靶病灶评估结果为非iCPD && 任一非靶病灶状态评估为“进一步增大(iCPD)”或“显著增大(iUPD)”) - else if (!data.LastNoTargetLesion.EqEnum(NoTargetAssessment.iCPD) && (data.ExistiCPD || data.ExistiUPD)) + // else if (上次非靶病灶评估结果为iCPD && 任一非靶病灶状态评估为“进一步增大(iCPD)”或“显著增大(iUPD)”) + else if (data.LastNoTargetLesion.EqEnum(NoTargetAssessment.iCPD) && (data.ExistiCPD || data.ExistiUPD)) { // 非靶病灶疗效为 iCPD result = NoTargetAssessment.iCPD; From f8a5e753dae3000cdbb3ec4b9078caaad72b2b32 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 17 May 2023 15:19:26 +0800 Subject: [PATCH 6/7] =?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/ReadingCalculate/IRECIST1Point1CalculateService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs index 9ef45fbfd..eafe49e6e 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/IRECIST1Point1CalculateService.cs @@ -575,6 +575,8 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate List questionTypes = new List() { + QuestionType.ISOD, + QuestionType.LastVisitiSODChange, QuestionType.TargetLesion, QuestionType.NoTargetLesion, QuestionType.NewLesions, From 2a0b21c8b1ab31f7f524cede799348ed14bf119f Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 17 May 2023 18:11:49 +0800 Subject: [PATCH 7/7] =?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/ReadingCalculate/General/GeneralCalculateService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs index 44a48cfa5..1450d38d5 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/General/GeneralCalculateService.cs @@ -171,7 +171,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate { x.VisitTaskId = visitTaskId; x.IsCurrentTaskAdd = false; - x.FristAddTaskId = visitTaskId; + //x.FristAddTaskId = visitTaskId; x.Id = NewId.NextGuid(); });