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

Improve the behaviour of the flagged encounter #734

Open
nehav39 opened this issue Aug 23, 2019 · 0 comments
Open

Improve the behaviour of the flagged encounter #734

nehav39 opened this issue Aug 23, 2019 · 0 comments

Comments

@nehav39
Copy link
Member

nehav39 commented Aug 23, 2019

Webapp - flagged encounter not getting updated. when we are voiding the encounter the void value is getting update to true. but while fetching, it is still fetching the voided encounter through visit uuid. ideally, the voided obs or encounter or anything you void is not shown in the REST API response. but here it is fetching the voided one

image

Current solution - we are mapping through every encounter and see if voided is true or false - the loading time will increase.(no of visit proportional to time to load)

Better permanent solution:

  • we need to purge the encounter.
  • change flagged from an encounter to a visit attribute

===================
https://docs.openmrs.org/doc/org/openmrs/Visit.html
Check out the OpenMRS Visit class, it has a getNonVoidedEncounters method
Maybe there is some way to get the non voided encounter from the REST API?
Which is not documented?
Thread started on Talk: https://talk.openmrs.org/t/rest-api-visit-resource-returns-voided-encounters/24452

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

1 participant