From 7b606aee05460449336a0da74b147c6d53d95036 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 11 Nov 2025 17:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9scp=20=E6=9C=8D=E5=8A=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/HostService/DicomSCPService.cs | 3 ++- IRaCIS.Core.Application/Service/Visit/PatientService.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.API/HostService/DicomSCPService.cs b/IRaCIS.Core.API/HostService/DicomSCPService.cs index d0be20f78..1774dac80 100644 --- a/IRaCIS.Core.API/HostService/DicomSCPService.cs +++ b/IRaCIS.Core.API/HostService/DicomSCPService.cs @@ -167,9 +167,10 @@ namespace IRaCIS.Core.API.HostService string patientName = request.Dataset.GetSingleValueOrDefault(DicomTag.PatientName, string.Empty); string studyDate = request.Dataset.GetSingleValueOrDefault(DicomTag.StudyDate, string.Empty); string studyInstanceUID = request.Dataset.GetSingleValueOrDefault(DicomTag.StudyInstanceUID, string.Empty); + string accessionNumber = request.Dataset.GetSingleValueOrDefault(DicomTag.AccessionNumber, string.Empty); - if (patientID.IsNullOrEmpty() && patientName.IsNullOrEmpty() && studyInstanceUID.IsNullOrEmpty() && studyDate.IsNullOrEmpty()) + if (patientID.IsNullOrEmpty() && patientName.IsNullOrEmpty() && studyInstanceUID.IsNullOrEmpty() && studyDate.IsNullOrEmpty() && accessionNumber.IsNotNullOrEmpty()) { yield return new DicomCFindResponse(request, DicomStatus.MissingAttribute); yield break; diff --git a/IRaCIS.Core.Application/Service/Visit/PatientService.cs b/IRaCIS.Core.Application/Service/Visit/PatientService.cs index c964fa543..95b6d035b 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -3429,7 +3429,7 @@ namespace IRaCIS.Application.Services request.Dataset.AddOrUpdate(DicomTag.PatientBirthDate, inQuery.PatientBirthDate.IsNullOrEmpty() ? "" : inQuery.PatientBirthDate); //检查号 设备类型 request.Dataset.AddOrUpdate(DicomTag.StudyID, inQuery.StudyID.IsNullOrEmpty() ? "" : inQuery.StudyID); - request.Dataset.AddOrUpdate(DicomTag.AccessionNumber, inQuery.StudyID.IsNullOrEmpty() ? "" : inQuery.AccessionNumber); + request.Dataset.AddOrUpdate(DicomTag.AccessionNumber, inQuery.AccessionNumber.IsNullOrEmpty() ? "" : inQuery.AccessionNumber); request.Dataset.AddOrUpdate(DicomTag.Modality, ""); request.Dataset.AddOrUpdate(DicomTag.ModalitiesInStudy, modality);