Server Side ETAG no longer being returned 3.1.0 #808
Comments
Can you provide a bit more detail about what you are doing? ETags look ok to me (note the 3rd last header below)
|
We have a server implementation and are running automated tests against this implementation. A simple test example is "Read a patients single appointment" where previously an Etag was returned upon the read. I am setting the meta version ID of the appointment and ever since the upgrade from version 2 to 3 the Etag is no longer being returned. I am just wondering if it is to do with the Type changes from the upgrade or if there is something that needs to be added to respond with the Etags. I have read the documentation but am currently unable to get it included in the response. Example response:
Any help would be appriciated |
Just for reference this is the response when running the version with FHIR 1.0.2/DSTU2. |
Hmm. Would you be able to put a breakpoint here to see whether it's trying to add it? |
Just to update you on this issue... The line you suggested for the breakpoint above revealed that Now, in addition to moving from 2.x to 3.0.0, we also updated our server implementation from DSTU2 to STU3. It seems that the DSTU2 structures and STU3 structures differ when setting the Metadata VersionId. For example, in our implementation we had the following:
In the DSTU2 structures, the call to In contrast, in the STU3 structures the call to Our solution so far has been to just set the BaseResource Id VersionId in addition to setting the BaseResource Meta VersionId - this feels a little hacky however. |
Ah, that makes sense. I'll update to look at the resource |
After upgrading HapiFhir to version 3 from 2, Etags from the server are no longer automatically being returned. The setETagSupport() seems to have no impact. Is there any advice as to get the server to respond with the Etags again
Thanks
The text was updated successfully, but these errors were encountered: