web stats
Document Writer not rendering ${..} code in the PDF - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2016, 09:10 PM
ppazos ppazos is offline
OBX.2 Kenobi
 
Join Date: May 2008
Posts: 76
ppazos
Default Document Writer not rendering ${..} code in the PDF

Hi,

I'm testing the Document Writer destination, trying to save a PDF with some data from an HL7 v2.x message. I'm on Mirth 3.4.1.8057 / Java 7.

This is my HTML Template:

<html>
<body>
<h1>${message.encodedData['MSH']['MSH-9'][MSH-9-1']}</h1>
<p>${date.get('yyyy-M-d H.m.s')}</p>
</body>
</html>


The file is generated but when I open it, what I see is:

${message.encodedData['MSH']['MSH-9'][MSH-9-1']}
${date.get('yyyy-M-d H.m.s')}


Is there any example of valid HTML Templates that actually work?
Is this a bug of the Document Writer?

Thanks!
Reply With Quote
  #2  
Old 07-31-2016, 09:24 PM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 835
siddharth is on a distinguished road
Default

This looks incorrect.

<h1>${message.encodedData['MSH']['MSH-9'][MSH-9-1']}</h1>

You should be using just message.encodedData to write the entire HL7 message.

Last edited by siddharth; 08-01-2016 at 01:21 AM. Reason: correction.
Reply With Quote
Reply

Tags
document writer, pdf

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 08:20 AM.


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