Stream: implementers
Topic: Search by extension value(for genetics profile problem)
Xin Liu (Aug 22 2017 at 14:26):
Hello,
I am working with a PGx project, and using FHIR to store the genotype data. One of the task of this project is allowing user to search by Gene name from the FHIR server and get all the possible result. Since Gene was stored in the Observation-genetics profile as an extension. And based on other related post, creating a customer search parameter will be the solution of this problem.
I wonder if anyone have a full step about how to create the search parameter? both by HAPI library and by Restful request?
Because some of my team mates are not able to read and use computer code, they would like to use the HAPI fhir server UI to create the customer parameter directly. Wonder if it is possible to do this either right now or in the future?
Best,
Thanks,
Xin
Lloyd McKenzie (Aug 22 2017 at 16:58):
@James Agnew?
James Agnew (Aug 22 2017 at 17:04):
Hi @Xin Liu , there is a description of how to achieve this in HAPI FHIR here: https://smilecdr.com/blog/20170208_custom_search_parameters
Cheers,
James
Joshua Bell (Aug 24 2017 at 16:46):
Is there a way to define these search params from the server side and have them available via a rest endpoint? Also, is there a big reason why there is no blanket search a resource containing extension url|value combos?
Lloyd McKenzie (Aug 24 2017 at 19:24):
I'm not sure I'm following the first question. For the second, it would be hard for servers to support unless they use FHIR as their underlying persistence layer. Extensions could map to a wide variety of elements possibly appearing in different tables, many of which wouldn't necessarily make sense to search on or index. Servers would only be able to claim support for the parameter if they supported matching on absolutely every possible extension they persist. Few systems would thus be able to claim support for it. Defining individual search parameters provides more fine-grained control - the server can choose to index and support search by what they wish.
Last updated: Apr 12 2022 at 19:14 UTC