web stats
(Hopefully) quick question about Filters - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2012, 06:24 AM
RobertD RobertD is offline
OBX.2 Kenobi
 
Join Date: Apr 2012
Posts: 53
RobertD is on a distinguished road
Default (Hopefully) quick question about Filters

I have to reject a message unless it is from one of two Provider's Names.

I have this in the Source Filter as a rule:

Accept message if "msg['ORC']['ORC.12']['ORC.12.1'].toString()" equals 'NAME1'|'NAME2'

(Where for this example, the doctor's names are NAME1 and NAME2)

Is this correct? What I am really concerned about are the quotes around the doctor's names being correct and the placement of the pipe symbol for the 'OR'.

Thank you in advance,
Robert

Last edited by RobertD; 04-27-2012 at 06:34 AM.
Reply With Quote
  #2  
Old 04-27-2012, 06:46 AM
RobertD RobertD is offline
OBX.2 Kenobi
 
Join Date: Apr 2012
Posts: 53
RobertD is on a distinguished road
Default

Nevermind; I switched it to JavaScript and I'm doing it this way:

Code:
if ((msg['ORC']['ORC.12']['ORC.12.1'].toString() == 'NAME1') || (msg['ORC']['ORC.12']['ORC.12.1'].toString() == 'NAME2'))
   return true;
else
   return false;
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Mirth Corporation