Stream: hapi
Topic: POST request for @search
Tia Cummings (Aug 23 2018 at 15:12):
We're currently running into issues with DSTU3 for doing a post request with a search. It seems that the only way we can call post is by including _search with the endpoint. Is there a way to get around the _search portion?
Michael Calderero (Aug 24 2018 at 06:25):
I would think that _search is as per the specification: https://www.hl7.org/fhir/search.html#2.21.1.2
Tia Cummings (Aug 24 2018 at 12:59):
On the hapi fhir site, it says
"An alternate form of the search URL (using a URL ending with_search) was also supported in FHIR DSTU1. This form is no longer valid in FHIR DSTU2, but HAPI retains support for using this form in order to interoperate with servers which use it."
And we're using DSTU3, so we just wanted to make sure that this was correct.
Brian Postlethwaite (Aug 25 2018 at 22:39):
I'd check your content type. The search post is only supported for application/urlencoded xforms or whatever that is in the spec.
Last updated: Apr 12 2022 at 19:14 UTC