LinuxForHealth / FHIR

The LinuxForHealth FHIR® Server and related projects

Home Page:https://linuxforhealth.github.io/FHIR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Composite search parameters that contains reference type is not working

berkant-k opened this issue · comments

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.