FHIR Chat · Guidance on posting a single resource as an operation · implementers

Stream: implementers

Topic: Guidance on posting a single resource as an operation


view this post on Zulip Eric Haas (Aug 22 2018 at 19:14):

For FHIR operations, there is guidance on returning a resource directly using a return parameter, but no guidance on POSTING a single resource without using the Parameters resource.

So if I have a single input parameter 'foo' that is resource Foo can I just do a:

POST .../operation-endpoint
payload = resource instance Foo

?

view this post on Zulip Eric Haas (Aug 22 2018 at 19:15):

(@Nagesh Bashyam just verifying)

view this post on Zulip Grahame Grieve (Aug 22 2018 at 19:58):

I thought we discussed this. I certainly do it in my implementations

view this post on Zulip Lloyd McKenzie (Aug 23 2018 at 16:26):

"If, when invoking the operation, there is exactly one input parameter of type Resource (irrespective of whether other possible parameters are defined), that the operation can also be executed by a POST with that resource as the body of the request (and no parameters on the url)." (http://hl7.org/fhir/operations.html#request)

view this post on Zulip Eric Haas (Aug 23 2018 at 20:38):

Thanks I was looking for that....


Last updated: Apr 12 2022 at 19:14 UTC