Viewing Exported Attachments
You can view the data from exported attachments.
The attachments extracted from HL7 can be decoded by using decode64 twice to restore the original image. The second decoding should be converted to the file type, as described below.
- Copy the data in the XML message file between
<content>
and</content>
after the attachment ID. - Use a webpage like https://www.base64decode.org to decode the data.
- Copy the results.
- To convert the results to the correct file format (for example PDF), paste the results in a webpage like https://base64.guru/converter/decode/pdf.
Exported DICOM messages are separated using the dmc4che library. They are separated so the data embedded in the DICOM messages can be transformed if needed. To read the DICOM message, it will need to be restored by using the dmc4che library.