I am processing an XML format through a HTTP Listener, and the HL7 is in the XML content section. What is the quickest way to create an HL7 file?
Currently, this is how I am processing it:
var out = new java.io.FileOutputStream(filename + '.hl7', false);
var hl7 = qie.parseHL7String(message.getNode('Request/Part/Content'));
var bytes = hl7.getBytes();
var i = 0;
while (i < bytes.length)
{
out.write(bytes[i]);
++i;
}
out.close();
However, for larger attachments in the OBX section of the HL7, it takes a long time to process the file. I was wondering if there is any faster way in creating HL7 files.
Thanks.