PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.cql@1.0.0
    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]
  subject:
    mustSupport: true
    choices: []
    index: 5
  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: 6
    elements:
      contentType: {type: code, mustSupport: true, index: 7}
      data: {mustSupport: true, index: 8}
      url: {mustSupport: true, index: 9}
    required: [contentType]
package_version: 1.0.0
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]
class: profile
kind: resource
url: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library
base: http://hl7.org/fhir/StructureDefinition/Library
version: 1.0.0
required: [content]