HL7 Fundamentals

Translating HL7

Translating HL7 messages using the Iguana Translator is easy. It’s best to begin with a simple ‘Hello World’ example:

This code would typically go into a Translator filter, so the channel configuration would look something like this:

Where the Source and Destination components would be a LLP Listener and a LLP Client component. Here’s the source code to the module:

function main(Data)
   local MsgIn = hl7.parse{vmd='example/demo.vmd', data=Data}
   local Out = hl7.message{vmd='example/demo.vmd', 
              name=MsgIn:nodeName()} 

   Out:mapRange(MsgIn, 1)

   Out.MSH[4][1] = 'Acme'

   queue.push{data=Out:S()}
end

See Also