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
Iterate VRL to HL7?
Rick Martin
I want to translate a VRL input into multiple HL7 segments. For instance if I have:
VRL record 1
VRL record 2
VRL record 3
...
I want to translate the above to multiple HL7 segments, one per VRL record, for example to:
OBX|1|...
OBX|2|...
OBX|3|...
I'm assuming I should use ITERATE to do this, and that I should use a SEGMENT type with a %s1 variable, but I can't figure out what to set the BASIS to. Am I even on the right track?
Thanks, Rick
Find more posts tagged with
Clovertech
Comments
RobertKersemakers
Hi Rick,
I think you need to define an HRL that contains a repetition of your VRL-format; I'm not sure though which sort of repetition you'll need.
For example:
Segment 1
========
Name: RECORD
File name: <name_vrl>.vrl.frl
Repeat options: (not sure...)
Then to iterate over the VRL's in your translation use
Type: segment;
Basis: RECORD
Variable: %s1.
You can then access the fields in the VRL by using
RECORD(%s1).<field>.
Rick Martin
Robert,
Thanks! That's exactly the help I needed. I now have it working correctly. The only weirdness is that in the XLT configurator, I sometimes get the textbox for the segment repetition number/variable in the input message format (left pane) and I sometimes don't - not sure why, but if I manually type the (%s1) after the segment name it works.
Rick
System
Originally posted by Paul Johnston
Rick ,
I know I am responding to an old post but after searching the archives I noticed your scenario is similar to mine.
May I ask a few questions.
Were your Variable records field delimited with a comma. ?
How did you know when you hit the last OBX ?
Would be so kind to post or email your VRL for me to view. ?
Thank you.
Paul