Closed draakhan closed 8 years ago
@draakhan
Is ifMatch required to perform a version-aware update?
in my opinion, yes
@draakhan transaction update with "ifMatch" supported in v1.3.0.25 https://github.com/fhirbase/fhirbase-plv8/blob/v1.3.0.25/test/fhir/transaction_spec.coffee#L55
Hi!
Tested on v1.3.0.22
First update using versionId from create response as ifMatch value
passed and it's correct, but the second update using the same value of ifMatch as the first request should have failed:
Besides, I have problem with interpreting two parts of a documentation related to a transactional integrity. On the one hand according to a pattern mentioned in the transactional integrity documentation it should be enough to read the latest version, update what is needed on the read resource (preserving versionId of reseources) and make an update, to be sure that the second update from two simultaneous updates won't be performed by a server. On the other hand we have the ifMatch field which looks like something additional to the above-mentioned pattern. Is ifMatch required to perform a version-aware update?