Announcement

Collapse

NextGen (Mirth) Connect 3.10.0 Released!

NextGen (Mirth) Connect 3.10.0 is now available as an appliance update and on our GitHub page. This release includes better SQL Server database support, security improvements through fixes and library updates, and improvements for the Advanced Clustering plugin with a focus on improving performance of many of the tasks that are carried out on a frequent interval. 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

Add element to outgoing data template?

Collapse
X
 
  • 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:

    Code:
    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

    Comment

    Working...
    X