For background, I have configured a channel that receives HL7 ORU^R01 messages from an external source. These messages include Base64-encoded DOCX and PDF reports, which significantly increase the overall message size and impact processing performance.
I would appreciate guidance on the following:
Converting Base64 to Attachments
How can we extract the Base64-encoded DOCX and PDF content and convert them into message attachments so the main HL7 message size is reduced in memory and can be processed more efficiently?
Programmatic Access to Attachments
Once converted, how can we access and retrieve these attachments programmatically within the channel (e.g., in scripting or transformations)?
Reattaching Files at Destination
How can we configure the destination so that these attachments are re-embedded (converted back to Base64 and inserted into the appropriate OBX segment) before sending the outbound HL7 message?
Please let me know the recommended approach or best practices for handling this workflow.