web stats
DICOM XML to JSON - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2016, 09:11 AM
marcheschi marcheschi is offline
OBX.1 Kenobi
 
Join Date: Sep 2006
Posts: 27
marcheschi
Unhappy DICOM XML to JSON

Hi
I'd like to transform a DICOM transformed XML , by mirth itself, to a JSON object
I try to use:

var xmlObject=connectorMessage.getTransformedData();

logger.info("json data:" + JSON.stringify(xmlObject));

But I obtain the same xml object .
Is that possible or I need some other Xml to Json transformer ?
Using 3.4.1.8057 version of mirthconnect
Thank you
Paolo

Last edited by marcheschi; 07-15-2016 at 09:11 AM. Reason: Using 3.4.1.8057 version of mirthconnect
Reply With Quote
  #2  
Old 07-17-2016, 12:54 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 832
siddharth is on a distinguished road
Default

short answer - Yes!

It's a 2 step process. First, extract from XML, and then construct your JSON.
Reply With Quote
Reply

Tags
dicom, json, xml

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 02:02 AM.


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