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

GET generate operation on DocumentReference is inappropriate

    XMLWordPrintableJSON

Details

    • Change Request
    • Status: Applied (View Workflow)
    • Medium
    • Resolution: Persuasive
    • FHIR Core (FHIR)
    • STU3
    • Orders & Observations
    • DocumentReference
    • Hide

      Create an OperationDefinition for $generate within the context of DocumentReference. The operation should only support POST requests.

      Remove the _generate query parameter from the DocumentReference resource. Move narrative from DocumentReference relates to the _generate query parameter to the new OperationDefinition and update accordingly.

      Show
      Create an OperationDefinition for $generate within the context of DocumentReference. The operation should only support POST requests. Remove the _generate query parameter from the DocumentReference resource. Move narrative from DocumentReference relates to the _generate query parameter to the new OperationDefinition and update accordingly.
    • John Moehrke / Rob Hausam: 8-0-5
    • Enhancement
    • Compatible, substantive

    Description

      "The operation is initiated by a named query, using _query=generate on the /DocumentReference end-point:

      GET [service-url]/DocumentReference/?_query=generate&uri=:url&...

      The "uri" parameter is a relative or absolute reference to one of the document types described above. Other parameters may be supplied:"

      GET is only allowed for operations that don't affect state. Generating a new resource obviously impacts state, so this should be performed using POST only. As well, it should be formally defined as an operation rather than using the old "named query" label.

      Attachments

        Activity

          People

            john_moehrke John Moehrke
            lloyd Lloyd McKenzie
            John Moehrke
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: