From 2607a05104bb7b2b7e77d9ca2f96d683140e3911 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 12 Aug 2025 17:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRC.Core.SCP/Service/CStoreSCPService.cs | 13 ++++++++++--- .../Service/Visit/PatientService.cs | 5 ++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/IRC.Core.SCP/Service/CStoreSCPService.cs b/IRC.Core.SCP/Service/CStoreSCPService.cs index 97c859241..4a9f88579 100644 --- a/IRC.Core.SCP/Service/CStoreSCPService.cs +++ b/IRC.Core.SCP/Service/CStoreSCPService.cs @@ -232,9 +232,16 @@ namespace IRaCIS.Core.SCP.Service { #region 测试接收课题组信息 - var groupIdsJson = request.Dataset.GetSingleValueOrDefault(DicomTag.PatientName, string.Empty); - var projectGroupIds = JsonConvert.DeserializeObject>(groupIdsJson); - Log.Logger.Information("收到课题组信息: " + string.Join(", ", projectGroupIds)); + var privateTag = new DicomTag(0x9999, 0x1001); + var groupIdsJson = request.Dataset.GetSingleValueOrDefault(privateTag, string.Empty); + + if (!string.IsNullOrEmpty(groupIdsJson)) + { + var projectGroupIds = JsonConvert.DeserializeObject>(groupIdsJson); + + Log.Logger.Information("收到课题组信息: " + string.Join(", ", projectGroupIds)); + + } #endregion diff --git a/IRaCIS.Core.Application/Service/Visit/PatientService.cs b/IRaCIS.Core.Application/Service/Visit/PatientService.cs index 6df85a131..f5efc1ef9 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -3415,12 +3415,11 @@ namespace IRaCIS.Application.Services //cmoveRequest.Dataset.Add(new DicomLongString(privateCreator, "HIR")); // 添加私有Tag,元素号 >= 0x1000 - //var privateTag = new DicomTag(0x9999, 0x1001); - ////var groupIdsJson = (new List { "KTGroup1", "KTGroup2" }).ToJson(); + var privateTag = new DicomTag(0x9999, 0x1001); var groupIdsJson = (new List { "KTGroup1", "KTGroup2" }).ToJsonStr(); - //cmoveRequest.Dataset.Add(new DicomLongString(privateTag, groupIdsJson)); + cmoveRequest.Dataset.Add(new DicomLongString(privateTag, groupIdsJson)); #endregion