Announcement

Collapse
No announcement yet.

referring to messages / fields using a filter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • referring to messages / fields using a filter

    when using a filter how do you refer to the field that you want to filter on....

    so for example... if I want to filter out all messages except A04's then maybe I should create a filter that says if field 9 (message type) in the MSH segment != A04 then reject...

    when I enter the field into the filter what syntax do I use

    MSH 9
    MSH(9)
    MSH:9
    MSH field 9

    ???

    thanks in advance for your help

  • #2
    Re:referring to messages / fields using a filter

    do something like this in the filter.

    Code:
    if (msg['MSH']['MSH.9']['MSH.9.2'].toString() == "A04"«») {
      return true;
    } else {
      return false;
    }
    you can find out the syntax by dragging/dropping a field from the message template.
    Chris Ro
    Sr. Software Engineer | Mirth Corporation

    Comment

    Working...
    X