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

getAll() does not allow multiple scheduled visits of same encounter type at a time #1446

Closed
2 tasks
nupoorkhandelwal opened this issue Jul 2, 2024 · 1 comment

Comments

@nupoorkhandelwal
Copy link
Collaborator

Describe the bug
It is not possible to schedule multiple visits of the same encounter type simultaneously. If one visit is already scheduled, any subsequent scheduled visits will override it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to an Encounter A
  2. Add a visit scheduling logic under Encounter A to schedule visit of encounter type AB, complete encounter A in the app and see that visit AB is scheduled
  3. Go to an Encounter B
  4. Add a visit scheduling logic under Encounter B to schedule visit of encounter type AB (u can assign a different visit name, say- AB 2) , complete this encounter B
  5. As soon as encounter B is completed, the visit AB already scheduled is overridden by the AB 2

Expected behavior
return scheduleBuilder.getAll(); should allow to schedule same encounter type visits simultaneously irrespective of their name or dates.

Screenshots
If applicable, add screenshots to help explain your problem.

media_20240702_121143_7662958627494442522.mp4

Developer Checklist
Developer fixing the bug should fill this checklist.

  • Does the fix require extensive regression testing?
  • Are you mentioning the required scenarios that could be affected?
@nupoorkhandelwal nupoorkhandelwal moved this to New Issues in Avni Product Jul 2, 2024
@nupoorkhandelwal nupoorkhandelwal changed the title getAll() does not allow to multiple scheduled visits of same encounter type at a time getAll() does not allow multiple scheduled visits of same encounter type at a time Jul 2, 2024
@mahalakshme
Copy link
Contributor

@nupoorkhandelwal try https://avni.readme.io/docs/writing-rules#using-the-createnew-visit-strategy and reopen the card if the issue still persist

@github-project-automation github-project-automation bot moved this from New Issues to Done in Avni Product Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants