web stats
Adding the HL7 message to the alert - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2017, 08:03 AM
Bougie Bougie is offline
What's HL7?
 
Join Date: Jan 2017
Posts: 5
Bougie is on a distinguished road
Default Adding the HL7 message to the alert

Hi,

I set some mail alerts when my channels have a problem sending or receiving an HL7 message. I could find a lot of informations about the error but I would like to add the content of the message pre and post transformation.

Is there a way I can achieve this?

Thanks for the help
Reply With Quote
  #2  
Old 05-31-2017, 08:40 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 835
siddharth is on a distinguished road
Default

Well msg,tmp is not part of the Alert Variables in the Alert section, so I don't think you can.

But you do have access to globalMapVariable in there. So I think if you push your message in the globalMap you can pull it there.
Reply With Quote
  #3  
Old 06-01-2017, 12:30 AM
Bougie Bougie is offline
What's HL7?
 
Join Date: Jan 2017
Posts: 5
Bougie is on a distinguished road
Default

I thought about this solution but I couldn't find the way to put the source input message or destination output message to the globalMapVariable.

Any leads?
Reply With Quote
  #4  
Old 06-02-2017, 03:24 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 835
siddharth is on a distinguished road
Default

This would work if you put inside source transformer of channel 1.

globalChannelMap.put('Channel1Message',msg)
Reply With Quote
Reply

Tags
alert, hl7 message, mail, transformation

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


All times are GMT -8. The time now is 03:24 AM.


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