Skip to content

Test Runner Not Detecting Equal Long Values #79

@cmoesel

Description

@cmoesel

When running the test CqlArithmeticFunctionsTest:Abs:AbsLong, the test runner reports:

Test CqlArithmeticFunctionsTest:Abs:AbsLong status: fail expected: 1L actual: 1L

My engine is returning the following result:

{
  "resourceType": "Parameters",
  "parameters": [
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/cqf-cqlType",
          "valueString": "System.Long"
        }
      ],
      "name": "return",
      "valueString": "1L"
    }
  ]
}

According to the CQL IG FHIR type mapping, System.Long maps to FHIR.string in R4, so I believe my engine is returning the correct result to represent 1L.

NOTE: I also tried returning it with "valueString": "1" instead of "valueString": "1L", but that also failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions