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
need help with setting up HRL for OB msg from HL7 IB msg
Nancy McDaniel
I am getting back to this again and need to get this working.
I have an HL7 inbound msg that needs to be formatted to OB HRL file.
This file is a text report. I have a detail area in my report file that I want to write to from repeating obx.
I have my translation code set to iterate. The problem is I am not sure how to setup my hrl. If I set up this detail area on my HRL for the OB report file to repeat 20 times, it works as long as I don't have more than 20 OBX segments on my IB msg.
If I use the condition while, how do I specify the field. Is this the field on the IB or OB? I do not have a record identifier on my outbound HRL for this detail area.
I appreciate assistance with this as I need to get this setup very soon and working.
thanks,
Nancy
Find more posts tagged with
Clovertech
Comments
RobertKersemakers
I think you do need a record identifier. I have used HRL's as inbound, but never outbound, so I just created a small Xlate to check some things. I guess you're trying to repeat an FRL inside the HRL, right?
For this example, I have 2 FRL's:
Header.frl
date( 8 )
Text.frl
segmentname( 3 )
segmenttext( 70 )
My HRL looks like this:
Message.hrl
Name: HEADER
File Name: Header.frl
No Repeat
Name: TEXT
File Name: Text.frl
Repeat While Field: TEXT.segmentname
Value: TXT
After this, I made a small Xlate (inbound doesn't matter...):
COPY =01012006 -> HEADER.date[0]
COPY =TXT -> TEXT(0).segmentname[0]
COPY =This is text one -> TEXT(0).segmenttext[0]
COPY =TXT -> TEXT(1).segmentname[0]
COPY =This is text one -> TEXT(1).segmenttext[0]
This Xlate will generate 1 HEADERs and 2 TEXTs. But as soon as I change the 'Repeat While Value' from TXT into AAA in the HRL definition, the TEXTs are omitted.
So if you want to use the Repeat While, you need a record identifier. I'm not sure how the Repeat Block works...
Hope this helps!