diff --git a/IRC.Core.SCP/Service/CStoreSCPService.cs b/IRC.Core.SCP/Service/CStoreSCPService.cs index dc964e6f7..97c859241 100644 --- a/IRC.Core.SCP/Service/CStoreSCPService.cs +++ b/IRC.Core.SCP/Service/CStoreSCPService.cs @@ -232,8 +232,7 @@ namespace IRaCIS.Core.SCP.Service { #region 测试接收课题组信息 - var privateTag = new DicomTag(0x9999, 0x1001, "HIR"); - var groupIdsJson = request.Dataset.GetSingleValueOrDefault(privateTag, string.Empty); + var groupIdsJson = request.Dataset.GetSingleValueOrDefault(DicomTag.PatientName, string.Empty); 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 35cd7c4fe..93cef2a7d 100644 --- a/IRaCIS.Core.Application/Service/Visit/PatientService.cs +++ b/IRaCIS.Core.Application/Service/Visit/PatientService.cs @@ -3410,15 +3410,17 @@ namespace IRaCIS.Application.Services cmoveRequest.OnResponseReceived += responseDelegate; #region 测试私有tag 传输信息 - // 声明私有Creator - var privateCreator = new DicomTag(0x9999, 0x0010); - cmoveRequest.Dataset.Add(new DicomLongString(privateCreator, "HIR")); + //// 声明私有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(); - // 添加私有Tag,元素号 >= 0x1000 - var privateTag = new DicomTag(0x9999, 0x1001); var groupIdsJson = (new List { "KTGroup1", "KTGroup2" }).ToJson(); - cmoveRequest.Dataset.Add(new DicomLongString(privateTag, groupIdsJson)); + cmoveRequest.Dataset.Add(DicomTag.PatientName, groupIdsJson); #endregion @@ -3443,7 +3445,7 @@ namespace IRaCIS.Application.Services catch (Exception ex) { - _logger.LogError($"cmove error:{ex.Message}"); + _logger.LogError($"cmove error:{ex.Message + ex.InnerException?.Message}"); } });