Announcement

Collapse
No announcement yet.

Transform to HL7 from XML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transform to HL7 from XML

    I created a channel by using Mirth 1.6.1.2750
    + Source: I use a File Reader, input format is XML.
    + Destination: I use a File Writer, output format is HL7.

    Example, an input XML file likes that:
    <export>
    <result>
    <guid>c9fe23d2-8e3e-417f-8512-8d19fe2420c8:Result</guid>
    <ownerguid>f74ad8ad-dbc0-44cc-bccc-065b01e00bc8:Customer</ownerguid>
    <version>2008-04-28T10:17:29-04:00</version>
    <calibrationdataguid>Practice:1</calibrationdataguid>
    <obxabnormalflags>Abnormal Flag</obxabnormalflags>
    <obxnatureabn>dxResult</obxnatureabn>
    ....
    </result>
    </export>

    Currently, I just configure to Mirth transform one "result" each time.
    But I got a problem when I tried with more than one "result". How can I do that?

    The input message that I tried is
    <export>
    <result>
    <guid>c9fe23d2-8e3e-417f-8512-8d19fe2420c8:Result</guid>
    <ownerguid>f74ad8ad-dbc0-44cc-bccc-065b01e00bc8:Customer</ownerguid>
    <version>2008-04-28T10:17:29-04:00</version>
    <calibrationdataguid>Practice:1</calibrationdataguid>
    <obxabnormalflags>Abnormal Flag</obxabnormalflags>
    <obxnatureabn>dxResult</obxnatureabn>
    ....
    </result>
    <result>
    <guid>c9fe23d2-8e3e-417f-8512-8d19fe2420c8:Result</guid>
    <ownerguid>f74ad8ad-dbc0-44cc-bccc-065b01e00bc8:Customer</ownerguid>
    <version>2008-04-28T10:17:29-04:00</version>
    <calibrationdataguid>Practice:1</calibrationdataguid>
    <obxabnormalflags>Abnormal Flag</obxabnormalflags>
    <obxnatureabn>dxResult</obxnatureabn>
    ....
    </result>
    </export>

    but it is fail.

    Please help ...Thanks so much.

    Post edited by: thusuong, at: 10/06/2008 21:23
Working...
X