web stats
Alert Template Variables - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2008, 11:41 AM
tsmith tsmith is offline
What's HL7?
 
Join Date: Feb 2008
Posts: 5
tsmith
Default Alert Template Variables

Does anyone have a list of the variables available for use in the Error template section of the Alert system? I am using the ${Error} variable but would like to be able to include information from the HL7 message that had the error. Such as message id or information from within one of the segments such as patient ID or Patient name. If anyone has any ideas or suggestions I would really appreciate the help.

Tom
Reply With Quote
  #2  
Old 05-01-2008, 02:41 PM
geraldb geraldb is offline
Mirth Employee
 
Join Date: Aug 2006
Location: Irvine, CA
Posts: 314
geraldb is an unknown quantity at this point
Default Re:Alert Template Variables

Hello,

In the alert template you have the following variables:

${channelName}: The name of the channel.
${error}: The exception which occurred.
${SYSTIME}: The current time.

You do not have access to data in the channel map at this time. If you would like to create your own alerts and you know when they should be triggered, you can work around it by creating your own error message in a transformer that contains the information. Then, when you want an alert to be send, "throw" the exception and make sure you have an alert configured to watch for that (put a special string or ID in the exception to trigger the alert). For example:

Code:
throw "ERROR-1234: Patient ${patientId} has an error.";
Then have an alert configured to listen for errors which contain "ERROR-1234". Hope this helps.
__________________
Gerald Bortis | Chief Information Officer | Mirth Corporation
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert Template Variables bolota Support 0 01-22-2009 01:20 AM
E-mail Alert Not Working sniper1694 Support 7 12-08-2008 10:30 AM
Connection Alert ddissinger Support 0 09-25-2008 12:06 PM
Receiving empty alert messages elankreijer Support 3 05-21-2008 11:07 PM
SQL Variables not showing under Available Variables in 1.4 bobbie Support 4 04-23-2007 05:35 PM


All times are GMT -8. The time now is 01:49 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation