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