web stats
Repeating IN1 Segments - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Thread Tools Display Modes
Old 11-06-2018, 10:12 AM
cabanjose367 cabanjose367 is offline
Mirth Newb
Join Date: Sep 2018
Posts: 9
cabanjose367 is on a distinguished road
Default 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.
Reply With Quote
Old 11-06-2018, 09:53 PM
agermano agermano is offline
Mirth Guru
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,165
agermano is on a distinguished road

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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 11:42 PM.

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