Subject:How to convert HL7 (EDI) file to XML? Author:luu tran Date:20 Feb 2007 07:11 PM
Hi7
New to SS and XML dev in general. I'm trying to create a java class to convert a HL7 (EDI) file to XML. I've tried to watch as many of the tutorials as I can but thus far I've hit a wall. I've managed to open a hl7 file, use the built in EDI adapter to convert to a XML file. However, I don't know where to go from here -- how to generate java code to do this automatically. Could someone point me to a step by step instruction for doing this? thanks
incidentally, when I have a converted xml file and click save, it says HL7 writing currently not supported. Is this normal? using SS2007 enterprise
Subject:How to convert HL7 (EDI) file to XML? Author:Tony Lavinio Date:20 Feb 2007 11:18 PM
HL7 isn't supported.
If you try to run the adapter against it to go from
HL7 to EDI, it will try to process the file, but at
this time only EDIFACT, EANCOM, IATA and X12 are
supported.
You can try to use Convert-to-XML to go further, but
HL7 has lots of nasty little bits like segments that
can be split and have continuations and support for
certain embedded data that aren't properly handled
there either.
We'd like to expand our support of HL7, and if you are
interested in pursuing this, please contact us at
stylus-field-report (at) progress.com.
Subject:How to convert HL7 (EDI) file to XML? Author:luu tran Date:21 Feb 2007 11:04 AM
thank you for the response.
supposing I have a edi file that IS supported, what is the next step after using the IDE to convert it to XML. How do I generate java code to do the same conversion programmatically?
secondly, while going through the SS tutorial, I recall seeing a java code example that uses java's own XML API to do this conversion, provided you have a xslt, But I can't find it again. Was I hallucinating?
Subject:How to convert HL7 (EDI) file to XML? Author:Tony Lavinio Date:21 Feb 2007 03:34 PM
If you create a pipeline and generate code from it,
you will see all of the proper steps.
Also, if you look in the documentation for the XML
converters, there is sample code. See also the
examples project under Adapters that is included
in the sample project.