Mirth Connect 4.1.0 Released!

Mirth Connect 4.1.0 is now available as an appliance update and on our GitHub page. Mirth Connect 4.1.0 includes new features such as new event log messages, additional fields to the Welcome to Mirth Connect screen, new information included in alerts as well as many smaller changes, updates, and improvements. This release also contains several improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Transform response object message to hl7 object

  • Filter
  • Time
  • Show
Clear All
new posts

  • cord73
    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

    Leave a comment:

  • cord73
    started a topic Transform response object message to hl7 object

    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.