There are no standard search parameters to search an Observation by either boolean or integer
See original GitHub issueDescribe 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, orSearch 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:
- Created 2 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
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-booleanseparately. It does work this way!Thank you once again for your help!
No problemo