question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

There are no standard search parameters to search an Observation by either boolean or integer

See original GitHub issue

Describe the bug If someone needs to perform a search request that will return Observations with a Boolean value and e.g. some specific code, they will get a 400 Bad Request Error. The same goes for Integer values and probably all primitive types of values.

For example the following search requests:

  • [base]/fhir-server/api/v4/Observation?component-code-value-boolean=12345$true
  • [base]/fhir-server/api/v4/Observation?component-code-value-integer=12345$0 get a 400 Bad Request Error: Search parameter ‘component-code-value-boolean’ for resource type ‘Observation’ was not found, or Search parameter ‘component-code-value-integer’ for resource type ‘Observation’ was not found.

I tried a similar request with component-code-value-quantity and it worked, hence it looks like there are no standard search parameters to search an Observation by either boolean or integer

In case it helps, here is the component I was searching for, that is part of my Observation

<component>
    <code>
        <coding>
            <system value="some_value"/>
                <code value="12345"/>
                <display value="some_display"/>
        </coding>
    </code>
    <valueBoolean value="false"/>
</component>

Environment Docker deployment of IBM FHIR v4.10.0: ibmcom/ibm-fhir-server:4.10.1

To Reproduce Steps to reproduce the behavior: Try to search for an Observation based on a boolean/integer value, e.g.: [base]/fhir-server/api/v4/Observation?component-code-value-boolean=12345$true

Expected behavior Get the specified Observation as a response.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EvgeniaPatsonicommented, Jan 25, 2022

I am sorry, I have only recently started experimenting with custom Search Parameters, and I didn’t realize that I should first specify component-value-boolean separately. It does work this way!

Thank you once again for your help!

0reactions
prb112commented, Jan 25, 2022

No problemo

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search - FHIR v5.0.0-snapshot3
Searching for resources is fundamental to the mechanics of FHIR. Search operations traverse through an existing set of resources filtering by parameters ......
Read more >
Advanced FHIR search features | Cloud Healthcare API
This page explains how to search for FHIR resources using more advanced query functionality available through the projects.locations.datasets.
Read more >
Search - FHIR v4.0.1
Searching for resources is fundamental to the mechanics of FHIR. Search operations traverse through an existing set of resources filtering by parameters ......
Read more >
Running pcabackest - NASA
pcabackest is written as a standard ftool. Here we list the parameters required for use with version 1.4f by presenting the part of...
Read more >
Search Operators | GovInfo
A Boolean search is a search that uses the logical (i.e., Boolean) operators (AND, OR, NOT, -) in addition to the keywords.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found