FHIR Chat · Test server with POST support for search · implementers

Stream: implementers

Topic: Test server with POST support for search


view this post on Zulip Mattias Flodin (Nov 29 2017 at 14:59):

Hi guys, do you know if there is any public FHIR test server that supports putting search parameters encoded in HTTP POST?

We are having trouble performing searches from BizTalk because it only seems to allow each query parameter once in the query string. So e.g. _include can't be specified twice. Maybe if we can post it in HTTP body, we can get it to work.

view this post on Zulip Grahame Grieve (Nov 29 2017 at 15:24):

my server does.

view this post on Zulip Daniel Sivertsson (Nov 30 2017 at 15:50):

Hi Grahame,
I tried POST:ing using Postman to the following url: http://test.fhir.org/r3/DiagnosticReport/_search
using Content-Type: application/x-www-form-urlencoded
and the following body: _id=f001&_format=xml

I got this error message in response: Unable to read Document - starts with "_id" at Row 1 column 4
with this diagnostic:
(0000000000A00EE6){FHIRServer.exe} [0000000000E01EE6] MXML._ZN4Mxml11TMXmlParserE@rule (Line 1427, "MXML.pas" + 2) + $75
(0000000000042DDB){FHIRServer.exe} [0000000000443DDB] System.SysUtils._ZN6System8Sysutils17RaiseExceptObjectEPNS_16TExceptionRecordE (Line 23376, "System.SysUtils.pas" + 3) + $0
(0000000000010136){FHIRServer.exe} [0000000000411136] System._ZN6System14_RaiseAtExceptEPNS_7TObjectEPv (Line 21013, "System.pas" + 31) + $0
(0000000000010181){FHIRServer.exe} [0000000000411181] System._ZN6System12_RaiseExceptEPNS_7TObjectE (Line 21103, "System.pas" + 2) + $0
(0000000000A00EE6){FHIRServer.exe} [0000000000E01EE6] MXML._ZN4Mxml11TMXmlParserE@rule (Line 1427, "MXML.pas" + 2) + $75
(00000000009FF8F7){FHIRServer.exe} [0000000000E008F7] MXML._ZN4Mxml11TMXmlParserE@parse (Line 1229, "MXML.pas" + 9) + $0
(00000000009FE252){FHIRServer.exe} [0000000000DFF252] MXML._ZN4Mxml11TMXmlParserE@parse (Line 882, "MXML.pas" + 6) + $9
(00000000009FE08A){FHIRServer.exe} [0000000000DFF08A] MXML._ZN4Mxml11TMXmlParserE@parse (Line 849, "MXML.pas" + 4) + $12
(0000000001071901){FHIRServer.exe} [0000000001472901] FHIRParserBase._ZN14Fhirparserbase18TFHIRXmlParserBaseE@LoadXml (Line 422, "FHIRParserBase.pas" + 2) + $18
(0000000001071992){FHIRServer.exe} [0000000001472992] FHIRParserBase._ZN14Fhirparserbase18TFHIRXmlParserBaseE@Parse (Line 439, "FHIRParserBase.pas" + 7) + $17
(00000000010ADFA0){FHIRServer.exe} [00000000014AEFA0] FHIRUtilities._ZN13Fhirutilities10MakeParserEPN11Fhircontext18TFHIRWorkerContextEN6System13UnicodeStringEN8Fhirbase11TFHIRFormatEPNS3_7Classes7TStreamENS5_22TFHIRXhtmlParserPolicyE (Line 849, "FHIRUtilities.pas" + 17) + $0
(0000000001850FB4){FHIRServer.exe} [0000000001C51FB4] FHIRRestServer._ZN14Fhirrestserver14TFhirWebServerE@BuildRequest (Line 2601, "FHIRRestServer.pas" + 188) + $3A
(0000000001847848){FHIRServer.exe} [0000000001C48848] FHIRRestServer._ZN14Fhirrestserver14TFhirWebServerE@HandleRequest (Line 1596, "FHIRRestServer.pas" + 71) + $1C0
(0000000001843DFA){FHIRServer.exe} [0000000001C44DFA] FHIRRestServer._ZN14Fhirrestserver14TFhirWebServerE@PlainRequest (Line 1235, "FHIRRestServer.pas" + 67) + $5C
(000000000125EC3C){FHIRServer.exe} [000000000165FC3C] IdCustomHTTPServer._ZN18Idcustomhttpserver19TIdCustomHTTPServerE@DoCommandGet (Line 1011, "IdCustomHTTPServer.pas" + 4) + $0
(0000000001260372){FHIRServer.exe} [0000000001661372] IdCustomHTTPServer._ZN18Idcustomhttpserver19TIdCustomHTTPServerE@DoExecute (Line 1445, "IdCustomHTTPServer.pas" + 183) + $2C
(000000000030895E){FHIRServer.exe} [000000000070995E] IdContext._ZN9Idcontext10TIdContextE@Run (Line 185, "IdContext.pas" + 2) + $13
(00000000002EE871){FHIRServer.exe} [00000000006EF871] IdTask._ZN6Idtask7TIdTaskE@DoRun (Line 137, "IdTask.pas" + 2) + $0
(00000000002F1DC4){FHIRServer.exe} [00000000006F2DC4] IdThread._ZN8Idthread17TIdThreadWithTaskE@Run (Line 697, "IdThread.pas" + 1) + $C
(00000000002F10DB){FHIRServer.exe} [00000000006F20DB] IdThread._ZN8Idthread9TIdThreadE@Execute (Line 428, "IdThread.pas" + 50) + $E
(000000000011F4C3){FHIRServer.exe} [00000000005204C3] System.Classes._ZN6System7Classes10ThreadProcEPNS0_7TThreadE (Line 14904, "System.Classes.pas" + 18) + $E
(0000000000010D5D){FHIRServer.exe} [0000000000411D5D] System._ZN6System13ThreadWrapperEPv (Line 24350, "System.pas" + 9) + $7
(0000000000007364){KERNEL32.DLL} [00007FFAC3C28364] BaseThreadInitThunk + $14
(0000000000066091){ntdll.dll } [00007FFAC56E7091] RtlUserThreadStart + $21

The post looked good to me, but maybe I am missing something here?

view this post on Zulip Richard Ettema (Nov 30 2017 at 16:23):

Daniel, You can try against my server - http://wildfhir.aegis.net/fhir3-0-1.

view this post on Zulip Grahame Grieve (Nov 30 2017 at 22:32):

@Daniel Sivertsson this is actually a super tricky case. You've specified _format. That overrides te content-type specified in the header - for both accept and content-type. My server successfully read the _formt parameter from the body, then re-interpreted the body as xml, and couldn't parse it. for now, I'm treating it as a bug in my server, but i suspect that I haven't heard the end of it. I'll update the server sometime in the nexst 48 hours

view this post on Zulip Daniel Sivertsson (Dec 01 2017 at 08:34):

@Richard Ettema Seems to be working on your server. Thanks!

view this post on Zulip Daniel Sivertsson (Dec 01 2017 at 08:41):

@Grahame Grieve Thank you for looking in to it. I'm always happy to find a bug. :) Let me know when can I make another try

view this post on Zulip Brian Postlethwaite (Dec 07 2017 at 09:08):

my server also supports search with POST http://sqlonfhir-stu3.azurewebsites.net/fhir

view this post on Zulip Angus Millar (Dec 11 2017 at 03:39):

And also here: https://pyrohealth.net/test/stu3/fhir

view this post on Zulip Christiaan Knaap (Dec 13 2017 at 05:36):

vonk.furore.com should support it as well.
But testing this specific example also complains about the Content-Type. We'll fix that, thanks for the test case.


Last updated: Apr 12 2022 at 19:14 UTC