E4x appendChild to get a new HL7 xml

lundi 23 mars 2015

I am creating an HL7 message via..



var msg1;

for each (seg in msg.children()) {

if (seg.name().toString() == "MSH") {

msg1 = new XML(msg['MSH']);

}

else { msg1.appendChild(seg); }

}



var msgHL7 = SerializerFactory.getSerializer('HL7V2').fromXML(m sg1);



...but the final msgHL7 text does not have the CR after each segment. How should this be done in order to get them?



(there is more code than this, but for the sake of the question that code is not relevant)





E4x appendChild to get a new HL7 xml

0 commentaires:

Enregistrer un commentaire