FHIR Chat · Cancel a request · bulk data

Stream: bulk data

Topic: Cancel a request


view this post on Zulip Bas van den Heuvel (Jan 28 2018 at 01:35):

A valid extension to the protocol would be the option to cancel a request in progress.
This could be done by placing a PUT request to the link returned in the first call.

view this post on Zulip Grahame Grieve (Jan 28 2018 at 01:55):

do a DELETE to the link - that will cancel the task

view this post on Zulip Bas van den Heuvel (Jan 28 2018 at 04:18):

That would work. Also useful to indicate that the server may remove the generated files.

view this post on Zulip Grahame Grieve (Jan 28 2018 at 06:01):

yes. my server supports both

view this post on Zulip Grahame Grieve (Jan 28 2018 at 07:03):

I have updated my server to support the changes to the bulk data interface. I relaxed my Accept: consistency checking a little while I was at it

view this post on Zulip Josh Mandel (Jan 28 2018 at 07:17):

@Grahame Grieve I'm seeing the following when I ask for a JSON output:

$ curl -s  -H "Accept: application/json" http://test.fhir.org/r3/task/14db5647-f230-4af1-ac27-7ba2d4c4ed4d | json_pp
{
   "text" : {
      "status" : "generated",
      "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Error: the request format (JSON) does not match the task format (Newline delimited JSON)</p></div>"
   },
   "issue" : [
      {
         "diagnostics" : "(00000000019537F1){FHIRServer.exe} [0000000001D547F1] FHIRRestServer.TFhirWebServer.ProcessTaskRequest + $B01\r\n(0000000000042A9B){FHIRServer.exe} [0000000000443A9B] System.SysUtils.RaiseExceptObject + $2B\r\n(00000000000101B6){FHIRServer.exe} [00000000004111B6] System.@RaiseAtExcept + $E6\r\n(0000000000010201){FHIRServer.exe} [0000000000411201] System.@RaiseExcept + $11\r\n(00000000019537F1){FHIRServer.exe} [0000000001D547F1] FHIRRestServer.TFhirWebServer.ProcessTaskRequest + $B01\r\n(000000000194502D){FHIRServer.exe} [0000000001D4602D] FHIRRestServer.TFhirWebServer.HandleRequest + $12CD\r\n(0000000001940B45){FHIRServer.exe} [0000000001D41B45] FHIRRestServer.TFhirWebServer.PlainRequest + $C35\r\n(0000000001224B6C){FHIRServer.exe} [0000000001625B6C] IdCustomHTTPServer.TIdCustomHTTPServer.DoCommandGet + $1C\r\n(00000000012262A2){FHIRServer.exe} [00000000016272A2] IdCustomHTTPServer.TIdCustomHTTPServer.DoExecute + $A92\r\n(0000000000277B0E){FHIRServer.exe} [0000000000678B0E] IdContext.TIdContext.Run + $1E\r\n(0000000000275BF1){FHIRServer.exe} [0000000000676BF1] IdTask.TIdTask.DoRun + $11\r\n(00000000002799F4){FHIRServer.exe} [000000000067A9F4] IdThread.TIdThreadWithTask.Run + $14\r\n(0000000000278D0B){FHIRServer.exe} [0000000000679D0B] IdThread.TIdThread.Execute + $DB\r\n(000000000011DDE3){FHIRServer.exe} [000000000051EDE3] System.Classes.ThreadProc + $43\r\n(0000000000010DAD){FHIRServer.exe} [0000000000411DAD] System.ThreadWrapper + $3D\r\n(0000000000007364){KERNEL32.DLL} [00007FFCDA4B8364] BaseThreadInitThunk + $14\r\n(0000000000066091){ntdll.dll   } [00007FFCDCF87091] RtlUserThreadStart + $21\r\n",
         "severity" : "error",
         "details" : {
            "text" : "Error: the request format (JSON) does not match the task format (Newline delimited JSON)"
         }
      }
   ],
   "resourceType" : "OperationOutcome"
}

view this post on Zulip Josh Mandel (Jan 28 2018 at 07:26):

I think resolves if I make the original call with accept: application/fhir+json. But then I'm not seeing a response body after successfully completing status polling .

view this post on Zulip Josh Mandel (Jan 28 2018 at 07:27):

Instead I still see the Link header.

view this post on Zulip Grahame Grieve (Jan 28 2018 at 12:59):

hm. I must have screwed up the upgrade - seems to be right now


Last updated: Apr 12 2022 at 19:14 UTC