I need to perform a search request that will return me Observations that have a specific code and the Boolean value is true. The same goes for Integer values.
My search requests are:
- [base]/Observation?component-code-value-boolean=12345$true
- [base]/Observation?component-code-value-integer=12345$0
In both cases I 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. Has it something to do with Primitive types? How can I modify my request in order for it to work?
I am new to FHIR and I struggle to understand its logic.
In case it helps, here is the component 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>
Thank you in advance