cqframework / cqframework/clinical-reasoning
CQL identifier not resolving per specification
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 49
- Forks
- 43
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 13
Description
Description of Issue
CQL identifier not resolving when Library that contains the CQL does not match the FHIR Library.id, Library.name and CQL.name, when it should allow FHIR Library.id to be different than library.name when library.name equals cql name.
CQL specification says:
- FHIR Library.name should equal CQL name
- CQL name allows A-Z and digits 0-9 and underscores
- FHIR resource.id allows A-Z, digits 0-9, period or hyphens, but no underscores
When specifying a Library and CQL as:
cql file
library AABReporting version '2024.2.0'
FHIR library
"resourceType": "Library",
"id": "AABReporting-2024.2.0",
"url": "http://ncqa.org/fhir/Library/AABReporting-2024.2.0",
"version": "2024.2.0",
"name": "AABReporting"
}```
# Observed results
Throws error: "Unable to load CQL/ELM for library: %s. Verify that the Library resource is available in your environment and has CQL/ELM content embedded."
# Expected result
No error
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Reproduce the example with CQL library AABReporting and FHIR Library id AABReporting-2024.2.0, then trace identifier resolution for the Library.id, Library.name, and CQL name; done means the example resolves without the reported loading error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100