Dcm4che Query / Retrieve SCP

First of all, I am new to dcm4che and without good documentation it's hard to get started, so excuse my ignorance.

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

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

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

thanks

+5
source share
1 answer

You can actually do it 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
}
+2
source

All Articles