When running the test CqlTypeOperatorsTest:ToConcept:CodeToConcept1, the test runner reports:
Test CqlTypeOperatorsTest:ToConcept:CodeToConcept1 status: fail expected: Concept {
codes: Code { code: '8480-6' }
} actual: { codes: [Array], display: undefined }
My engine is returning the following result:
{
"resourceType": "Parameters",
"parameters": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-cqlType",
"valueString": "System.Concept"
}
],
"name": "return",
"valueCodeableConcept": {
"coding": [
{
"code": "8480-6"
}
]
}
}
]
}
According to the CQL IG FHIR type mapping, System.Concept maps to FHIR.CodeableConcept, so I believe my engine is returning the correct result to represent ToConcept(Code { code: '8480-6' }).
When running the test
CqlTypeOperatorsTest:ToConcept:CodeToConcept1, 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.Concept" } ], "name": "return", "valueCodeableConcept": { "coding": [ { "code": "8480-6" } ] } } ] }According to the CQL IG FHIR type mapping,
System.Conceptmaps toFHIR.CodeableConcept, so I believe my engine is returning the correct result to representToConcept(Code { code: '8480-6' }).