FHIR Chat · How to prepare parameters for custom Search on Codableconcep · implementers

Stream: implementers

Topic: How to prepare parameters for custom Search on Codableconcep


view this post on Zulip Karimulla (Apr 16 2018 at 11:18):

Hi,

I am trying to get resources from Server based on search text value of Codable concept.
I am able to get resource if Codable Concept display text is completely match.

Example URL :FHIRURL/Condition?patient=2016585&_count=500&severity:text=mild

I want to get resource which match partial codable concept display value.

Example URL :FHIRURL/Condition?patient=2016585&_count=500&severity:text=mi

How can I prepare url for that.
Please help me in this issue.
Thanks in Advance.

view this post on Zulip Alexander Zautke (Apr 16 2018 at 12:14):

Hi,
in theory your search queries should both work, as :text is explicitly defined to do a partial search on the text part of a CodableConcept.
Maybe we can help you, if you specify which server you are trying to use and post some example resources that you are using.

view this post on Zulip Karimulla (Apr 16 2018 at 12:48):

Thank you Alexander Zautke for your Reply.

I tried this url

FHIRURL/Condition?patient=2016585&_count=500&severity:text=mi

I am unable to get response from server where few of severity contains values as Mild

view this post on Zulip Alexander Zautke (Apr 16 2018 at 13:14):

Sorry, I meant which server are you using for FHIRURL?
As you can verify with the following examples, both requests produce the wanted results:

https://vonk.fire.ly/Condition?patient:Patient=example&_count=500&severity:text=mi
https://vonk.fire.ly/Condition?patient:Patient=example&_count=500&severity:text=mild

This also works for other test servers.
http://wiki.hl7.org/index.php?title=Publicly_Available_FHIR_Servers_for_testing

view this post on Zulip Karimulla (Apr 16 2018 at 13:20):

Currently we are using public server

http://fhirtest.uhn.ca/baseDstu3/

view this post on Zulip Alexander Zautke (Apr 16 2018 at 13:28):

I just posted the same resources from the Vonk server to http://fhirtest.uhn.ca/baseDstu3/

http://fhirtest.uhn.ca/baseDstu3/Condition?patient=example&severity:text=mi
http://fhirtest.uhn.ca/baseDstu3/Condition?patient=example&severity:text=mild

Works as well :)

Even if I use your test patient, I get the same results.

view this post on Zulip Lloyd McKenzie (Apr 16 2018 at 14:36):

@James Agnew ?


Last updated: Apr 12 2022 at 19:14 UTC