cqframework / cqframework/cql-tests-runner
Test Runner Not Detecting Equal Lists of Strings
Open
@preston is already working on this.
Since Mar 31, 2026.
bug
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 3
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 2
Description
When running the test CqlNullologicalOperatorsTest:Coalesce:CoalesceFirstList, the test runner reports:
Test CqlNullologicalOperatorsTest:Coalesce:CoalesceFirstList status: fail expected: {'a'} actual: a
My engine is returning the following result:
{
"resourceType": "Parameters",
"parameters": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-cqlType",
"valueString": "List<System.String>"
}
],
"name": "return",
"valueString": "a"
}
]
}
According to the CQL IG FHIR type mapping, System.String maps to FHIR.string. According to the $cql operation, the parameter should be repeated for each element in the list (but in this case there is only one). So... I believe my engine is returning the correct result to represent { 'a' }.
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.
Assessment
This issue has not been assessed yet.