We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

Rule fail between repeating events

Hello everybody,

Does anybody know why when I compare an item that is in two repeating events the rule is nos fired or it fails.

I have this target:

SE_CYCLES[2].F_AYCICLOS.IG_AYCIC_UNGROUPED.I_AYCIC_C002 (which is a date).

and I want check that this date is later than date in the first event so I do:

(SE_CYCLES[2].F_AYCICLOS.IG_AYCIC_UNGROUPED.I_AYCIC_C002) gt (SE_CYCLES[1].F_AYCICLOS.IG_AYCIC_UNGROUPED.I_AYCIC_C002)

But it doesn't works, no alert is fired. Maybe I'm wrong.

Thank you in advance.
Francisco.

Comments

  • GerbenRienkGerbenRienk Posts: 827 ✭✭✭
    Hi Francisco,
    If you use the full path of the target in your expression, OC "thinks" it has to read it from the database. Your Rule will not fire, but the next time you hit Save it will!
    So please change your expression into
    (I_AYCIC_C002) gt (SE_CYCLES[1].F_AYCICLOS.IG_AYCIC_UNGROUPED.I_AYCIC_C002)
    Kind regards,
    Gerben Rienk
  • fhernandezfhernandez Posts: 38
    Thank you very much once again Gerben. Now it works as I hope.

    Kind regards,
    Francisco Hernández.
This discussion has been closed.