Clinical Quality Language Specification
1.5.3 - Release 1 Errata 2

Clinical Quality Language Specification, published by Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 1.5.3 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cql/ and changes regularly. See the Directory of published versions

: CQL Tests - Aggregate Functions - XML Representation

Raw xml | Download


<Binary xmlns="http://hl7.org/fhir">
  <id value="binary-test-cqlaggregatefunctionstest"/>
  <contentType value="application/elm+xml"/>
  <data
        value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjx0ZXN0cyB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0iaHR0cDovL2hsNy5vcmcvZmhpcnBhdGgvdGVzdHMiIHhzaTpzY2hlbWFMb2NhdGlvbj0iaHR0cDovL2hsNy5vcmcvZmhpcnBhdGgvdGVzdHMgLi4vLi4vdGVzdFNjaGVtYS90ZXN0U2NoZW1hLnhzZCINCgluYW1lPSJDcWxBZ2dyZWdhdGVGdW5jdGlvbnNUZXN0IiByZWZlcmVuY2U9Imh0dHBzOi8vY3FsLmhsNy5vcmcvMDktYi1jcWxyZWZlcmVuY2UuaHRtbCNhZ2dyZWdhdGUtZnVuY3Rpb25zIj4NCgk8Z3JvdXAgbmFtZT0iQWxsVHJ1ZSI+DQoJCTx0ZXN0IG5hbWU9IkFsbFRydWVBbGxUcnVlIj4NCgkJCTxleHByZXNzaW9uPkFsbFRydWUoe3RydWUsdHJ1ZX0pPC9leHByZXNzaW9uPg0KCQkJPG91dHB1dD50cnVlPC9vdXRwdXQ+DQoJCTwvdGVzdD4NCgkJPHRlc3QgbmFtZT0iQWxsVHJ1ZVRydWVGaXJzdCI+DQoJCQk8ZXhwcmVzc2lvbj5BbGxUcnVlKHt0cnVlLGZhbHNlfSk8L2V4cHJlc3Npb24+DQoJCQk8b3V0cHV0PmZhbHNlPC9vdX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