web stats
Mirth Community - View Single Post - change outbound message template value through transformer
View Single Post
Old 10-12-2011, 07:40 AM
albertosaez albertosaez is offline
Join Date: Sep 2006
Location: Valladolid, Spain
Posts: 842
albertosaez is an unknown quantity at this point

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:

var e_sender=msg['e_sender'].toString();

default xml namespace="urn:hl7-org:v3";

tmp['recordTarget']['patientRole']['id'] ['@extension']=e_sender;
Reply With Quote