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
General
Regular Expression in SMAT
Keith McLeod
What is the language behind the regular expression usage in SMAT. I am looking to see if I can search in SMAT for messages that have '&' in other locations besides directly after MSH in MSH:2. I am able to do this in other tools but though it would be nice to apply it in SMAT directly. I understand I will probably get a lot of hits if there are many messages with the '&' character in fields as part of the HL7 convention. But lets say I want to find messages where the '&' falls between 2 pipes or 2 carats or a combination of pipe and carat.
Example |History & Physical|^R&D|^Bob & Bill^|
Can this be done using the SMAT regular expression location?
Find more posts tagged with
Clovertech
Comments
Tom Rioux
Since most of the time you would see the & symbol preceded by and/or followed by a space, you can simply enter " &" (that is a space then the symbol) into the regular expression search field in SMAT. That would return instances such as:
History & Physical
Bob & Bill
However, if you are looking to return those that may be preceeded and/or followed by the field separator pipe, you would need to use the backslash in your regular expression search. To find something like "|&|" you would enter the reguar expression search as "|&|" or just simply "|&".
In either instances, you are not just returning all messages because of the one listed in MSH.2.
Hope this helps....
Tom Rioux
Baylor Health Care System
John Mercogliano
Keith,
I use the following regular expression in the Smat tool to find messages with more then 1 ampersand:
.*&.*&
Hope this helps,