Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CQL: how to return subfield data from array? #4194

Open
renom opened this issue Mar 3, 2023 · 1 comment
Open

CQL: how to return subfield data from array? #4194

renom opened this issue Mar 3, 2023 · 1 comment
Labels
question Further information is requested

Comments

@renom
Copy link

renom commented Mar 3, 2023

Describe the bug
On the following request:

http://127.0.0.1:9080/fhir-server/api/v4/$cql?expression=[Observation] o return (o.code.coding c return c.code)&subject=Patient/example

I got the following error:

{
    "resourceType": "OperationOutcome",
    "id": "ac-12-0-6-8d388349-82af-4f17-8e77-a0d4c0eb5f79",
    "issue": [
        {
            "severity": "error",
            "code": "invalid",
            "details": {
                "text": "Only lists of resources are supported"
            }
        }
    ]
}

Environment
LinuxForHealth FHIR Server 5.1.1

@renom renom added the bug Something isn't working label Mar 3, 2023
@JohnTimm
Copy link
Collaborator

Have you tried using this CQL syntax:
https://cql.hl7.org/09-b-cqlreference.html#indexer-1

@JohnTimm JohnTimm added question Further information is requested and removed bug Something isn't working labels Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants