Announcement

Collapse
No announcement yet.

EDI to XML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    monica
    Mirth Newb

  • monica
    replied
    I am new to EDI and also the transformation. I have imported the channel and trying to transform from EDI X12 to Json format but facing some issues.

    My main aim is to transform ED X12 to FHIR format.

    Could anyone help me to built the channel.



    Thanks you in advance

    Leave a comment:

  • vijayahl7
    What's HL7?

  • vijayahl7
    replied
    It works., destination template i have given wrong. corrected it to ${message.transformedData}. Thanks!

    Leave a comment:

  • vijayahl7
    What's HL7?

  • vijayahl7
    replied
    Thanks StefanScholte! It works

    Yet the data am getting in Output XML is not a real xml .

    I gave in destination template as ${XMLStr.transformedData}. Please correct me!
    All that i am getting in xml is ${XMLStr.transformedData}. How to get the proper xml data here?

    Attaching the channel and response here.

    EDItoXML.xml

    xml.xml

    Leave a comment:


  • StefanScholte
    replied
    Hi Vijaya,

    You need to change your EDI properties.
    You can do that on the summary tab choose "Set Data Types" inbound properties: EDI/X12 and then the following.

    Segment delimiter: ' (single quote)
    Element delimiter: +
    subelement delimiter: :

    Then it wil transform into XML.

    kind regards
    Stefan Scholte

    Leave a comment:

  • vijayahl7
    What's HL7?

  • vijayahl7
    started a topic EDI to XML

    EDI to XML

    Hi,

    Am new to EDI n Mirth. Trying to convert EDI file to XML. Given EDI as the input parameter data type for source and destination. Set Output parameter as xml data type in destination.

    Provided FIle Reader n File writer as the source and destination respectively.

    Built transformer with EDI to XML conversion function.

    Attaching the channel here. When i deploy., ending up with a error "ERROR: Error converting message or evaluating filter/transformer".

    Please Help me out on where am going wrong!

    EDItoXML.xml

    Error-EDItoXML.txt

    edi.txt

    Thanks for your patience!

    Vijaya
    vijayahl7
    What's HL7?
    Last edited by vijayahl7; 05-20-2014, 11:48 PM. Reason: missing attachment
Working...
X