LinuxForHealth / FHIR

The LinuxForHealth FHIR® Server and related projects
https://linuxforhealth.github.io/FHIR
Apache License 2.0
333 stars 157 forks source link

Composite search parameters that contains reference type is not working #4242

Open berkant-k opened 1 year ago

berkant-k commented 1 year ago

Describe the bug If you create a composite search parameter that contains reference type, it is not working.

Environment Which version of LinuxForHealth FHIR Server? 5.0.0

To Reproduce Steps to reproduce the behavior:

  1. Create a composite search parameter for example "expression": "Communication", "code": "recipient-myextension", "component": [ { "definition": "http://hl7.org/fhir/SearchParameter/Communication-recipient", "expression": "recipient" }, { "definition": "http://example.com/SearchParametr", "expression": "extension.where(url='https://example.com/extension').value" } ]
  2. Create a resource (In this example Communication resource)
  3. Try to search with the newly created composite search parameter. GET HTTPS://baseUrl/Communication?recipient-myextension=Practitioner/Example$false Expected behavior Search should return the resource.