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
Tcl Library
replace ~ with a -
System
Originally posted by Steven Lindsey
I'm a newbie at this. I have an Xlate already and I was going to add a tclproc to the OBR_44 to remove ~ to a -. What is the best way to do this? Here is an example.
Find more posts tagged with
Clovertech
Comments
Max Drown
The ~ is actually the repeating field delimiter (probably). You could do a concatenation in the xlate to get the desire results. Holler if you need more detail.
System
Originally posted by Steven Lindsey
i need more detail. Im not sure what you mean
Max Drown
In HL7, fields can repeat. Do you see a ~ in MSH.02? If so, then the tilda is the repeating field delimiter.
ZFL|ONE^TWO^THREE~ABC^DEF^GHI|||||
So in the ZFL segment that I just made up, ZFL.01 repeats. ZFL.01(0) is "ONE^TWO^THREE" and ZFL.01(1) is "ABC^DEF^GHI".
In your xlate, you can iterate over the field (OBR.44).
System
Originally posted by Steven Lindsey
I still can
david_barr
You probably need nested iterates: one for the group and one for the field. I could be wrong--I rarely use translations.
Jim Kosloskey
Normally OBR-44 is not a repeating field (probably why the receiving system needs the change).
Having said that, you will indeed need nested iterations. Also your basis for the OBR Group Iteration might be incorrect
Inside the OBR Iteration, you will need a field ITERATE for OBR-44.
Then inside that iteratin you will need a CONCAT that references the current occurrence of the OBR group AND the OBR-44 field as well as the outbound OBR-44 field (repetition 0 (1).
Something like this:
ITERATE - OBR Group