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.
When running the test
CqlArithmeticFunctionsTest:Abs:AbsLong, the test runner reports: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.Longmaps toFHIR.stringin R4, so I believe my engine is returning the correct result to represent1L.NOTE: I also tried returning it with
"valueString": "1"instead of"valueString": "1L", but that also failed.