Announcement

Collapse
No announcement yet.

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
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎