Menu

#4478 Bug Report: Prevention Rules (Td)

OSCAR Main Trunk
open
nobody
None
5
2016-11-24
2016-11-24
Brad Smith
No

OSCAR build date: 2016
OSCAR build tag: KAI 15 pilot
Client browser: Firefox ESR 45
Client OS: Windows 10

Preconditions:
A patient who has had a Td prevention done over 5 years ago (120 months).
This is based on the rules in prevention.drl below (bold area specifically)

<rule name="Td 1">
    <parameter identifier="prev">
        <class>oscar.oscarPrevention.Prevention</class>
    </parameter>
    <java:condition>prev.getNumberOfPreventionType("Td") == 0</java:condition>
    <java:condition>prev.getHowManyMonthsSinceLast("dTaP") >= 120</java:condition>
    <java:consequence>
          prev.log("Td 1");
          prev.addWarning("Td", "Needs Td");
    </java:consequence>
</rule>

<rule name="Td 2">
    <parameter identifier="prev">
        <class>oscar.oscarPrevention.Prevention</class>
    </parameter>
**        <java:condition>prev.getNumberOfPreventionType("Td") >= 1</java:condition>
    <java:condition>prev.getHowManyMonthsSinceLast("Td") >= 120</java:condition>
    <java:condition>prev.getHowManyMonthsSinceLast("dTaP") >= 120</java:condition>

            <java:condition>prev.getHowManyMonthsSinceLast("Td-IPV") >= 120</java:condition>

            <java:condition>prev.getHowManyMonthsSinceLast("TdP-IPV-Hib") >= 120</java:condition>

            <java:condition>prev.getHowManyMonthsSinceLast("Tdap-IPV") >= 120</java:condition>**
    <java:consequence>
          prev.log("Td 2");
          prev.addWarning("Td", "Needs repeat Td");
    </java:consequence>
</rule>

When these rules are met for a patient, the message "Needs repeat Td" still does not appear.

Steps to reproduce:
Create Td prevention for patient and set to greater than 120 months in the past

Expected Result:
The prevention warning "Needs repeat Td" should be displayed and also the red stop sign on the schedule view

Observed:
No warning message regarding Td is observed

Other details:
Also ensured that the correct prevention.drl is being used by using PREVENTION_FILE= in the properties file.
This has been tested in oscar 12 and oscar 15 and did not appear to be working properly in either

Discussion

MongoDB Logo MongoDB