It takes only one mandatory parameter 'data' and an optional vmd parameter
Hl7.parse will always find all segments in a message
It returns a writeable node tree containing a parsed HL7 message
It takes two mandatory parameters data and vmd
The tostring() function converted our outbound node tree into a string
Lua cannot convert a node to a string
Tostring() is a function that comes as part of the Lua language
Tostring() does not allow carriage returns so should not be used for hl7
The Milestone stores the main function, 'shared' functions and any 'other' files that are in your project.
If there are no milestones Iguana will run the code in editor instead.
You cannot revert a single file in a project to a milestone you must revert all files
You must restart the channel after saving a milestone for it to take effect on the channel.
So when we re-set the queue the messages were unaltered/
So when we resubmitted a message any changed code in our filter would run.
This way we can have different logic for each outbound channel
All of the above
We had to add a separate notification module to Iguana.
We added a user to receive the alerts and that user needed an email address.
We setup a notification rule to look in the logs for the string 'ALERT:'.
We added to our script to look in the message for 'VIP' then inserted 'ALERT:' into the logs.