avniproject / jss

0 stars 0 forks source link

[Support JSS] Fix a rule in Phulwari orgs #89

Open nupoorkhandelwal opened 6 months ago

nupoorkhandelwal commented 6 months ago

Form Daily Attendance Form

Rule UUID 9f2af1f9-e150-4f8e-aad3-40bb7eb05aa3

Tasks -

BEULAHEVANJALIN commented 4 months ago

There were two encounters types for the Phulwari subject type:

  1. Daily Attendance Form
  2. Observation Checklist

Daily Attendance Form schedules Daily Attendance Form & Child Absent Follow-up Form The Observation Checklist does not schedule anything.

Seems these visit scheduling rules have already been updated, so there is nothing to fix. Also all these rule failures happened in 2021. So closing these rule failures now.


set role singrauli;

select *
from rule_failure_telemetry
where rule_uuid = '9f2af1f9-e150-4f8e-aad3-40bb7eb05aa3'
  and is_closed is false
order by last_modified_date_time desc;

update rule_failure_telemetry
set is_closed        = true,
    closed_date_time = current_timestamp
where rule_uuid = '9f2af1f9-e150-4f8e-aad3-40bb7eb05aa3'
  and is_closed is false
  and organisation_id = 172;

Closed 7 open rule failures as part of this card.