web stats
Mirth 2.0.1.5164 DicomSender Problems - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #11  
Old 04-10-2019, 04:44 AM
doggabyte1 doggabyte1 is offline
What's HL7?
 
Join Date: Feb 2016
Posts: 2
doggabyte1 is on a distinguished road
Talking

You need to replace the attached file with the one in mirth library. Then you can have a sendDicom function in a javascript writer and call the custom getResponse on the dcmSnd.


You should be vary of using unknown files I guess..


PHP Code:
function sendDicomObject(dicomFile) {
    try {
        var 
dcmSnd = new Packages.org.dcm4che2.tool.dcmsnd.DcmSnd();
        
dcmSnd.setRemoteHost(????);
        
dcmSnd.setRemotePort(????);
        
dcmSnd.setCalledAET(????);
        
dcmSnd.setCalling(????);
        
dcmSnd.setAcceptTimeout(????);
        
dcmSnd.setDimseRspTimeout(????);
        
dcmSnd.setPriority(????);
        
dcmSnd.setOfferDefaultTransferSyntaxInSeparatePresentationContext(false);
        
dcmSnd.setLocalHost(????);
        
dcmSnd.addFile(dicomFile);
        
dcmSnd.configureTransferCapability();
        
dcmSnd.open();
        
dcmSnd.send();

        var 
resp dcmSnd.getResponse();
        if(
resp != null) {
            var 
status resp.getInt(Packages.org.dcm4che2.data.Tag.Status);        
            }
        } 
    } catch(
error) {
        throw(
error);
    } 
finally {
        
dcmSnd.close();
    }

md5sum
d01bfa3672f4d55b28e2c1cff0151b97 dcm4che-tool-dcmsnd-2.0.28.jar
Attached Files
File Type: jar dcm4che-tool-dcmsnd-2.0.28.jar (24.3 KB, 0 views)
Reply With Quote
Reply

Tags
dicom sender, error sender, response

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation