How to void an observation

Hi guys! I created a fork of this and I’m improving a few things.

One quick question:

I would like to void an observation using the Obervation resource an ObservationService to make the REST calls


Observation obs = encounter.getObeservations().get(0);


observationService.update(observation, new DataService.GetSingleCallback<Observation>() {
            public void onCompleted(Observation entity) {
                //this line outputs the same object I am sending. Np changes even the server

            public void onError(Throwable t) {
                ConsoleLogger.dump("error occured");                

I am making POST calls to /obs/ObsUuid. I am using OpenMRS ver 1.11.x

It does not void the given obs.

Q: What is the right way to void an observation?


Did you try this?!/obs/deleteObs

Wow! Thanks a bunch.