Uploaded image for project: 'CQL Issue Tracker'
  1. CQL Issue Tracker
  2. CQLIT-14

asTypeSpecifier vs asType in expression.type=As

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor Minor
    • None

      sorry - not making much sense to me (possibly due to my trouble accessing the ELM spec)

      which do to use? do I check for both? if both exist (as below) which to use?

      ```
      "name" : "NullIncluded",
      "context" : "Patient",
      "accessLevel" : "Public",
      "expression" : {
      "type" : "Contains",
      "operand" : [ {
      "type" : "List",
      "element" : [ {
      "valueType" : "

      {urn:hl7-org:elm-types:r1}

      Integer",
      "value" : "1",
      "type" : "Literal"
      }, {
      "valueType" : "

      {urn:hl7-org:elm-types:r1}

      Integer",
      "value" : "2",
      "type" : "Literal"
      }, {
      "valueType" : "

      {urn:hl7-org:elm-types:r1}

      Integer",
      "value" : "3",
      "type" : "Literal"
      }, {
      "valueType" : "

      {urn:hl7-org:elm-types:r1}

      Integer",
      "value" : "4",
      "type" : "Literal"
      }, {
      "valueType" : "

      {urn:hl7-org:elm-types:r1}

      Integer",
      "value" : "5",
      "type" : "Literal"
      } ]
      }, {
      "asType" : "

      {urn:hl7-org:elm-types:r1}

      Integer",
      "type" : "As",
      "operand" :

      { "type" : "Null" }

      ,
      "asTypeSpecifier" : {
      "name" : "

      {urn:hl7-org:elm-types:r1}

      Integer",
      "type" : "NamedTypeSpecifier"
      }
      } ]
      }
      }, {
      "name" : "NullIncludes",
      "context" : "Patient",
      "accessLevel" : "Public",
      "expression" : {
      "type" : "Includes",
      "operand" : [ {
      "type" : "As",
      "operand" :

      { "type" : "Null" }

      ,
      "asTypeSpecifier" : {
      "type" : "ListTypeSpecifier",
      "elementType" : {
      "name" : "

      {urn:hl7-org:elm-types:r1}

      Integer",
      "type" : "NamedTypeSpecifier"
      }
      }
      }, {
      ```

      thanks again!

            bryn_rhodes Bryn Rhodes
            ErichBSchulz Erich Schulz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: