We have several interfaces that include HL7 messages with embedded .pdf’s contained in OBX:5. These are base-64 encoded documents that are sent to our EMR. I dig up an example and post it so that you can see what it looks like.
Could you please post a code segment for taking the file from the message and actually creating a file from it? We are planning to do this same function with our EKG system to go to our EMR….
We don’t pull the data out of the transaction to create the .pdf file; that process resides on the system receiving the transaction. The receiving system extracts data from OBX:5, decodes it, and stores the .pdf file.