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
Changing the sequence of the OBX segments
Roy Osumi
I want to change the sequence of the OBX segments in a R01.
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Gary Atkinson
I'll take a stab at this.... In your xlate try this:
1.) Put an IF outside of iterate and pathcopy the OBX if OBX:3 is not equal to ST.
--> This will give all the OBX's except the ones with "ST" in OBX:3
--> Init your own counter
--> Now you want to add to end of the last OBX the OBX's with "ST"
2.) Put another IF right after your last iterate but say is equal to ST
--> Create another iterate including the last iterate in your basis
--> Math add one to the your init counter
--> Pathcopy the OBX's
Max Drown
This is something that might be easier to do in a tcl proc either pre or post xlate. You'd split the message into a list of segments, pull out the OBX segments, sort the OBX segments however you want them, and then rebuild the message.
Jim Kosloskey
This is not that difficult to do in an Xlate (if you understand Xlates) and in my opinion Xlate is the better place to do this work - it keeps everything in front of you.
Anyway, I do this frequently in an Xlate and it is no big deal.
Max Drown
This is not that difficult to do in a Tcl (if you understand Tcl) and in my opinion Tcl is the better place to do this work.
Roy Osumi
Thanks for the repsonses so far.
I have been trying to do this in an Xlate. I have tried it in one iteration and two or more interations. it still outputs it in order. Funny thing is that even though I do the logic on the OBXs with ST last whether its one iteration or mulitple the ST always come out first with my logic including the OBX counters. So my output would look something like this:
OBX|6|ST|||a
OBX|7|ST|||
OBX|8|ST|||b-c
OBX|1|FX|||1
OBX|2|FX|||2
OBX|3|FT|||da
OBX|4|FT|||db
OBX|5|FT|||dc
Can you folks give me examples of how you would do this? I am running CL 5.5 rev 1 on AIX 5.3.
Jim Kosloskey
Roy,
Email me directly.
System
Originally posted by Sam Craig
One other thing......
Yes, it can be done. But, I try to avoid "messing" with result messages as much as possible.
These are patient results and clinical decisions are made from these result messages.
TEST TEST TEST and then TEST AGAIN!!!!
Later,
Sam
Roy Osumi
here's an update. Jim was able to figure this out using an Xlate. On the inbound he used two iterates and used only one on the outbound. Didn't know the Xlate was capable of doing something like this. Pretty slick!