FHIR Chat · search parameter · implementers

Stream: implementers

Topic: search parameter


view this post on Zulip Chidamber Kumar (Apr 13 2020 at 21:19):

Hi Folks!
Two questions :

  1. Is there any way to search only a child (or multiple child ) of a resource. Let's say I want to get name of a patient whose id is 678.
    How would the syntax go for it ?

  2. Does FHIR defines search parameters for complex data types?

view this post on Zulip Jean Duteau (Apr 13 2020 at 21:22):

every resource defines the specific search parameters that are supported for that resource. http://hl7.org/fhir/search.html does a great job of describing search as well as the various search parameters.
for your first question - do you only want the patient's name to be returned? That would be weird since you can just request the patient resource, given you have the resource id. But you can use the _elements to do what you want:
GET [base]/Patient/678?_elements=name

view this post on Zulip Chidamber Kumar (Apr 13 2020 at 21:33):

Thanks @Jean Duteau
I actually needed only some content of patient. _elements would be useful.

view this post on Zulip Lloyd McKenzie (Apr 13 2020 at 21:36):

Be aware that _elements isn't as widely supported as some aspects of search.

view this post on Zulip Chidamber Kumar (Apr 13 2020 at 21:46):

okay :+1:

view this post on Zulip Chidamber Kumar (Jun 01 2020 at 20:10):

Hi
A question :
For search parameters such as 'combo-data-absent-reason' for observation, does it mean either of these elements can match 'Observation.dataAbsentReason | Observation.component.dataAbsentReason' ? Does the pipe character symbolizes 'OR' here ?

view this post on Zulip Paul Church (Jun 01 2020 at 20:24):

The pipe is the FHIRPath "union" operator, so either of these elements can match.

view this post on Zulip Eric Haas (Jun 01 2020 at 20:54):

Is there any way to search only a child (or multiple child ) of a resource. Let's say I want to get name of a patient whose

you can also use GraphQL if that has been implemented by the FHIR Server.

view this post on Zulip Chidamber Kumar (Jun 01 2020 at 22:06):

Hi..
I am in need of a clarification.:
For the query 'GET [base]/Condition?_text=(bone OR liver) and metastases',
The FHIR website says : "This request returns all Condition resources with the word "metastases" and either "bone" or "liver" in the narrative."

What if the keywords 'and' 'OR' are part of narrative I want to query? How would that go ?

view this post on Zulip Chidamber Kumar (Jun 01 2020 at 22:09):

Eric Haas said:

Is there any way to search only a child (or multiple child ) of a resource. Let's say I want to get name of a patient whose

you can also use GraphQL if that has been implemented by the FHIR Server.

Are you expecting only selected childs in response instead of a complete resource?
If that's the case, _elements might be useful. See here http://hl7.org/fhir/search.html#elements

view this post on Zulip Lloyd McKenzie (Jun 01 2020 at 23:49):

@Grahame Grieve

view this post on Zulip Chidamber Kumar (Jun 03 2020 at 16:12):

(deleted)

view this post on Zulip Alexander L (Jun 03 2020 at 16:31):

Hello everyone,
I am trying to clarify information regarding the :of-type token modifier. On the FHIR search docs, the example contains the following url: GET [base]/Patient?identifier:otype=http://terminology.hl7.org/CodeSystem/v2-0203|MR|446053

Is the :otype a typo? Should it be :oftype or :ofType?

view this post on Zulip Alexander L (Jun 03 2020 at 16:43):

I am asking because it is a bit confusing, since this modifier is not yet supported by HAPI FHIR, but IBM FHIR Server implementation uses the camel case - :ofType

view this post on Zulip Lloyd McKenzie (Jun 03 2020 at 17:18):

Yes, typo. Please submit a technical correction change request

view this post on Zulip Alexander L (Jun 03 2020 at 17:44):

@Lloyd McKenzie ok, I submitted registration request on GForge. In the meantime, could you please confirm which modifier is the correct one? of-type, oftype or ofType?

view this post on Zulip Vassil Peytchev (Jun 03 2020 at 17:45):

You need registration to Jira

view this post on Zulip Lloyd McKenzie (Jun 03 2020 at 18:05):

of-type

view this post on Zulip Alexander L (Jun 03 2020 at 18:15):

thank you!

view this post on Zulip Chidamber Kumar (Jun 05 2020 at 19:33):

Hi..
This is regarding search parameter registery json available at http://hl7.org/fhir/search-parameters.json
For the search parameter with url http://hl7.org/fhir/SearchParameter/clinical-date, should be the expression for 'Observation.effective' be as '(Observation.effective as dateTime) ?

Thoughts ?

view this post on Zulip Chidamber Kumar (Jun 05 2020 at 22:04):

Paul Church said:

The pipe is the FHIRPath "union" operator, so either of these elements can match.

Hi
Does the pipe still holds definition as union operator incase of token type search parameter, [parameter]=[system]|[code]?
The FHIR website suggested here that both system and code should be a match rather than either of these.

Thoughts ?

view this post on Zulip PKumar (Jul 06 2020 at 10:35):

Can some one help me with implementation of Include?
My requirement is to display the observations, medications of a specific patient. I have the data in json format

view this post on Zulip René Spronk (Jul 06 2020 at 10:54):

Have you looked at http://build.fhir.org/search.html#include ? Please share your (perhaps incomplete, perhaps erroneous) search URL, so the readers of this chat can comment.

view this post on Zulip PKumar (Jul 06 2020 at 10:58):

Yes Rene, I had look into it...But I am stuck with the API url

view this post on Zulip René Spronk (Jul 06 2020 at 11:04):

GET [base]/Patient?_revinclude=Observation:patient&_revinclude=MedicationRequest:patient . medications is a bit tricky, because you'll have to determine (for your context) which of the various Medication* resources you're interested in.


Last updated: Apr 12 2022 at 19:14 UTC