Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-33385

POST: Operation with resource Parameter & URL Parameter

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • R4
    • FHIR Infrastructure
    • operations
    • Hide

      Change the identified text to say:

      > If an operation has exactly one input parameter whose `type` is a FHIR Resource and all other parameters a client intends to submit are simple parameters, then the client MAY invoke the operation via POST with the input resource as the request body and additional parameters as query parameters.

      Discussion: Intent is that an operation where the OperationDefinition has only one defined input of type Resource, and the client wants to pass additional params via query params then it can do so.

      Show
      Change the identified text to say: > If an operation has exactly one input parameter whose `type` is a FHIR Resource and all other parameters a client intends to submit are simple  parameters, then the client MAY invoke the operation via POST with the input resource as the request body and additional parameters as query parameters. — Discussion: Intent is that an operation where the OperationDefinition has only one defined input of type Resource, and the client wants to pass additional params via query params then it can do so.
    • Alexander Zautke / Gino Canessa: 10-0-0
    • Clarification
    • Compatible, substantive
    • R5

    Description

      Operations are allowed to include a resource param in the body (if no url params are used): http://hl7.org/fhir/operations.html#request

      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).

      But we are using url params on the url while POSTing resources during an operation, e.g. $validate
      http://hl7.org/fhir/resource-operation-validate.html#examples

      I think the examples are correct, but the wording isn't and should be changed to sth. similar to:

      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 the other parameters on the url).

      Attachments

        Activity

          People

            GrahameGrieve Grahame Grieve
            patrick-werner Patrick Werner
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: