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
ZPA segment to multiple OBX segments
System
Originally posted by Bob Deemer
I have a new HIS system sending lab orders with a ZPA segment. The lab system cannot deal with Z-segments and I must convert to multiple OBX segments in an ORM message.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Bob,
Is the ZPA segment repeating eithere as a part of a group or as a repeating segment?
Do the ZPA generated OBX segments need to go at the end of existing OBX repetions on the outbound or some other position relative to the existing OBX?
This is doable from within an Xlate without the need for Tcl depending on the answers to the above questions.
System
Originally posted by Bob Deemer
Answer to your first question is that the ZPA segment does not repeat at the segment or field level.
Second question: For every field populated in the ZPA there would need to be a corresponding OBX segment at the end of the ORM message. They would need to be sequentially numbered and the field # in the ZPA would need to be the variable data element identifier in the OBX.
If this helps, the new HIS system being installed is McKesson's Paragon going to a 3rd party lab system, Cerner Millenium.
Jim Kosloskey
Bob,
OK
Does the message that contains the ZPA also contain OBX segments?
If so, do the OBX segments generated by the ZPA need to go in any particular place in relationship to the existing OBX segments or can they just go at the end?
If there are existing OBX segments and the ZPA generated OBX segments can follow them - you would ITERATE over te OBX segments inbound creating OBX segments outbound and keeping track of the iteration counter (say with something like %g99 - your counter) associated with the inbound OBX so you know where to start the ZPA generated OBX segments (both from a counter position and for sequence numbering) .
Then you would have a set of COPYs for each of the ZPA fields that need to generate an OBX segment. Increment the %g99 counter and use it in the outbound OBX path to point to then proper OBX position and use %g99 (probably with a MATH ADD) to get the sequence number for each new OBX.
If there are no inbound OBX segments, then just do the COPYs for each ZPA field as above again using something like %g99 as the counter but starting with zero.
There are other discussions on this forum that talk about how to manage your own iteration counters but essentially you need a $ at the front ($%g99 for example) when referencing the counter in an Xlate Action (COPY, MATH, etc.) but no $ (%g99 for example) when using the counter in the address path of a field.
If there are existing inbound OBX segments but the ZPA generated OBX segments want to go somewhere besides after the inbound OBX segments then the above logic will need to be adapted.
System
Originally posted by Bob Deemer
Hi Jim,
The ORM can have OBX segments and the ones generated by the ZPA would just follow the ones already in the message. I will study this and play with it. I'm fairly new to Cloverleaf and have not needed to do any complex Xlates to date. I appreciate you help.
Thanks again.
Jim Kosloskey
Feel free to email me if you need assistance.
System
Originally posted by Bob Deemer
Hi Jim,
I hope to have time tomorrow to work on this translation. What is your email, incase I have questions. My email is bdeemer@citrusmh.org.
Thanks