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

[Visit Scheduling] Do not schedule visits on editing #1480

Open
1 task
mahalakshme opened this issue Aug 26, 2024 · 0 comments
Open
1 task

[Visit Scheduling] Do not schedule visits on editing #1480

mahalakshme opened this issue Aug 26, 2024 · 0 comments

Comments

@mahalakshme
Copy link
Contributor

mahalakshme commented Aug 26, 2024

Need:

  • will help in avoiding repeated checks in each visit schedule rule

AC:

Plan: https://drive.google.com/file/d/17GNIs4iwKs6ZePCJr1kGT3J3cKLLBw2Z/view?usp=drive_link

  • On editing an encounter - if the visit to be scheduled is already done, dont update it
  • if not done, update it
  • voiding do in 2nd phase - so that we don't void off anything by mistake

AC:

  • not two visits
  • When not completed - update
  • When completed - don't do anything - currently it creates a new encounter
  • Visist 2 cancelled/voided -> Visit 1 edit - ?
  • visist 1 void/cancel -
  • data not there - default way

edit V1 scheduledVisits:

V2 scheduledBy: V1


  • edit - new visit
    - new type of visist scheduled - Summary page: void

Technical

  • How to identify? By having unique names
  • By keeping track in the scheduled visit, which visit scheduled it internally

Visit 1: -> Visist 2

  • scheduledVisits or scheduledBy: individual: {uuid}
  • implementors need not decide

Tasks

Analysis:

Commcare does it differently and hence they dont have this problem - they add condition on the visit to be scheduled whether to show or hide

Out of scope:

  • Voiding the existing encounters which are incorrectly created. - or should we make it in scope?

Old - ignore:

Options:

  • add such condition in drop-downs or make it default at product level?
  • if some value changed such that visit to be scheduled also changed - what happens? - eg: value changed from MAM to SAM or referred to NRC - have such situations arised?
  • complex - update older

Usecases:

  • MAM, -
  • SAM - NRC
  • there are issues in both scenarios
  • not allowed everyone to Edit forms - only some senior
  • mostly Edit is allowed
  • Edit after some particular time
  • come to know whether edit or not? - change in schedule/ change in visist schedule
    - completed or not -
    - remove edit flag
  • scenarios:
    - in some on edit - dont do anything
    - in some on edit - reschedule the visits
    - both ways requirements are there.
@mahalakshme mahalakshme converted this from a draft issue Aug 26, 2024
@mahalakshme mahalakshme changed the title Do not schedule visits on editing [Visit Scheduling] Do not schedule visits on editing Aug 26, 2024
@mahalakshme mahalakshme moved this from In Analysis to In Analysis Review in Avni Product Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Analysis
Development

No branches or pull requests

1 participant