Hello, I want to get /c-move images to my workstation.
I use command line and I can c-move images correctly, but when I try to do this with this java code it returns this error:
org.dcm4che2.net.NoPresentationContextException: 1.2.840.10008.5.1.4.1.2.1.2/Patient Root Query/Retrieve Information Model - MOVE not supported by DCM4CHEE
at org.dcm4che2.tool.dcmqr.DcmQR.move(DcmQR.java:1732)
at Init$2.run(Init.java:280)
at java.lang.Thread.run(Thread.java:724)
JAVA CODE:
DcmQR dcmqr = new DcmQR("DCMQR");
dcmqr.setCalledAET("DCM4CHEE", false);
dcmqr.setRemoteHost("IPDCM4CHEE");
dcmqr.setRemotePort(11112);
dcmqr.setQueryLevel(DcmQR.QueryRetrieveLevel.PATIENT);
dcmqr.addMatchingKey(Tag.toTagPath("PatientID"),"1540594");
//dcmqr.setCFind(true);
dcmqr.setCGet(true);
dcmqr.configureTransferCapability(true);
List<DicomObject> result=null;
dcmqr.start();
System.out.println("started");
dcmqr.open();
System.out.println("opened");
result = dcmqr.query();
dcmqr.setMoveDest("MYWORKSTATION");
dcmqr.move(result);
System.out.println("List Size = " + result.size());
dcmqr.stop();
dcmqr.close();
I see that dcm4chee accepts c-move, i don't understand the error...