NextGen Connect 3.10.1 Released!

NextGen (Mirth) Connect 3.10.1 is now available as an appliance update and on our GitHub page. This release contains bug fixes. See the release notes for the list of fixes.

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

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

Add element to outgoing data template?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Add element to outgoing data template?

    Is there a way to add an element with JS? I have a source application sending ORU^R01 messages with OBX segments that, depending on content, sometimes need to be changed to NTE segments. I think the way to solve this is to add NTE segments to the outgoing data template on the fly when needed. Is this possible?

  • #2
    Re:Add element to outgoing data template?

    Yes - there are a few ways, however the easiest is to:

    msg['NTE'] = "<NTE><NTE.01>Test</NTE.01><NTE>";
    You might need to adjust the XML a bit, but that is the syntax. You can also use tmp['NTE"] for modifying the data template (rather than the incoming message).
    Chris Lang