From 7f6933df355c5558f264b515aee953fbdc031b6f Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Thu, 4 Sep 2025 13:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B8=E5=9E=8B=E8=82=9D=E5=86=85=E7=97=85?= =?UTF-8?q?=E7=81=B6=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/IRaCIS.Core.Application.xml | 4 ++-- .../ReadingCalculate/MRECISTHCCCalculateService.cs | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index 7ff383dc8..aae0ae1c9 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -938,7 +938,7 @@ InternationalizationService - + InternationalizationService @@ -951,7 +951,7 @@ - 前端批量提交,后端判断不存在就添加,存在就更新 + 前端批量提交,后端查询判断不存在就添加,存在就更新 (这里提交接口也能提交后端的标识,对后端标识进行更新) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs index 1b53e6db3..f2fbfaa25 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs @@ -334,10 +334,20 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate foreach (var item in targetFocusNum) { + // 典型肝内病灶 + var typicalIntrahepaticLesions = tableAnswerList.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.ReadingQuestionTrial.LesionType == lesionType && x.ReadingTableQuestionTrial.QuestionMark == QuestionMark.TypicalIntrahepaticLesion && x.RowIndex == item).Select(x=>x.Answer).FirstIsNullReturnEmpty(); + + var typicalIntrahepaticLesionsText = string.Empty; + if (typicalIntrahepaticLesions == ((int)ReadingYesOrNo.Yes).ToString()) + { + typicalIntrahepaticLesionsText = "\n肝内典型病灶"; + } + + var bodyPartDescription = _generalCalculateService.GetTaskTableAnswer(tableAnswerList, dictionList, unitDictionary, inDto.VisitTaskId, lesionType, QuestionMark.BodyPartDescription, item); Dictionary target = new Dictionary() { - { "RowMark",rowinfoList.Where(x=>x.VisitTaskId == inDto.VisitTaskId &&x.RowIndex==item && x.ReadingQuestionTrial.LesionType == lesionType).Select(x=>x.RowMark).FirstIsNullReturnEmpty() }, + { "RowMark",rowinfoList.Where(x=>x.VisitTaskId == inDto.VisitTaskId &&x.RowIndex==item && x.ReadingQuestionTrial.LesionType == lesionType).Select(x=>x.RowMark).FirstIsNullReturnEmpty() + typicalIntrahepaticLesionsText}, { "Organ",_generalCalculateService.GetTaskTableAnswer(tableAnswerList,dictionList,unitDictionary,inDto.VisitTaskId,lesionType,QuestionMark.Organ,item)+":"+_generalCalculateService.GetTaskTableAnswer(tableAnswerList,dictionList,unitDictionary,inDto.VisitTaskId,lesionType,QuestionMark.Part,item)+ (bodyPartDescription==string.Empty?string.Empty:","+bodyPartDescription) }, { "FirstVisit",getStateInfo(0,item, lesionType) }, { "SecondVisit", relatedCount>=2?getStateInfo(1,item,lesionType):string.Empty },