FHIR Chat · URL and body payload in http requests · implementers

Stream: implementers

Topic: URL and body payload in http requests


view this post on Zulip Frank Oemig (Jun 08 2020 at 14:00):

May understanding is that the resource in the http body fits to the type in the base URL. However I cannot find any statement about that.
Other way around, is it allowed to use base/x with resource y and returning resource z?

view this post on Zulip Lloyd McKenzie (Jun 08 2020 at 14:35):

That's definitely not allowed. A POST to a particular resource URL base must be of the same resource type and the response will either be the same type or OperationOutcome. (Sub endpoints that represent $operations of course could take other content.)

view this post on Zulip Frank Oemig (Jun 08 2020 at 15:16):

Thx, Lloyd, this is also my understanding. But is this stated explicitly somewhere? At the end of the http summary you may read it that way, but other interpretations are not excluded.

view this post on Zulip Lloyd McKenzie (Jun 08 2020 at 15:30):

If you think it's not sufficiently explicit, feel free to submit a change request @Frank Oemig

view this post on Zulip Gino Canessa (Jun 08 2020 at 15:34):

There could be better guidance in the http document, but that is generally true.

  • search and history call out that they are exceptions
  • operations define their input and output - they are related to the type in the URL (where they are defined), but can have additional input and/or output.

view this post on Zulip Frank Oemig (Jun 08 2020 at 16:22):

In '3.1.0.8 create' it states: 'The request body SHALL be a Fhir resource.'
But not 'a Fhir resource of the named type'.
So, one could submit an Encounter to Patient create.

view this post on Zulip Lloyd McKenzie (Jun 08 2020 at 16:23):

Like I said, submit a change request

view this post on Zulip Grahame Grieve (Jun 08 2020 at 18:54):

I find it remarkable that we do not explicitly state this anywhere

view this post on Zulip Frank Oemig (Jun 09 2020 at 10:44):

well, at least I cannot find it.
CR: https://jira.hl7.org/browse/FHIR-27793
It is just a small adjustment, but it should help to clarify.

view this post on Zulip Frank Oemig (Jun 09 2020 at 10:47):

As a side note: We do have a tender in Germany, that requests FHIR resources, but w/o any standard CRUD operation, strange identity requirements, and no FHIR specifics - beside using resources.

view this post on Zulip Michele Mottini (Jun 09 2020 at 13:59):

(deleted)


Last updated: Apr 12 2022 at 19:14 UTC