Stream: implementers
Topic: Response for CREATE, UPDATE operations
Rob Resendez (Sep 20 2017 at 18:26):
Are create, update operations supposed to return the resource created/updated as the response? The spec mentioned that operationOutcome is to be used for errors... in comparing that to the summary table (https://www.hl7.org/fhir/http.html#summary), the response body is detailed as "Resource".
For example, if an "Observation" is posted... should an "Observation" be returned?
Thanks
Yunwei Wang (Sep 20 2017 at 20:56):
For CREATE, at least the server has to return the location and versioning of newly created resource. The body is optional.
Grahame Grieve (Sep 20 2017 at 23:26):
if there's an error, the response is always an OperationOutcome
Grahame Grieve (Sep 20 2017 at 23:27):
if the operation succeeds, then by default the response contains the resource actually created, or nothing. but the client can ask for something different - see http://hl7.org/fhir/http.html#2.21.0.5.2
Rob Resendez (Oct 02 2017 at 20:04):
Thanks guys
Last updated: Apr 12 2022 at 19:14 UTC