From 4c9b3e1a23f090994d9d91a2afedded4bb70d8fe Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 1 Sep 2025 16:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/_MapConfig.cs | 3 ++- .../MRECISTHCCCalculateService.cs | 3 +-- .../Common/AuditingData.cs | 27 +++++++++++++++++-- .../Common/AuditingDto.cs | 2 ++ 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs b/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs index ad7e72069..2f82098a7 100644 --- a/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Reading/_MapConfig.cs @@ -161,7 +161,8 @@ namespace IRaCIS.Core.Application.Service CreateMap().ForMember(dest => dest.CreateUserRole, opt => opt.Ignore()); CreateMap() - .ForMember(d => d.OriginalId, u => u.MapFrom(s => s.Id)); + .ForMember(d => d.OriginalId, u => u.MapFrom(s => s.Id)) + .ForMember(d => d.LesionType, u => u.MapFrom(s => s.ReadingQuestionTrial.LesionType)); //.ForMember(dest => dest.Instance, opt => opt.Ignore()) //.ForMember(dest => dest.ReadingQuestionTrial, opt => opt.Ignore()); diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs index 0fe1e81a2..3b6b5b132 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/MRECISTHCCCalculateService.cs @@ -823,8 +823,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate x.TrialReadingCriterion.CriterionType == CriterionType.RECIST1Point1 && x.SubjectId == taskinfo.SubjectId && x.SourceSubjectVisitId == taskinfo.SourceSubjectVisitId - //&& - //x.DoctorUserId==taskinfo.DoctorUserId ).FirstOrDefaultAsync(); if (recistTask != null) { @@ -886,6 +884,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate { item.QuestionId = tableRowAnswers.Where(y => y.OriginalId == item.RowId).Select(x => x.QuestionId).FirstOrDefault(); + item.TableQuestionId = tableQuestionList.Where(x => x.ReadingQuestionId == item.QuestionId && x.QuestionMark == item.QuestionMark).Select(x => x.Id).FirstOrDefault(); } diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 9f0252cb4..2cf0c5521 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -3217,6 +3217,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common UserRealName = userRealName, }; + + var extraIdentification = string.Empty; + var isDistinctionInterface = true; #region 标识区分 if (type == AuditOpt.Add) @@ -3263,11 +3266,30 @@ namespace IRaCIS.Core.Infra.EFCore.Common type = type + "/" + 2; } + break; + + case "ReadingImageTask/resetReadingTask": + //跳转阅片结果需要该参数 + + obj.IsReadingReset = true; + break; } } + if (obj.IsReadingReset != true) + { + if (entity.ReadingTaskState == ReadingTaskState.Reading) + { + if (_dbContext.VisitTask.Where(t => t.Id == entity.Id).Any(t => t.ReadingTaskState == ReadingTaskState.WaitReading)) + { + isDistinctionInterface = false; + extraIdentification = "/ChangeToReading"; + } + } + } + //访视任务-- 非Dicom 阅片 if (_userInfo.RequestUrl == "ReadingImageTask/SubmitVisitTaskQuestions" && entity.ReadingTaskState != ReadingTaskState.HaveSigned && type == AuditOpt.Update) { @@ -3401,8 +3423,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common { VisitTaskId = x.Id, SubjectVisitId= subjectVisitId, - - IsDistinctionInterface = type == AuditOpt.Update ? true : false, + ExtraIndentification = extraIdentification, + + IsDistinctionInterface = type == AuditOpt.Update && isDistinctionInterface ? true : false, ObjectRelationParentId = entity.SourceSubjectVisitId != null ? entity.SourceSubjectVisitId : entity.SouceReadModuleId, diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingDto.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingDto.cs index 8bc888aff..152027999 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingDto.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingDto.cs @@ -62,6 +62,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common public string CutOffVisitName { get; set; } public string SelectResult { get; set; } + + public bool? IsReadingReset { get; set; } } public class InspectionConvertDTO : DataInspection {