web stats
Mapping values to DICOM template - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2010, 06:21 AM
mart mart is offline
What's HL7?
 
Join Date: Feb 2010
Posts: 5
mart is on a distinguished road
Default Mapping values to DICOM template

my goal is to get patient registration info to our Siemens Emotion 16 CT system.
I made one database reader to get patient registration info from our system and now i'm trying to transform it to DICOM format and send it to Siemens.

The thing that i'm stuck with: i have not been able to create transformer to map values read from database to go to that dicom template. I tried drag and drop method. The result to this is that those fields that are mapped just disappear from the outgoing file and the file arrives to Siemens without them.

Does anybody that knows more abouth mirth than me maybe know the solution to my problem?
Reply With Quote
  #2  
Old 02-11-2010, 03:50 AM
mart mart is offline
What's HL7?
 
Join Date: Feb 2010
Posts: 5
mart is on a distinguished road
Default

Well i have here mirth 1.8.2.4472

Im trying to transform incoming data to dicom format in the source connector.
before i map my outgoing dicom template value to my incoming xml value the dicom tag looks like this: <tag00100040 len="2" tag="00100040" vr="CS">M</tag00100040>

in the outgoing message that has been already sent without any errors. it changes the value correctly but loses tag attributes from inside the tag.
so it'll look like this:<tag00100040>F</tag00100040>

now the destination connector seeing this loses that too because this is not dicom format tag.

if somebody have an idea how i might be able to map those variables together without loseing those tag attributes. It would really help alot.

Many thanks
Reply With Quote
  #3  
Old 02-11-2010, 08:05 AM
dans dans is offline
Mirth Employee
 
Join Date: Apr 2007
Location: Irvine, CA
Posts: 590
dans is an unknown quantity at this point
Default

I think you have to use something like setChildren to preserve the attributes:
Code:
tmp.tag00100040.setChildren("F");
__________________
Daniel Svanstedt
Software Engineer
Mirth Corporation

Want professional services, support, and enterprise or virtual appliances? It's all available from the Mirth Corporation:
Mirth Support | Mirth Training | Mirth Appliances | Online Training | Developer Q&A

Don't forget, Mirth Support gives you access to all of our online training videos, and silver support gives you access to developer Q&As!
Reply With Quote
  #4  
Old 02-11-2010, 10:45 PM
mart mart is offline
What's HL7?
 
Join Date: Feb 2010
Posts: 5
mart is on a distinguished road
Default

Thank you for your response and really big thanks, this just solved my problem
Reply With Quote
Reply

Tags
dicom, templates, transform, transformer

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 12:49 AM.


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