hl7 zSegment – Segment wrapped in xml

Home Page Forums BizTalk 2004 – BizTalk 2010 hl7 zSegment – Segment wrapped in xml

Viewing 1 reply thread
  • Author
    Posts
    • #16216

      Hi All,

      I am building a multipart HL7 message with a MSH, Body and ZSegment. I have the Z Segment type defined as System.String and I pass it a simple string (ex: ZK1|blah|blah|), but the string gets wrapped in xml tags after biztalk processes (ex: <string>ZK1|blah|blah|</string>).

      I have seen around the net that there is a fix or a setting to remove this, but I am yet to find the solution.

      Does anyone know how to remove this?

       

    • #16220

      Well, if this was a non-multi part message… the easiest way to remove the <string> tags is to use the Flat File Assembler to convert the Xml into flat file.  i.e. make the schema called <String> with no name space.  Or just use your own custom Xml Message and add your part as Xml to be converted later.  Not real sure if that will work in your case. 

       

      If not, maybe try using Xml Document or XLang Any Message type rather than String. 

      • #16226

        Yea, I wish this was a non-multipart message, but with HL7 it will need to be.

        I have been following the instructions given from microsoft and it appears the z-segment needs to be System.String. I tried using system.xml.xmldocument and the segment never made it to the outgoing message.

         The only other idea that I had was to wrap my string in xml and hope that the disassembler recognized it, but it appears that is just replaces any < and > tags with the xml compliant tags, &lt; and &gt;.

         
        I am not sure where to go from here….
         

        • #16233

          Seems odd to me that MSFT tells you it need to be a System.String and then it does work.

           

          Maybe you have to use a specific type of pipeline?

           

          Sorry, I don’t know what else to say…

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.