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
Problems with sample files in the Testing Tool
jstafford
I've been having a hard time getting test files appropriately formatted for use in the Testing Tool. All of the messages I copy and paste, or otherwise create, have unacceptable formatting. Many times I'll only get the MSH segment, though, sometimes, I don't get anything at all.
My guess is that most text editors use newlines instead of carriage returns, throwing off the parser. What is the easiest way to make sure that the message that I am using to test has the appropriate encoding characters?
Find more posts tagged with
Clovertech
Comments
david_barr
I can think of a couple options. First you could use Emacs as a text editor. It doesn't have problems handling files with a mixture of CR segment terminators and LF message terminators.
Another option is to use LF or CR-LF to separate all of your segments and then use a script to replace the the LF characters with CR unless it is followed by MSH or at the end of the file.
You could also try using an editor designed for HL7 like HL7 Notepad or QuickViewHL7. I haven't tried either of these. I found them through an internet search.
System
Originally posted by Nate Kruse
I use WinVi. It's a simple, free application. I basically open the file in hex mode and search/replace all 0a's with nothing. Then if you have multiple messages in the file, search/replace 0d 4d 53 48 with 0d 0a 4d 53 48 to insert the 0a between messages. Also make sure that the last message in the file ends with 0d 0a. Every segment ends with 0d so that is why it is easy to remove all 0a's first, then put them back where needed. After you do it a few times, it gets to be a very quick and easy routine.
Good luck!
Nate