From b5956ef6d2a0ad98d50bfd8502a488a3ae72f939 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 12 Aug 2025 15:47:44 +0800 Subject: [PATCH] =?UTF-8?q?cmove=20=E5=A2=9E=E5=8A=A0=E7=A7=81=E6=9C=89tag?= =?UTF-8?q?=20=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 | 2 +- IRaCIS.Core.Application/Service/Visit/PatientService.cs | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/IRC.Core.SCP/Service/CStoreSCPService.cs b/IRC.Core.SCP/Service/CStoreSCPService.cs index 06300b430..dc964e6f7 100644 --- a/IRC.Core.SCP/Service/CStoreSCPService.cs +++ b/IRC.Core.SCP/Service/CStoreSCPService.cs @@ -232,7 +232,7 @@ namespace IRaCIS.Core.SCP.Service { #region 测试接收课题组信息 - var privateTag = new DicomTag(0x9999, 0x1001, "PRJGROUPS"); + var privateTag = new DicomTag(0x9999, 0x1001, "HIR"); var groupIdsJson = request.Dataset.GetSingleValueOrDefault(privateTag, string.Empty); var projectGroupIds = JsonConvert.DeserializeObject>(groupIdsJson); Log.Logger.Information("收到课题组信息: " + string.Join(", ", projectGroupIds)); diff --git a/IRaCIS.Core.Application/Service/Visit/PatientService.cs b/IRaCIS.Core.Application/Service/Visit/PatientService.cs index daae191a1..35cd7c4fe 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -3410,10 +3410,17 @@ namespace IRaCIS.Application.Services cmoveRequest.OnResponseReceived += responseDelegate; #region 测试私有tag 传输信息 - var privateTag = new DicomTag(0x9999, 0x1001, "PRJGROUPS"); + // 声明私有Creator + var privateCreator = new DicomTag(0x9999, 0x0010); + cmoveRequest.Dataset.Add(new DicomLongString(privateCreator, "HIR")); + + // 添加私有Tag,元素号 >= 0x1000 + var privateTag = new DicomTag(0x9999, 0x1001); var groupIdsJson = (new List { "KTGroup1", "KTGroup2" }).ToJson(); + cmoveRequest.Dataset.Add(new DicomLongString(privateTag, groupIdsJson)); + #endregion