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
Cloverleaf
Determining Segment Order
Michael Brande
Does anyone have a good way to determine Segment Order?
Any scripts out there that can be run against a file with HL7 transactions?
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
I am not sure I understand the question. Can you elaborate?
Charlie Bursell
Something simple
# Get file - read as binary because of CR
set file [open <hl7 filename> rb]
foreach seg [split $file \r] {
# Last CR will cause empty
if {$seg eq ""} {continue}
echo [string range $seg 0 2]
}
But as Jim says I am not really sure what you want here