The health authority has decided to release some results (discharge reports) in PDF form which we receive in HL7 format.
The line received begins with 'OBX|1|ED|PDF^PDF||^TEXT^PDF^Base64^JVBERi0xLjQKJdP0zOEKM’. I’ve tried $BlobText:=substring([PatientLabResults]HL7Text;36;length([PatientLabResults]HL7Text)) BASE64 DECODE($BlobText;[PatientLabRequests]PDF_Blob) which does not work. They were nice enough to include a sample HL7 file and the sample PDF. The size of the PDF is 68,076, while the length of the HL7Text is 85,807. So, what do I need to do to turn the encoded text into a PDF? _________________________________________ Bob McKeever http://www.mswl.com <http://www.mswl.com/> McKeever's Software Wizardry Port Coquitlam, B.C. [email protected] ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

