You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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
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:
===================
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
The text was updated successfully, but these errors were encountered: