Stream: hapi
Topic: Custom Query Parameter
Keith Boone (Mar 27 2020 at 02:20):
What does it take to configure a HAPI Server that supports a custom query parameter not defined in FHIR? I'm talking about FHIR Server in the box form of HAPI, not the framework where you could build your own server. I want to know if this can be done through configuration rather than code, and if so, where I'd find that documentation. The SANER project is interested in learning if this is an available feature. @James Agnew
James Agnew (Mar 27 2020 at 12:29):
Hi @Keith Boone , you can define custom search parameters quite easily, you just need to create a SearchParameter
resource and upload it to the server. I wrote up the process in a blog post here: https://blog.smilecdr.com/2017/02/08/custom-search-parameters-in-hapi-fhir/
The post includes Java code to create the SP resource but that's not a requirement, it just needs to be uploaded via the REST interface.
I know I have seen other IGs include SP resources as a part of their content. I am working on a package importer for HAPI, maybe getting this all wired together could be my contribution to SANER.
Patrick Werner (Mar 27 2020 at 12:40):
still loving this function every time i define a search parameter
Keith Boone (Mar 27 2020 at 15:50):
You just made my day.
Jens Villadsen (Mar 27 2020 at 20:23):
Patrick Werner said:
still loving this function every time i define a search parameter
me too - including the functionality to create indexes and making stuff unique is even sweeter
Last updated: Apr 12 2022 at 19:14 UTC