Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SNCU Support] Visit scheduling issues #57

Closed
3 tasks
nupoorkhandelwal opened this issue Sep 22, 2023 · 5 comments
Closed
3 tasks

[SNCU Support] Visit scheduling issues #57

nupoorkhandelwal opened this issue Sep 22, 2023 · 5 comments
Assignees

Comments

@nupoorkhandelwal
Copy link
Collaborator

nupoorkhandelwal commented Sep 22, 2023

Support ticket - https://avni.freshdesk.com/a/tickets/3085
Support ticket - https://avni.freshdesk.com/a/tickets/3088

Prod org - SNCU
UAT org - SNCU UAT

NOTE - Before making changes on UAT, take bundle upload from prod but check that there are no changes on UAT that are not pushed to prod. All the below issues need to be reproduced and then fixed.

  • Issue 1 - As seen in the screenshot, same day visit is getting scheduled on completing the current visit.
  • Issue 2 - For Low birth weight child, visit is getting scheduled for next year.
  • Issue 3- On cancelling followup visits , same day visit is getting scheduled.
@BEULAHEVANJALIN
Copy link

Only uploaded the prod bundle to uat. Need to find out the error-ed encounter

@nupoorkhandelwal nupoorkhandelwal changed the title [ADSR Support] Visit scheduling issues [SNCU Support] Visit scheduling issues Sep 27, 2023
@nupoorkhandelwal nupoorkhandelwal transferred this issue from avniproject/Adolescent-Sewa-Rural Sep 27, 2023
@nupoorkhandelwal nupoorkhandelwal removed their assignment Oct 16, 2023
@vedfordev vedfordev self-assigned this Oct 17, 2023
@vedfordev
Copy link
Contributor

vedfordev commented Oct 19, 2023

Developer Note:

PNC

For pnc find issue in cancel visit. Changed the rule and done with following testing

Test Scenario for pnc cancellation

  1. First Pnc with low weight - scheduling in next 7 days
  2. First Pnc with normal weight - scheduling next pnc in next 28 days
  3. Second Pnc with low weight - schduling in next 7 days
  4. Second Pnc with normal weight - scheduling next pnc in next 28 days

Child Followup

individual : Jiyansh Nita gautam mashing(1409909) dob : 2023-08-01

  1. indiviudal enroled in child program and as per logic (age<2) in enrolment it shceduled child pnc(2424752)
  2. pnc filled with weight 3.45 and age< 2 . So it should schedule only pnc as per current rule but unable to figure out how it schdule followup.
    (Need to furthure debug)
const out = document.getElementById('output');

const someday = moment("2024-01-06");
const today = moment("2023-09-18");
const catday = moment("2023-08-01");

const diff = today.diff(someday, 'days');
const catdiff = today.diff(catday, 'months');

console.log("diff",diff);
console.log("catdiff",catdiff);

@Dinesh2019
Copy link

Dinesh2019 commented Oct 23, 2023

The bug card: avniproject/avni-models#49

currently, we can't handle the edit encounter scenario. It is not raised by the client.

@vedfordev
Copy link
Contributor

SNCU.zip

@vedfordev
Copy link
Contributor

@nupoorkhandelwal

Only changed cancellation rule for pnc and enrolment visit scheduling rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants