xml - Add a line break in HL7 message generated from Mirth connect -


adding line break in hl7 important w/o it, mirth connect cannot parse message.

i send xml message mirth connect convert hl7. message has 1 root node , multiple child nodes. need add new line after every child node in hl7.

firstly unknown whether setting add new line has done xml being send or in mirth connect ?

i tried multiple xml codes include line break :

  • &#10 and/or &#13
  • /r/n and/or /n
  • /br or br tag
  • cdata tag
  • &#xd and/or &#xa

from mirth documentation : http://www.mirthcorp.com/community/wiki/display/resultshl7mapping/separators+and+escape+sequences

tried other options not line break.

please suggest solution add new line in generated hl7 file.

the xml sent mirth connect :

<?xml version='1.0' encoding='utf-8' ?>     <hl7message>         <msh>             <msh.1>|</msh.1>             <msh.2>^~\&amp;</msh.2>             <msh.3>                 <msh.3.1>snap                     ehr</msh.3.1>             </msh.3>             <msh.4>                 <msh.4.1>kreetti                     clinic</msh.4.1>             </msh.4>             <msh.5>                 <msh.5.1>receiving                     application</msh.5.1>             </msh.5>             <msh.6>                 <msh.6.1>receiving                     facility</msh.6.1>             </msh.6>             <msh.7>                 <msh.7.1>20130719</msh.7.1>             </msh.7>             <msh.8/>             <msh.9>                 <msh.9.1>vxu</msh.9.1>                 <msh.9.2>v04</msh.9.2>             </msh.9>             <msh.10>                 <msh.10.1>634158415302812500</msh.10.1>             </msh.10>             <msh.11>                 <msh.11.1></msh.11.1>             </msh.11>             <msh.12>                 <msh.12.1>2.3.1</msh.12.1>             </msh.12>         </msh>           <pid>             <pid.1>                 <pid.1.1>0123</pid.1.1>             </pid.1>             <pid.2/>             <pid.3>                 <pid.3.1>0123</pid.3.1>                 <pid.3.2/>                 <pid.3.3/>                 <pid.3.4/>                 <pid.3.5>mr</pid.3.5>             </pid.3>             <pid.4/>             <pid.5>                 <pid.5.1>jacob</pid.5.1>                 <pid.5.2>oram</pid.5.2>             </pid.5>             <pid.6/>             <pid.7>                 <pid.7.1>19930904</pid.7.1>             </pid.7>             <pid.8>                 <pid.8.1>m</pid.8.1>             </pid.8>             <pid.9/>             <pid.10/>             <pid.11>                 <pid.11.1>1111</pid.11.1>                 <pid.11.2/>                 <pid.11.3>updated</pid.11.3>                 <pid.11.4>dyer</pid.11.4>                 <pid.11.5>23323-2342</pid.11.5>             </pid.11>             <pid.12/>             <pid.13>                 <pid.13.1/>                 <pid.13.2/>                 <pid.13.3/>                 <pid.13.4/>                 <pid.13.5/>                 <pid.13.6/>                 <pid.13.7>1111111111 </pid.13.7>             </pid.13>         </pid>            <rxa>             <rxa.1>                 <rxa.1.1>0</rxa.1.1>             </rxa.1>             <rxa.2>                 <rxa.2.1>999</rxa.2.1>             </rxa.2>             <rxa.3>                 <rxa.3.1>20091202</rxa.3.1>             </rxa.3>             <rxa.4>                 <rxa.4.1>20091202</rxa.4.1>             </rxa.4>             <rxa.5>                 <rxa.5.1>88</rxa.5.1>                 <rxa.5.2>influenza</rxa.5.2>                 <rxa.5.3>cvx</rxa.5.3>             </rxa.5>             <rxa.6>                 <rxa.6.1>1</rxa.6.1>             </rxa.6>             <rxa.7>                 <rxa.7.1>1</rxa.7.1>                 <rxa.7.2>1</rxa.7.2>                 <rxa.7.3>1</rxa.7.3>             </rxa.7>             <rxa.8/>             <rxa.9>                 <rxa.9.1>00</rxa.9.1>             </rxa.9>             <rxa.10>                 <rxa.10.1/>                 <rxa.10.2>butler</rxa.10.2>                 <rxa.10.3>internist</rxa.10.3>                 <rxa.10.4/>                 <rxa.10.5/>                 <rxa.10.6>dr.</rxa.10.6>             </rxa.10>             <rxa.11>                 <rxa.11.1>kreetti                     clinic</rxa.11.1>             </rxa.11>             <rxa.12/>             <rxa.13/>             <rxa.14/>             <rxa.15>                 <rxa.15.1>42142314</rxa.15.1>             </rxa.15>             <rxa.16>                 <rxa.16.1>20100827000000</rxa.16.1>             </rxa.16>             <rxa.17>                 <rxa.17.1/>                 <rxa.17.2></rxa.17.2>             </rxa.17>         </rxa>           <rxr>             <rxr.1>                 <rxr.1.1/>                 <rxr.1.2>injection</rxr.1.2>             </rxr.1>             <rxr.2>                 <rxr.2.1/>                 <rxr.2.2>hand</rxr.2.2>             </rxr.2>         </rxr>     </hl7message> 

when checked encoded message in dashboard of mirth connect, new line coming. thought might issue file writer of destination.

and found that, default notepad of windows not show new line. opening generated file in other editors included new line. :)


Comments