Finding most recent E-Tag of an appointment

61 views
Skip to first unread message

Daniel Jakobsen

unread,
Apr 7, 2020, 11:12:52 AM4/7/20
to Cerner FHIR Developers
I'm trying to figure out what's the correct way to handle cancelling an appointment.

For example, in the sandbox I've created an appointment '6219745' ( request id: "91346e0e1fd1d0a7f1c770c61fc52208" ),
in the response header I've received eatg: "W/"0"".

Now let's say some other system updated the appointment which will update the etag,
so before i can update the appointment myself more specifically cancel the appointment then i need some way to get the most recent etag

So i thought appointment get would be the correct place
but the returned etag from there was something completely different, it was  "W/"6ecf842c0ce9c48f891789e5ce405ffd"" ( request id: "447818238c1c162a74320fe947937833")

When i tried sending that etag to cancel the appointment i received status: 400 "If-Match Header id: must be numeric" (request id "fc182f89-6e0c-4c70-aef5-7bb89cbb6df7")

when i tried the same request but with etag: "W/"0"" it worked,

I guess my question is why the etag returned by appointment get returns a wierd etag
and what can i do about it?

Thanks,
Daniel Jakobsen

Benjamin Eichhorn (Cerner)

unread,
Apr 7, 2020, 11:19:57 AM4/7/20
to Cerner FHIR Developers
Hi Daniel,

We are currently aware of the Etag situation occuring on Reads and this is not what you should use on an update. You should be using the Resource.meta.version value for the If-Match header instead placing the value in the bolded location: 

If-Match: W/"<CURRENT VERSION OF RESOURCE>

Thanks,
Ben (Cerner) 
Reply all
Reply to author
Forward
0 new messages