web stats
Loop help with multiple OBRs - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 07-12-2017, 12:36 PM
rkMC rkMC is offline
OBX.1 Kenobi
Join Date: May 2017
Posts: 48
rkMC is on a distinguished road
Default Missing Functions

Originally Posted by mcalKno View Post
You could put something like this outside of your OBR loop to clean everything up at the end.

PHP Code:
for each(obr in msg.OBR){
newOBXNum 1;
each (obx in getSegmentsAfter(msg,obr,'OBX')){
obx['OBX.1']['OBX.1.1'] = newOBXNum++;

What has to be loaded on my MIRTH Connect to gain access to the functions such as getSegmentsAfter() and createSegmentAfter()?

I'm new to MIRTH. I don't have a clue.
Thanks in advance for your help.
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:53 PM.

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