Search code examples
hl7-fhir

FHIR Issue trying to search by date range


I'm trying to do a /Observation search by value-quantity, I can do it without problems with the prefixes eq, ne, gt, lt, le etc but I can't do it for a range, I would like to be able to do it for a minimum and maximum value.

Is this possible? I have searched on composite search but I have not been able to...

Thanks!


Solution

  • Range searches in FHIR are done using a lower bound combined with an upper bound since multiple conditions are ANDed together. If you wanted to search for Observations with a value between 1 and 10 you could do

    Observation?value-quantity=ge1&value-quantity=le10