Info |
---|
Issue: Iguana To LLP can only handle fast/standard HL7 Ack, also it cannot push HL7 Ack into another channel.
|
Table of Contents |
---|
Design
Diagram: Traditional (From LLP/DB/File → LLP)
Diagram: From LLP/Trans → Filter Translator → Que …. go to other )
Key: net.tcp to receive HL7 ACK
Prerequisite
This implementation makes use of iNTERFACEWARE’s llp.lua shared module. Import the LLP custom client channel from the built in Iguana tools repository to add this module to your Iguana. https://help.interfaceware.com/v6/llp-client-custom
Implementation
Instead of using a from/to LLP component, this implementation makes use of the translator environment, and the ability to make LLP calls within the translator (or filter).
...
In this example the ADR response is pushed to the queue, however the ADR response can be handled in many different ways such as writing to a file or saving to a database.
Testing Your Implementation
Creating a channel that sends a pre defined ADR response as the ACK for the purpose of testing can be beneficial to ensure your code works as expected.
...
Code Block |
---|
local FILE_PATH = 'C:\\Program Files\\iNTERFACEWARE\\Iguana\\SampleMessages\\sample_ADR.txt' function main(Data) local ACK = readFile() ack.send(ACK) end function readFile() local file = io.open(FILE_PATH,'r') local content = file:read("*all") return content end |
Limitations
Using the translator to send and receive data over LLP, the is no option to include the following SSL files:
...