Dave Stockmann

creating a rule to check an array

Discussion created by Dave Stockmann on Jan 29, 2010
Latest reply on Jan 30, 2010 by Shishir Mishra

Sorry for the seamingly easy question, however, I'm struggling to get this rule created.  I have a string array variable which contains types of insurances.  In one of my rules,

I need to check if the patient has Medicare Part D or Medicare Part B insurance.


Can someone explain to me how to best do this?


Here is what I've done so far (the text in bold does not compiling but hopefully

you can get what I'm trying to do):


if app.patient.insurance.isContained("MedicarePartD") and app.products.hasOnlyNonInjectables
then {
  app.response.denyReason = "MedicareDDeny".