While querying through visit REST API using custom query. The voided encounters are also getting fetched. Are there any parameters that we can attach to the URL to fetch only unvoided encounters?
I am including includeInactive=false on my visit query.
however even before you do any upgrade , the default behaviour would be that it shouldnt return voided encounters even when you dont include any parameter.
see here.
can you post the full request url here ??
Infact in the above Ticket , i was fixing the opposite, for us to enable retriving of voided encounters with includeAll=true
In qa-ref app and demo server both it works in the way as @mozzy said no need of parameters it gives encounters which are not voided.can’t reproduce the issue
I am able to reproduce it. I voided an encounter through REST API and when I am fetching it through visit resource through custom query voided encounter is also getting fetched. Just check the above image I have attached.
@kundansinha , i have tested this with the latest code (i cloned the latest code(rest-webservices) and built it) , it actually doesn’t return voided encounters by default.
try building the latest code.