Open szymonp-kainos opened 8 years ago
When doing update with id on conlict:
SELECT fhir_update_resource('{"ifMatch": "4df606bd-3642-4e07-9111-701389381d5e", "resource": {"resourceType":"Patient","id":"4df606bd-3642-4e07-9111-701389381d5e","meta":{"versionId":"4df606bd-3642-4e07-9111-701389381d5e"},"identifier":[{"use":"official","system":"Hospital Number","value":"6b574482-8d13-4186-a6a8-c2bd41e6fb66"}],"name":[{"use":"official","family":["!family!"],"given":["Gordon"]}],"gender":"male","active":"true"}}');
fhirbase returns operation outcome with code 409 instead of conflict as stated in http://hl7.org/fhir/2016May/valueset-issue-type.html
409
conflict
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "409", "diagnostics": "Newer than [4df606bd-3642-4e07-9111-701389381d5e] version available [de9abe99-d4d2-41ef-a9a3-10c529c63f84]", "extension": [ { "url": "http-status-code", "valueString": "409" } ] } ] }
Thanks, this looks great! This issue can be closed imo
When doing update with id on conlict:
fhirbase returns operation outcome with code
409
instead ofconflict
as stated in http://hl7.org/fhir/2016May/valueset-issue-type.html