Skip to content

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

@berkant-k

Description

@berkant-k

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions