Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Development (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=8)
-   -   Repeating IN1 Segments (http://www.mirthcorp.com/community/forums/showthread.php?t=218727)

cabanjose367 11-06-2018 11:12 AM

Repeating IN1 Segments
 
I need to be able to generate additional IN1 segments when the incoming message has more than one IN1. Iam fairly new at this and im trying to understand how to do it. I know that I will have to use JavaScript to be able to loop through but then I don't know how to do it from there.

agermano 11-06-2018 10:53 PM

With HL7 in and out, depending on how similar your inbound and outbound messages are, it's usually easier to not use an outbound template at all, which will then allow you to modify msg directly rather than trying to recreate it in tmp.

If you still need to add them, try searching the Support sub-forum for adding OBX segments. That's a fairly common requirement, and the method will be the same. You ask more specific questions in that sub-forum as well if you can't find another example that matches close enough what you are trying to do and need additional help. Also try checking the User Guide for information on Iterator transformer steps, which are an alternative to doing the looping in Javascript.


All times are GMT -8. The time now is 04:37 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation