No announcement yet.

Transform response object message to hl7 object

  • Filter
  • Time
  • Show
Clear All
new posts

  • Transform response object message to hl7 object

    Hi all,

    I'm trying to access the ACK message from a response object using the msg[][] form.

    I have the following code:


    I can see the message is hl7 in the logs but I want to be able to access the fields to determine if there were errors or not in order to return the proper soap response to the client. I've looked briefly around the forum and noticed there was a SerializerFactory? can I pass this a string that is already an hl7 object and have it create a message object for me? I'm not sure the best way to go about this, please let me know if clarification is necessary.

  • #2
    Re:Transform response object message to hl7 object

    var myxml = new XML (SerializerFactory.getHL7Serializer(false, false).toXML(messsageString));'myxml='+myxml['MSH']['MSH.3']['MSH.3.1']);

    seems to do the trick pretty nicely - all about the E4x