PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.cql@3.0.0-ballot
    http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
description: The CQL Library profile defines conformance expectations for the use of a FHIR Library resource as a wrapper for a Clinical Quality Language (CQL) library
package_name: hl7.fhir.uv.cql
derivation: constraint
name: CQLLibrary
type: Library
elements:
  extension:
    type: Extension
    mustSupport: true
    url: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
    index: 0
    slicing:
      slices:
        cqlOptions:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
            index: 0
            elements:
              value:
                choices: [valueReference]
                index: 2
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/uv/cql/StructureDefinition/cql-options']
                index: 3
            required: [valueReference, value]
        namespace:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/uv/cql/StructureDefinition/cql-namespace', index: 4}
          min: 0
          max: 1
        namespaceUri:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/uv/cql/StructureDefinition/cql-namespaceUri', index: 5}
          min: 0
          max: 1
  name: {index: 6}
  subject:
    mustSupport: true
    choices: []
    index: 8
  content:
    constraint:
      clb-2: {human: CQL libraries must have a content element with data or a url (or both), severity: error, expression: data.exists() or url.exists()}
    mustSupport: true
    array: true
    min: 1
    index: 9
    elements:
      contentType: {type: code, mustSupport: true, index: 10}
      data: {mustSupport: true, index: 11}
      url: {mustSupport: true, index: 12}
    required: [contentType]
package_version: 3.0.0-ballot
extensions:
  cqlOptions:
    url: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
    type: Extension
    mustSupport: true
    index: 0
    elements:
      value:
        choices: [valueReference]
        index: 2
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['http://hl7.org/fhir/uv/cql/StructureDefinition/cql-options']
        index: 3
    required: [valueReference, value]
  namespace: {url: 'http://hl7.org/fhir/uv/cql/StructureDefinition/cql-namespace', min: 0, max: 1, type: Extension, mustSupport: true, index: 4}
  namespaceUri: {url: 'http://hl7.org/fhir/uv/cql/StructureDefinition/cql-namespaceUri', min: 0, max: 1, type: Extension, mustSupport: true, index: 5}
class: profile
kind: resource
url: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
base: http://hl7.org/fhir/StructureDefinition/Library
version: 3.0.0-ballot
required: [name, content]