FHIR Chat · How to search by extensions · implementers

Stream: implementers

Topic: How to search by extensions


view this post on Zulip Sophie Chen (Aug 02 2017 at 17:08):

I am trying to search resources by extensions, like searching all the Observation resource with gene name TPMT, and this gene name is stored in the observation-geneticsGene profile extension. Someone told me that to search by an extension, you'll need to define a custom SearchParameter and declare it in your CapabilityStatement.
I am confused about the CapabilityStatement, can anyone tell me what it is?

view this post on Zulip Eric Haas (Aug 02 2017 at 17:14):

You can read all about it here: http://build.fhir.org/capabilitystatement.html. It basically declares what your system supports - in your case you would want the server to support your custom search parameter. Here is an example Capability Statement for US Core: http://build.fhir.org/ig/HL7/US-Core/capstmnts.html#patient ( Note it doesn't support any custom search parameters.)

view this post on Zulip Grahame Grieve (Aug 02 2017 at 20:57):

note that you don't need to do any of the things with SearchParameter and CapabilityStatement to make the search actually work - they are just a computable way to tell users of your server what you did

view this post on Zulip Sophie Chen (Aug 02 2017 at 22:42):

Thank you for your notice. I am now using HAPI server. Shouldn't I firstly create examples of SearchParameter and CapabilityStatement to support the observation extension that I want to search?

view this post on Zulip Sophie Chen (Aug 02 2017 at 22:42):

Thank you for your notice. I am now using HAPI server. Shouldn't I firstly create examples of SearchParameter and CapabilityStatement to support the observation extension that I want to search?

view this post on Zulip Sophie Chen (Aug 02 2017 at 22:44):

Thank you for your information, and I am sure it will be useful. I am now using HAPI server. Should I also create an example of CapabilityStatement to support the observation extension that I want to search?

view this post on Zulip Eric Haas (Aug 02 2017 at 22:51):

I am unclear if you are just searching on the hapi reference server. if you are only searching. You don't need either one. The server does all the work. You can specify your client capabilities too - but if the server doesn't support it you are out of luck

view this post on Zulip Grahame Grieve (Aug 02 2017 at 23:23):

The HAPI documentation explains how to set up an additional search parameter...


Last updated: Apr 12 2022 at 19:14 UTC