使用 Fo-Dicom,如何制作不区分大小写的 MWL CFindRequest?

发布于 2025-01-10 23:33:50 字数 729 浏览 0 评论 0原文

我可以像这样进行出色的工作列表查询...

//Worklist MWL PATIENTID query
var cf = DicomCFindRequest.CreateWorklistQuery();
cf.Dataset.AddOrUpdate(DicomTag.PatientID, szPatientIDsearch);
cf.OnResponseReceived = (DicomCFindRequest rq, DicomCFindResponse rp) =>
{
       if (rp.HasDataset)
       {
           worklistItems.Add(rp.Dataset);
       }
};
Dicom.Network.Client.DicomClient client = new Dicom.Network.Client.DicomClient(IPAddress, mwlserver.port, false, Preferences.SendingAETitle, mwlserver.AETitle, 5000, 10000, 50, 5);
await client.AddRequestAsync(cf);
await client.SendAsync();

但是如何制作Patient ID (0010,0020)Patient's Name (0010,0010) 案例不敏感? MWL 请求中是否有要添加/设置的 DICOM 标签?

I can make these great worklist queries like this one...

//Worklist MWL PATIENTID query
var cf = DicomCFindRequest.CreateWorklistQuery();
cf.Dataset.AddOrUpdate(DicomTag.PatientID, szPatientIDsearch);
cf.OnResponseReceived = (DicomCFindRequest rq, DicomCFindResponse rp) =>
{
       if (rp.HasDataset)
       {
           worklistItems.Add(rp.Dataset);
       }
};
Dicom.Network.Client.DicomClient client = new Dicom.Network.Client.DicomClient(IPAddress, mwlserver.port, false, Preferences.SendingAETitle, mwlserver.AETitle, 5000, 10000, 50, 5);
await client.AddRequestAsync(cf);
await client.SendAsync();

But how do you make the Patient ID (0010,0020) or a Patient's Name (0010,0010) case insensitive? Is there a DICOM Tag to add/set in MWL Request?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

要走就滚别墨迹 2025-01-17 23:33:50

作为 MWL SCU,控制 MWL 查询的大小写敏感性实际上(解释如下)是不可能的。此外,这更多的是关于规格;与工具包无关。所以FO-DICOM或其他,没有太大区别。

这个答案中解释了MWL通信的工作流程,可能会对您有所帮助。

  • 您担任 MWL SCU。
  • 您将 MWL 查询 (C-FIND) 发送到第三方 MWL SCP。
  • SCP通常将订单数据存储在 RDBMS 中;这个答案假设它(无论如何都没关系)。
  • 根据您的过滤器参数(您发送的 DICOM 标签(如您所说的患者 ID (0010,0020)患者姓名 (0010,0010))),SCP将生成 SQL 查询。
  • 然后,SCP 将在其 RDBMS 上执行此 SQL 查询并获取行。
  • 这些行中的数据将映射到每个 MWL 响应(请参阅上面的链接了解说明),并将其发送回给您。

正如您现在所看到的,在生成和执行查询(或者说底层 RDBMS 的行为)时,区分大小写完全由 SCP 控制。
作为 SCU,您无法控制这种行为。

MWL 请求中是否有要添加/设置的 DICOM 标签?

不;没有 SCU 可以在 C-FIND 请求中添加/设置的标准 DICOM 标签来指示 SCP 运行区分大小写/不敏感的查询。

正如 @kritzel_sw 在 评论中所说< /a>:

使用标准工作列表,不可能从 SCU 端控制它。通过长期谈判,这是有可能做到这一点的,但我从未见过在实践中实施这一点。 – kritzel_sw

扩展协商可能是解决方案;但在实践中,我从未遇到过任何 SCP 实现了它。
作为 SCU,您不应依赖 SCP 的可选功能。

As an MWL SCU, controlling the case sensitivity of MWL Query is practically (explained below) not possible. Also, this is more about specifications; not about toolkit. So FO-DICOM or other, does not make much difference.

Workflow of MWL communication is explained in this answer which may help you.

  • You are acting as MWL SCU.
  • You send MWL Query (C-FIND) to third party MWL SCP.
  • SCPs generally store Order data in RDBMS; this answer assumes it (does not matter any way).
  • Based on your filter parameters (DICOM Tags you send (Patient ID (0010,0020) or a Patient's Name (0010,0010) as you said in question)), SCP will generate SQL Query.
  • SCP will then execute this SQL Query on its RDBMS and will get the rows.
  • Data from these rows will be mapped to each MWL Response (see link above for description) which will be sent back to you.

As you can see now, case sensitivity is controlled entirely on SCP while generating and executing the query (or say behaviour of underlying RDBMS).
You as SCU cannot control this behaviour.

Is there a DICOM Tag to add/set in MWL Request?

No; there is no standard DICOM Tag that SCU can add/set in C-FIND request that indicates SCP to run case sensitive/insensitive query.

As @kritzel_sw said in the comment:

With standard worklist it is impossible to control this from the SCU side. With extended negotiation it would be possible to do this, but I have never seen that implemented in practice. – kritzel_sw

Extended Negotiation may be the solution; but in practice, I never come across any SCP implemented it.
As an SCU, you should not rely on optional features of SCP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文