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

Issue a warning when a query is a noop #1386

Open
brynrhodes opened this issue Jul 22, 2024 · 1 comment
Open

Issue a warning when a query is a noop #1386

brynrhodes opened this issue Jul 22, 2024 · 1 comment

Comments

@brynrhodes
Copy link
Member

CQL grammar allows a "no-op" query

However, this is frequently an unintended bug, and so the compiler should issue a warning to help authors identify this case.

For example, consider:

codesystem "NUCC taxonomy": 'http://nucc.org/provider-taxonomy'
code "Mental Health Specialty 1": 'code' from "NUCC taxonomy"
code "Mental Health Specialty 2": 'code2' from "NUCC taxonomy"
code "Psych Mental Health Child Adolescent 1": 'code 3' from "NUCC taxonomy"
code "Psych Mental Health 1": 'code 4' from "NUCC taxonomy"

define "Mental Health Specialties": {
    "Mental Health Specialty 1"
    "Mental Health Specialty 2",
    "Psych Mental Health Child Adolescent 1",
    "Psych Mental Health 1",
}

Thread for background:
https://chat.fhir.org/#narrow/stream/179220-cql/topic/Spot.20the.20bug

@brynrhodes
Copy link
Member Author

Note this is also related to this issue: #178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant