I have been trying to retrieve soft deleted identifiers which is currently working on the legacy model.
I found information in the snippet below on the wiki, but this is not working as I still get only for those whose voided=false.
Including Retired and Deleted data
A normal REST query will not include Retired metadata or Deleted/Voided data. You may send an includeAll=true query parameter to include retired/deleted data.
Can you give more details of what you are exactly doing?
For instance, if you are making a REST call, can you share the url, together with the parameters you send if any?
Being able to reproduce it on a public server like qa-refapp.openmrs.org will even go a long way in helping us see what is going on.
Using the api endpoint below for deleting an identifier, I am able to set voided to true for that specific identifier to that patient.
‘/ws/rest/v1/patient/{parentUuid}/identifier/{uuid}?!purge’
e.g
testing it on Postman
To get all the identifiers where voided is true or false, I have tried using below endpoint. This however only retrieves the identifiers for that patient where voided is false thus those soft deleted are not retrieved.
/ws/rest/v1/patient/{parentUuid}/identifier?includeAll=true
Oh, I meant that its still not working on that server.
I can delete the identifier but then retrieving as I had done on the standalone still does not work.
It still gives only for identifiers that have voided as false.
Oh, I meant that its still not working on that server.
I can delete the identifier but then retrieving as I had done on the standalone still does not work.
It still gives only for identifiers that have voided as false.