Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Unable to retrieve images and no presentation context accepted

152 views
Skip to first unread message

Isubag

unread,
Oct 16, 2014, 12:14:21 PM10/16/14
to dcm...@googlegroups.com
Hi all,

I'm trying to develop a (very simple) standalone program, in order to retrieve images from a PACS, using C-MOVE.
When I run my program, I succeed in "query" step, but I'm not able to retrieve images, because of the following error- 

[AE_TITLE-3] INFO org.dcm4che2.net.Association - NRX_CTN_LTA(2) >> A-RELEASE-RQ

[AE_TITLE-3] INFO org.dcm4che2.net.PDUEncoder - NRX_CTN_LTA(2) << A-RELEASE-RP
[AE_TITLE-2] INFO org.dcm4che2.net.PDUDecoder - NRX_CTN_LTA(1) >> 325:C-MOVE-RS
P[pcid=7, remaining=null, completed=null, failed=null, warning=null, status=a702H
        error=no presentation context accepted by dicom://AE_TITLE @ 10.63.74.12
        cuid=1.2.840.10008.5.1.4.1.2.2.2/Study Root Query/Retrieve Information M
odel - MOVE]


I confess I'm not an expert in DICOM standards, but I thought it could be a problem related TransferCapability settings.
Could you see anything else in the code I posted below?
Could you also clarify if I made proper use of TransferCapability object and methods please?

Thanks 

Michele.





           
DcmQR dcmqr = new DcmQR("AE_TITLE");
          dcmqr
.setCalledAET("AE_PACS", true);
          dcmqr
.setRemoteHost("10.63.74.12");
          dcmqr
.setRemotePort(4568);
 
         
String sintax[] = {"1.2.840.10008.1.2"};

         
TransferCapability tc = new TransferCapability(UID.CTImageStorage,
                  sintax
, TransferCapability.SCU);
         
          dcmqr
.selectTransferSyntax(tc);


         
String tsuids[] = {"1.2.840.10008.5.1.4.1.2.2.2"} ;
          dcmqr
.addStoreTransferCapability(UID.CTImageStorage, tsuids);
          dcmqr
.configureTransferCapability(true);    

          dcmqr
.setStoreDestination(
                 
"c:\\XXX\\YYY\\ZZZ"
         
);
          dcmqr
.setMoveDest("AE_TITLE");
         
          dcmqr
.setLocalPort(4006);
     
          dcmqr
.setDateTimeMatching(true);
          dcmqr
.setCFind(true);
          dcmqr
.setQueryLevel(DcmQR.QueryRetrieveLevel.IMAGE);
          dcmqr
.getKeys();        
          dcmqr
.addMatchingKey(new int[]{Tag.PatientName},"XXXX^YYYY");
          dcmqr
.addMatchingKey(new int[]{Tag.SOPInstanceUID},
                 
"1.3.12.2.1107.5.1.4.60191.30000013101607073759300000002");

Reply all
Reply to author
Forward
0 new messages