From 84c5cdeca73298ac5bfcf0feecea38bf121f3e22 Mon Sep 17 00:00:00 2001
From: he <10978375@qq.com>
Date: Thu, 26 Oct 2023 14:06:47 +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
---
.../LuganoCalculateService.cs | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoCalculateService.cs
index 025b4dcc7..eaca7424d 100644
--- a/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoCalculateService.cs
+++ b/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoCalculateService.cs
@@ -514,6 +514,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
// FDG-PET 评估结果
new ReadingCalculateData (){QuestionType=QuestionType.FDGPET,GetStringFun=GetFDGPETOverallAssessment},
+ // 上一次 FDG-PET 评估结果
+ new ReadingCalculateData (){QuestionType=QuestionType.LastFDGPET,GetStringFun=GetLastFDGPETOverallAssessment},
+
// 影像学整体肿瘤评估
new ReadingCalculateData (){QuestionType=QuestionType.ImgOncology,GetStringFun=GetImgOncology},
@@ -2037,6 +2040,25 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
}
#endregion
+ ///
+ /// 获取上一次FDGPET 评估
+ ///
+ ///
+ ///
+ public async Task GetLastFDGPETOverallAssessment(ReadingCalculateDto inDto)
+ {
+ if (inDto.IsBaseLine)
+ {
+ return string.Empty;
+ }
+
+ var lastTaskId = await GetLastVisitTaskId(inDto);
+
+
+ var answer =await _readingTaskQuestionAnswerRepository.Where(x => x.VisitTaskId == lastTaskId).Include(x => x.ReadingQuestionTrial).Where(x => x.ReadingQuestionTrial.QuestionType == QuestionType.FDGPET).Select(x => x.Answer).FirstOrDefaultAsync();
+ return answer;
+ }
+
#region FDG-PET总体评估结果
///