infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Iterate Clarification from Group to Field/Segment
System
Originally posted by Chris Wethey
I am looking to Iterate on the OBX fields and I am looking for claification on what the difference is for Field and Segment from Group.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Chris,
If I understand correctly you want to know how to address the OBX-5 field repetitions.
You will need an ITERATE subordinate to the OBX Group Iteration which is defined as a Field Iteration and assign it a %fx (like %f1) counter. Let's assume %f1. Then your address path would look like this:
1(%g1).1(%g2).1(%g3).OBX(0).#5(%f1)
So you will have 4 ITERATES all nested together. In each subordinate ITERATE remember to specify the predecessor group counter in the appropriate position of the basis address path. Like this:
ITERATE Group 1
basis 1
ITERATE Group 2
basis1(%g1).1
ITERATE Group 3
basis 1(%g1).1(%g2)
ITERATE Field 1
basis 1(%g1).1(%g2).1(%g3).OBX(0).#5
By the way do the messages you receive really have rpetitions at each of those groups. If not there is no need to specify those iterations.
For example if this is a result (ORU), normally multiple patients are not sent in a single message (Group1) and a lot of systems only send one Ordered result in a single message (Group 2).
System
Originally posted by Chris Wethey
Jim,
Would I have to iterate for the NTE outbound if copying the field from OBX to NTE but have to Iterate for another field in the NTE since it seems to be looking for it when displayed in the Xlate process when creating.
1(%g1).1(%g2).1(%g3).NTE(
0
).#3
(%f1
).[0]
Would the %f1 be for the NTE( ) then %f2 be for the field #3 field. The other thing we are looking to do is delete the OBX record since the third party vendor does not like having OBX tx record and NTE record in the file.
Chris