web stats
Moving OBX-5.1 to OBX-5.5 for embedded PDF - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2015, 12:22 PM
fchang fchang is offline
Mirth Newb
 
Join Date: Jan 2013
Location: Southern California
Posts: 13
fchang is on a distinguished road
Send a message via Yahoo to fchang
Default Moving OBX-5.1 to OBX-5.5 for embedded PDF

I wanted to have the following :

MSH
PID
PV1
NTE
NTE...
OBX|2|ED|||JVBERi0xLjUK.............|||||F|||20150 7061000

to be .....

MSH
PID
PV1
NTE
NTE...
OBX|2|ED|||^^PDF^^JVBERi0xLjUK.............|||||F| ||201507061000


I am on Mirth v3.2.07628.

msg[OBX'][1]['OBX.5']['OBX.5.3'] = "PDF";
I tried just using msg[OBX'][1]['OBX.5']['OBX.5.5'] = msg[OBX'][1]['OBX.5']['OBX.5.1'].toString();

This does not seem to work correctly. I think "toString()" is not correct.

I just get this :

OBX|2|ED|||^^PDF^^|||......

Any suggestion?

Thanks
Reply With Quote
  #2  
Old 07-06-2015, 05:25 PM
fchang fchang is offline
Mirth Newb
 
Join Date: Jan 2013
Location: Southern California
Posts: 13
fchang is on a distinguished road
Send a message via Yahoo to fchang
Default

Just wanted to reply with my solution, after going through the thread some more.

var OBX5 = msg[OBX'][1]['OBX.5']['OBX.5.1'].toString();

msg[OBX'][1]['OBX.5']['OBX.5.3'] = "PDF";
msg[OBX'][1]['OBX.5']['OBX.5.5'] = FileUtil.decode(OBX5);
Reply With Quote
Reply

Tags
embedded, 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:49 AM.


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