web stats
DICOM Listener Question - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #11  
Old 05-27-2014, 11:36 AM
atibbits atibbits is offline
Mirth Guru
 
Join Date: May 2012
Location: Salina, KS
Posts: 381
atibbits is on a distinguished road
Default

Well, I have been trying to send the image I receive via the DICOM listener to a file on my server using a file writer. I have ${DICOMMESSAGE} in my template and I am sending it as a binary file type. I have not yet been able to open the images in a file though.
Reply With Quote
  #12  
Old 05-27-2014, 12:02 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

Quote:
Originally Posted by atibbits View Post
Well, I have been trying to send the image I receive via the DICOM listener to a file on my server using a file writer. I have ${DICOMMESSAGE} in my template and I am sending it as a binary file type. I have not yet been able to open the images in a file though.
Uh, well... that's because it's a DICOM binary file, not an image file.

DICOMUtil has methods to convert DICOM files to images.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #13  
Old 05-28-2014, 11:19 AM
atibbits atibbits is offline
Mirth Guru
 
Join Date: May 2012
Location: Salina, KS
Posts: 381
atibbits is on a distinguished road
Default

Would using the Covert DICOM to Encoded Image as a byte array be good to use for this case as well? It looks something like this:

Quote:
DICOMUtil.convertDICOMToByteArray('imagetype', connectorMessage, sliceIndex)
I am sure that 'imagetype' is the type of file I want (i.e. jpg, tif, png, etc...), but what is the meaning of connectorMessage and sliceIndex? I am thinking that connectorMessage is the actual DICOM image? I am just trying to figure out how to write this and I am probably overthinking it.

Any examples or suggestions?
Reply With Quote
  #14  
Old 05-28-2014, 01:32 PM
atibbits atibbits is offline
Mirth Guru
 
Join Date: May 2012
Location: Salina, KS
Posts: 381
atibbits is on a distinguished road
Default

I got this to work and I thought I would share what I did! Here is the code that I use in my transformer:

Quote:
var imageslice=DICOMUtil.getSliceCount(connectorMessag e);
var imagedata= DICOMUtil.convertDICOM('JPEG', connectorMessage, imageslice)
channelMap.put('jpegData', imagedata);

Then I put this in my transformer:

Quote:
${jpegData}
Reply With Quote
  #15  
Old 01-27-2015, 06:35 AM
rembleton rembleton is offline
What's HL7?
 
Join Date: Jun 2010
Posts: 4
rembleton is on a distinguished road
Default DICOM Listener accept any AE

Hi Just a question about the earlier statement in the thread.
I have a DICOM listener setup. Mirth v 3.1.1
I do want to accept any AE title inbound, so I leave on the source AE blank.

When trying to send DICOM in I still get the association error.
Any known bugs around this functionality??

Thanks in advance
Reply With Quote
  #16  
Old 04-10-2015, 01:46 PM
csphu csphu is offline
What's HL7?
 
Join Date: Feb 2015
Posts: 3
csphu is on a distinguished road
Default

Quote:
Originally Posted by rembleton View Post
Hi Just a question about the earlier statement in the thread.
I have a DICOM listener setup. Mirth v 3.1.1
I do want to accept any AE title inbound, so I leave on the source AE blank.

When trying to send DICOM in I still get the association error.
Any known bugs around this functionality??
In the DICOM world this is often refered to as being "promiscuous"... Which is what I am trying to accomplish as well. Does anyone have any sugestions on how we can get this done? Is this just a bug with the current version?
__________________
Calvin Sphuler, R.T.(R)(CT)
PACS QC Specialist

Mirth Connect Server 3.1.1.7461
Reply With Quote
Reply

Tags
dicom

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 10:03 PM.


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