-
I have a situation where an ORU message is being sent to me with the OBX.5.1 as a long report string. The receiving side needs it as a PDF encoded in base64. I can encode that string as base64, but it's not a PDF. Any ideas how I can extract that string, turn it into PDF format, encode it as base64, then insert it back into the message? I've been trying things with multiple channels, using a PDF writer to write the OBX.5.1 to a PDF, then picking that up and writing it to a database. At the same time, I write the first part of the message, up to the OBX.4, to a different field in the database, and OBX.6 to the end in a third field. Then I tried using a database reader to pull all three fields and combine them, but I'm running into issues. I've attached what I have so far, but I suspect this isn't the best way to do this. Any ideas? (couldn't upload the .XML, so I attached it as a .txt) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The formats and messages type are different, but the concepts are the same as it applies to creating the PDF in the channel for downstream use. |
Beta Was this translation helpful? Give feedback.
see https://forums.mirthproject.io/forum/mirth-connect/support/181200-transform-base-64-image-to-base64-pdf
The formats and messages type are different, but the concepts are the same as it applies to creating the PDF in the channel for downstream use.