I would like to convert one record line within batch file to a single hl7 message via tcl / xlate. How can i do that? anyone out there has something would like to share with? Thanks
This is very easily done by using the fileset-local protocol and selecting ‘nl’ (for newline) as the ‘style’ on your inbound thread. This will read each line of the file as a single message and then delete the file when it’s done processing.
Thank for the reply. One thing i would ask, which way you conver the incoming message to an particular message type sending to outbound thread, by tcl proc or xlate file? my flat file data would be deliminated by”|” sequencially and no segment id leading, can it be done?
You would treat this no different than any other interface. I’m assuming that you would define an inbound record layout (a VRL, based on the fact that you described it as a pipe delimited file), then build a translation (Xlate) that maps to whatever outbound record definition you specify.