User bio
404 bio not found
Maine, USA
Member since Feb 18, 2016
Posts:
Replies:
I don't have a script for you, but if you'd like to obtain errors encountered with parsing messages against the identified DocType/Category, feed them through a service that assigns the expected Message Schema Category and send them to a business process that calls the Validate() method with the desired flags. It will return a %Status; you can extract its error strings with $System.Status.GetErrorText().
Do you need to embed the PDF file in the HL7 message so that it can be extracted as a PDF by the receiving system, or do you need to extract patient demographic and clinical or financial data from the PDF file and send the discrete data as field content in the HL7 message?
Certifications & Credly badges:
![InterSystems HL7® Interface Specialist](https://images.credly.com/images/d235c8cf-2d11-49b8-86f5-a6a3e3481bcc/image.png)
![HealthShare Unified Care Record Fundamentals Training](https://images.credly.com/images/e76f71aa-3eba-4d00-9a8f-33cfc44efbdb/image.png)
![HealthShare Unified Care Record Overview Training](https://images.credly.com/images/05398549-9086-4a63-b33f-36130f9d2bf9/image.png)
![HealthShare Patient Index Training](https://images.credly.com/images/9226050c-cd94-4c22-9c6b-27bf2d8efcd3/image.png)
![InterSystems Developer Community Expert](https://images.credly.com/images/0451c765-1220-41c0-b22f-7c777dbe17dc/image.png)
![InterSystems Developer Community Moderator](https://images.credly.com/images/288a3661-72e9-4275-a943-063ae9e7910f/image.png)
Global Masters badges:
![Open Sesame!](https://community.intersystems.com/sites/default/files/badges/303371180-6de11138-f4e7-4113-b5cc-836269f07693.png)
![1,000 Points](https://community.intersystems.com/sites/default/files/badges/290121674-53216c4b-fe0c-44e7-9d75-2f24390135ed.png)
![Challenge Starter](https://community.intersystems.com/sites/default/files/badges/295959213-b83dd91a-663f-4f07-8e0e-e3287b7c2309.png)
![5,000 Points](https://community.intersystems.com/sites/default/files/badges/290121698-6976e2e4-084b-4026-bc5f-728c5e1ebe41.png)
![10K Points](https://community.intersystems.com/sites/default/files/badges/290121716-e7d970ee-2b18-423a-8871-5cc231687a22.png)
![Challenge Pro](https://community.intersystems.com/sites/default/files/badges/295959188-ff491b32-f0e9-4485-ad40-1c6db234985a.png)
![20K Points](https://community.intersystems.com/sites/default/files/badges/290121739-e1a39538-d83e-4205-9906-8e6466bf9371.png)
Followers:
Following:
The code block action in a DTL is for writing arbitrary ObjectScript, not Javascript. It's commonly used for for data manipulation that can't be satisfied by the methods available in the FunctionSet; for example, extracting and decoding a base64-encoded PDF from an OBX:5.5 field and writing it to a file. It can also be used to interact with globals to maintain state between invocations of the DTL, or perform a database lookup, or even write values to the default device that will display in the Test tool. Very useful for debugging.
I would not recommend using it for operations that could potentially block. There's no built-in mechanism for setting a timeout so use a BPL for those cases.