dcm4che Query/Retrieve SCP

你离开我真会死。 提交于 2020-02-03 05:37:26

问题


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


回答1:


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
}


来源:https://stackoverflow.com/questions/949562/dcm4che-query-retrieve-scp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!