dcm4che 查询/检索 SCP

发布于 2024-07-22 18:04:00 字数 399 浏览 4 评论 0原文

首先,我是 dcm4che 的新手,没有良好的文档很难开始,因此请原谅我的无知。

我必须开发一个查询/检索 SCP,并且我需要知道 doCFind 函数中由 SCU 输入的查询参数。 例子: SCU 执行以下操作: dcmqr MYQR@localhost:10001 -q PatientName=Manuel

如何捕获 doCFind 函数中的查询参数(PatientName 和 Manuel)?

protected synchronized DimseRSP doCFind(
    Association as, int pcid, DicomObject cmd,
    DicomObject keys, DicomObject rsp)

谢谢

First of all, I'm new in dcm4che and without a good Documentation is difficult to begin, therefore excuse my ignorance.

I've to develop a Query/Retrieve SCP and I need to know the query parameters, in the doCFind function, entered by the SCU.
Example:
SCU does: dcmqr MYQR@localhost:10001 -q PatientName=Manuel

How can I catch the query parameters (PatientName and Manuel) in the doCFind function?

protected synchronized DimseRSP doCFind(
    Association as, int pcid, DicomObject cmd,
    DicomObject keys, DicomObject rsp)

Thanks

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

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

发布评论

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

评论(1

遮云壑 2024-07-29 18:04:00

你实际上可以这样做:

protected DimseRSP doCFind(Association association, int i, DicomObject rq, DicomObject data, DicomObject rsp)
            throws DicomServiceException {
   String PatientsID[] = data.getStrings(Tag.PatientID);
   String PatientsName[] = data.getStrings(Tag.PatientName);
   String PatientBirthDate = data.getString(Tag.PatientBirthDate);
   String StudyDate = data.getString(Tag.StudyDate);
   String StudyTime = data.getString(Tag.StudyTime);
   String ModalitiesInStudy[] = data.getStrings(Tag.ModalitiesInStudy);
   ..... etc
}

You can do it actually like this:

protected DimseRSP doCFind(Association association, int i, DicomObject rq, DicomObject data, DicomObject rsp)
            throws DicomServiceException {
   String PatientsID[] = data.getStrings(Tag.PatientID);
   String PatientsName[] = data.getStrings(Tag.PatientName);
   String PatientBirthDate = data.getString(Tag.PatientBirthDate);
   String StudyDate = data.getString(Tag.StudyDate);
   String StudyTime = data.getString(Tag.StudyTime);
   String ModalitiesInStudy[] = data.getStrings(Tag.ModalitiesInStudy);
   ..... etc
}

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