Skip to content

Test Runner Not Detecting Equal Concept Values #81

Description

@cmoesel

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' }).

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