web stats
Mirth Community - View Single Post - XML to CCDA
Thread: XML to CCDA
View Single Post
  #4  
Old 05-17-2016, 06:04 AM
rav rav is offline
Mirth Guru
 
Join Date: Oct 2012
Posts: 258
rav is on a distinguished road
Default

Quote:
Originally Posted by siddharth View Post
Thanks for the help.

It works. I had to create an extraction step that will basically extract everything I need from the XML and then I map it in the outbound.

However, I don't know the reason why direct mapping -XML to XML - is not working. Do you know the reason for this behaviour?

I think it might be something to do with namespaces..I followed the following thread:

http://www.mirthproject.org/communit...ead.php?t=6105


Are you setting the namespace? As CDA use the "urn:hl7-org:v3" you need:

1) Be sure to un-check the "strip namespace" of the outbound template:
2) Set the following line before any map code (note than you need to recover msg variables before setting the default namespace to HL7V3 as otherwise you couldn't get msg values. This is usual when msg and tmp are from different namespace:
Reply With Quote