From 8bc0cee81ffab771e3af8b8cf3e57e58e18a0d9d Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 8 Apr 2024 17:25:08 +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 --- .../IRaCIS.Core.Application.xml | 12 +++++ .../LuganoCalculateService.cs | 41 +++++++++++---- IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs | 52 +++++++++++++++++-- 3 files changed, 92 insertions(+), 13 deletions(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index 302b2bed9..7d3d1cd21 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -1761,6 +1761,11 @@ 基线任务Id + + + 影像是否无法融合 + + 删除病灶获取起始病灶序号(RECIST1Point1 固定是1) @@ -1811,6 +1816,13 @@ + + + 获取影像是否无法融合 + + + + 获取报告整体整体评估 diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoCalculateService.cs index 3c40540ca..bce37b092 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/LuganoCalculateService.cs @@ -111,7 +111,13 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate /// private Guid? BaseLineTaskId; - private string nAString = "NA"; + /// + /// 影像是否无法融合 + /// + private bool? isUnableFuse; + + + private string nAString = "NA"; #endregion #region 删除病灶获取起始病灶序号 @@ -767,13 +773,32 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate } + /// + /// 获取影像是否无法融合 + /// + /// + /// + public async Task ImageQualityIsUnableFuse(ReadingCalculateDto inDto) + { + if (isUnableFuse != null) + { + return isUnableFuse.Value; + } + else + { + var imageQualityProblem = inDto.QuestionInfo.Where(x => x.QuestionType == QuestionType.ImageQualityProblem).Select(x => x.Answer).FirstOrDefault(); + isUnableFuse = imageQualityProblem == ((int)ImageQualityIssues.PETCTFailureFuse).ToString(); + return isUnableFuse.Value; + } - /// - /// 获取报告整体整体评估 - /// - /// - /// - public async Task GetReportTumor(Guid visitTaskId) + } + + /// + /// 获取报告整体整体评估 + /// + /// + /// + public async Task GetReportTumor(Guid visitTaskId) { return await GetTumor(await _generalCalculateService.GetReadingCalculateDto(visitTaskId)); } @@ -2428,11 +2453,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate //无需标记,自主选择 else { - Console.WriteLine("计算了PET5PS,当前接口" + _userInfo.RequestUrl + "当前结果"); return string.Empty; } - Console.WriteLine("计算了PET5PS,当前接口" + _userInfo.RequestUrl+"当前结果"+ result.GetEnumInt()); return result.GetEnumInt(); } #endregion diff --git a/IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs b/IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs index 0e482d0cd..93e01519e 100644 --- a/IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs +++ b/IRaCIS.Core.Domain.Share/Reading/ReadEnum.cs @@ -2001,10 +2001,49 @@ public enum SUVChangeVSBaseline } - /// - /// 问题类型 这里序号关系着计算顺序 请勿修改 - /// - public enum QuestionType + + /// + /// 影像质量问题 + /// + public enum ImageQualityIssues + { + /// + /// 解剖不完整 + /// + IncompleteAnatomy = 1, + + /// + /// 扫描断层丢失 + /// + MissingScanSlice=2, + + /// + /// 存在运动伪影 + /// + MotionArtifactsPresent = 3, + + /// + /// 关键解剖部位缺失 + /// + KeyAnatomyOutOfFieldOfView = 4, + + /// + /// 其它(需要备注) + /// + OtherIssuesCommentsRequired=5, + + /// + /// PET-CT影像无法融合 + /// + PETCTFailureFuse = 6, + + } + + + /// + /// 问题类型 这里序号关系着计算顺序 请勿修改 + /// + public enum QuestionType { /// /// 靶病灶径线之和(SOD) @@ -2315,6 +2354,11 @@ public enum SUVChangeVSBaseline /// 脾底位置 /// SplenicBottomPosition = 61, + + /// + /// 影像质量问题 + /// + ImageQualityProblem = 67, }