The environment the scripts execute in will be under the HL7 Listener. The HL7 Listener processing environment is a multi-threaded processing environment similar to a Web server environment.
-
Do not use MsgBox in your scripts. This will cause the script execution to stop and block the HL7 Listener. Instead use the following:
-
Err.Raise – The error string will be printed in the HL7 Listener window and the verbose file.
-
COBHL7ScriptContext.SetScriptError – The error string will be printed in the HL7 Listener window and the verbose file.
-
-
Verify results returned from function calls. Use the VerifyObject function as shown under Script Example.
-
Do not write long-running scripts. These can block the HL7 Listener.