I've only been using Mirth a couple of weeks, so please forgive me if this is a daft question...
Is there a means by which I can set variables at a message-level scope? I think I understand what each of the various "maps" do, and something along the lines of a messageMap would be helpful for what I'm trying to do.
As it stands, it would appear there is no messageMap; in lieu of a messageMap, is it possible to pass a variable that isn't part of a message between two channels for the lifetime of that message? Also, is it possible to pass a variable, along with a response from channel-to-channel? This isn't what the responseMap does, is it?
The reason for doing this would be something along the lines of:
Receive message, insert a copy of it into a DB other than the Mirth DB, and return the message ID upon successful insert. Then, I want to keep this message ID in the context of the message, across whatever channel(s) the message goes to next. As well as this, I want to be able to NACK the message from any point in the process, by setting a variable to some value, and passing this all the way back up the chain to the channel that received the message from the external system, e.g. to produce a meaningful HL7 NACK to send back to the source system. Is it possible to do this? I don't want to use globalMap, because I want to option to asynchronously handle messages in the future (not HL7, obviously :) ).
Is there a means by which I can set variables at a message-level scope? I think I understand what each of the various "maps" do, and something along the lines of a messageMap would be helpful for what I'm trying to do.
As it stands, it would appear there is no messageMap; in lieu of a messageMap, is it possible to pass a variable that isn't part of a message between two channels for the lifetime of that message? Also, is it possible to pass a variable, along with a response from channel-to-channel? This isn't what the responseMap does, is it?
The reason for doing this would be something along the lines of:
Receive message, insert a copy of it into a DB other than the Mirth DB, and return the message ID upon successful insert. Then, I want to keep this message ID in the context of the message, across whatever channel(s) the message goes to next. As well as this, I want to be able to NACK the message from any point in the process, by setting a variable to some value, and passing this all the way back up the chain to the channel that received the message from the external system, e.g. to produce a meaningful HL7 NACK to send back to the source system. Is it possible to do this? I don't want to use globalMap, because I want to option to asynchronously handle messages in the future (not HL7, obviously :) ).
Message-scoped variables
0 commentaires:
Enregistrer un commentaire