data mapper HL7 - segment line terminator

Six Stars

data mapper HL7 - segment line terminator

Using Talend Data Mapper and an HL7 structure output, the mapper automatically puts a CR at the end of the segments.  Is there any possibility to reconfigure this to use CRLF?  In the provided (read only) HL7 structures, the Terminator field is blank.  I am thinking there is must be some sort of configuration of this somewhere.


image.png

Moderator

Re: data mapper HL7 - segment line terminator

Hi,

Which is talend build version you are using? What does your input data look like?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: data mapper HL7 - segment line terminator

Input data is anything from XML, Flat file, or Dataflow. HL7 standard output structures always just have a CR for a terminator, which is actually the HL7 standard and turns out it is not really an issue. But I was just wondering where this would be configured at. Because there might be times we want to change how the output is handled (like to omit translating reserved words into escaped characters).
Highlighted
Six Stars

Re: data mapper HL7 - segment line terminator

The version is 6.3.1, Build 20161216_1026
Nine Stars

Re: data mapper HL7 - segment line terminator

Hi,

 

1-Could you send a screenshot of your structure properties for HL7 format ?

 

2-Anyway here is a workaround. You can add a tReplace component after your tHmap:

Capture.PNG

Eric

Six Stars

Re: data mapper HL7 - segment line terminator

Hi eric, thank you for the work-around.

 

The HL7 structures came with an Additional Talend Package install from Talend.  I am not sure what the exact name of it is, but it is pretty obvious when you see the available list.  Once you install this, you should see the structures under the Other Projects folder.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog