C查找(请求工作清单)返回“不支持可选密钥” ,并且不返回任何数据。我还尝试使用空字符串“”代替null作为患者ID,现有患者ID等,因此结果相同。 该请求适用于其他PACS。
这是怎么回事,如何解决?
请求代码(使用Fellow Oak DICOM fo-dicom):
var cfind = DicomCFindRequest.CreateWorklistQuery();
List<Dicom.DicomDataset> dslist = new List<Dicom.DicomDataset>();
cfind.OnResponseReceived = (DicomCFindRequest rq, DicomCFindResponse rp) =>
{
if (rp.Status != DicomStatus.Pending)
{
return;
}
dslist.Add(rp.Dataset);
};
var client = new DicomClient();
client.AddRequest(cfind);
try
{
await client.SendAsync(destip, port, useTLS, callingAE, calledAE);
}
catch (Exception e)
{
logger.Error(e);
}
这是日志。
2019-02-09 09:49:01.6540 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL -> Association request:
Calling AE Title: XXXXXXXXX
Called AE Title: TEST_01WL
Remote host: XXX.29.51.XXX
Remote port: 9895
Implementation Class: Implementation Class UID [1.3.6.1.4.1.30071.8]
Implementation Version: fo-dicom 4.0.0
Maximum PDU Length: 16384
Async Ops Invoked: 1
Async Ops Performed: 1
Presentation Contexts: 1
Presentation Context: 1 [Proposed]
Abstract Syntax: Modality Worklist Information Model - FIND
Transfer Syntax: Implicit VR Little Endian: Default Transfer Syntax for
DICOM
2019-02-09 09:49:01.6540 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL <- Association accept:
Calling AE Title: XXXXXXXXX
Called AE Title: TEST_01WL
Remote host: XXX.29.51.XXX
Remote port: 9895
Implementation Class: Unknown [1.2.752.24.3.3.25.7]
Implementation Version: WIMWLSCP_20_1
Maximum PDU Length: 28672
Async Ops Invoked: 1
Async Ops Performed: 1
Presentation Contexts: 1
Presentation Context: 1 [Accept]
Abstract Syntax: Modality Worklist Information Model - FIND
Transfer Syntax: Implicit VR Little Endian: Default Transfer Syntax for
DICOM
2019-02-09 09:49:01.7580 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL -> C-Find request [2]
2019-02-09 09:49:01.8240 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL <- C-Find response [2]: Optional Keys Not Supported
2019-02-09 09:49:01.8240 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL <- C-Find response [2]: Optional Keys Not Supported
2019-02-09 09:49:01.8240 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL <- C-Find response [2]: Optional Keys Not Supported
2019-02-09 09:49:01.8240 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL <- C-Find response [2]: Optional Keys Not Supported
2019-02-09 09:49:01.8240 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL <- C-Find response [2]: Optional Keys Not Supported
2019-02-09 09:49:01.8240 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL <- C-Find response [2]: Success
2019-02-09 09:49:01.8830 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL -> Association release request
2019-02-09 09:49:01.8830 INFO Dicom.Log.NLogManager+NLogger.Log TEST_01WL <- Association release response
2019-02-09 09:49:01.8830 INFO Dicom.Log.NLogManager+NLogger.Log Connection closed
答案 0 :(得分:2)
所以我解决了这个问题,“不支持可选键”是一条信息消息,实际上已接收到数据。
request.OnResponseReceived += (req, rp) =>
{
if (rp.HasDataset)
{
dslist.Add(rp.Dataset);
}
if (rp.Status != DicomStatus.Pending && rp.Status != DicomStatus.QueryRetrieveOptionalKeysNotSupported)
{
return;
}
};
答案 1 :(得分:1)
只需添加状态的含义:它告诉您您的请求指定了Worklist-SCP不支持的匹配密钥。这意味着您可能会在响应中收到与查询条件不匹配且应由SCP过滤掉的工作清单记录。