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
How to handle '&'
System
Originally posted by Ian Morris
Part of an OBX that leaves a source system contains the phrase "Signs & Symptoms".
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Steve MacDonald
We actually change them to the word 'AND'.
regsub -all {&} [inbound msg] "and" [outbound msg]
Jim Kosloskey
Ian,
The & is probably defined in the MSH-2 field and is the sub-component separator.
So the sending system SHOULD be following the standard and escaping that (the escape character also in MSH-2 is probably ).
There is a standard notation specified in the HL/7 standard for escaping the sub-component character no matter what the actual cahracter is. That notation is T (assuming is the escape character in MSH-2).
Try contacting the source system and ask if they will follow the standard and escape separators appropriately.
Then the receiving system needs to be able to reverse the escaping - or - you can do that with a proc after the Xlate.
If the source system will not or cannot do the escaping for you then there are a lot of mechanisms (non of them as reliable as the escaping mechanism from the source) which can be deployed - including what Steve prorposed (although if you have any REAL sub-component separators in the message those will be lost with that technique).
Even if you were to preserve the invalid sub-component character will the receiving system have similar problems?