avniproject / apfodishanutrition

GNU Affero General Public License v3.0
0 stars 0 forks source link

APF Phase 2| UAT Feedback: NRC Form Visit Scheduling #315

Closed AnjaliBhagabati closed 2 months ago

AnjaliBhagabati commented 3 months ago
  1. NRC will get scheduled if in the QRT Child form. question "Advice" the answer is "Referred to NRC"

Schedule it immediate for QRT Overdue : 60 day

  1. Once NRC is completed, Child Home Visit needs to be scheduled for Poshan Sathi

Schedule this form at an interval of 15 days from the date of discharge for 4 times Overdue: 7 days from Due Date

Vist Schedule Link

Tech notes

  1. Child Home visits post NRC should not override any existing Child Home visit scheduled from Growth Monitoring or QRT.
  2. Visits post NRC can be named as " Child Home visit - Post NRC'
  3. And if 'return scheduleBuilder.getAll();' is giving only one Child Home Visit at a time then try using this 'scheduleBuilder.getAllUnique()' in the return
nupoorkhandelwal commented 3 months ago

The scheduling logic of Child Home Visit post NRC is completed. But it is not working as expected. Child Home visit (if any scheduled ) post QRT is being overridden by the Child Home visits post NRC and vice versa. This means that only one Child Home Visit can be scheduled at a time.

I have created a product bug card for the same- https://github.com/avniproject/avni-client/issues/1446

nupoorkhandelwal commented 3 months ago

https://avni.readme.io/docs/writing-rules#example-2 using visitCreationStartegy solved this issue!

nupoorkhandelwal commented 3 months ago

@Dinesh2019 I'll check this and get back to you

nupoorkhandelwal commented 3 months ago

Private Zenhub Video