nroduit / weasis-dicom-tools

Basic dicom API
Other
34 stars 33 forks source link

CMove.process Passing SOPInstanceUID parameters,obtain the result error #6

Closed chendd1016 closed 7 years ago

chendd1016 commented 7 years ago

Hello, thank you very much to use your tools version 1.2.0. I found some problems in the use of CMove.process(), need your help. When I passed StudyInstanceUID parameters, the results correctly; When I passed SOPInstanceUID parameters, the result error. the code is as follows:

DicomParam[] params = { new DicomParam(Tag.SOPInstanceUID, "1.2.826.0.3.93.95.201705090910533.6") }; DicomNode calling = new DicomNode("WEASIS-SCU"); DicomNode called = new DicomNode("TRPACS", "192.168.3.120", 11246); DicomState state = CMove.process(calling, called, "DWV-SCP", progress, params);

nroduit commented 7 years ago

As the default c-move model is a study model, you need to add some more options. I added in the test class how to move a series or an image.

DicomParam[] params = { new DicomParam(Tag.QueryRetrieveLevel, "IMAGE"),
    new DicomParam(Tag.SOPInstanceUID, "1.2.840.113543.6.6.3.4.637463244096141531813342472862196132286") };
DicomNode calling = new DicomNode("WEASIS-SCU");
DicomNode called = new DicomNode("DCM4CHEE", "localhost", 11112);
AdvancedParams options = new AdvancedParams();
options.getQueryOptions().add(QueryOption.RELATIONAL); // Required for QueryRetrieveLevel other than study
DicomState state = CMove.process(options, calling, called, "WEASIS-SCU", progress, params);
chendd1016 commented 7 years ago

Thanks very much for your support.