cqframework / cqframework/cql-tests-runner

Test Runner Not Detecting Equal Lists of Strings

Open
#82 4 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.