PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.cql@2.0.0-ballot
    http://hl7.org/fhir/uv/cql/StructureDefinition/cql-modelinfo
description: The CQL Model Information profile supports the FHIR representation and distribution of CQL ModelInfo such as the FHIR Model Info Library
package_name: hl7.fhir.uv.cql
derivation: constraint
name: CQLModelInfo
type: Library
elements:
  type:
    type: CodeableConcept
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: model-definition, system: 'http://terminology.hl7.org/CodeSystem/library-type'}
    index: 0
  content:
    constraint:
      mil-2: {human: ModelInfo 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: 1
    slicing:
      rules: open
      discriminator:
      - {path: contentType, type: value}
      min: 1
      slices:
        xml:
          match: {contentType: application/xml}
          schema:
            mustSupport: true
            index: 2
            elements:
              contentType:
                type: code
                pattern: {type: Code, value: application/xml}
                mustSupport: true
                index: 3
              data: {mustSupport: true, index: 4}
              url: {mustSupport: true, index: 5}
            required: [contentType]
        json:
          match: {contentType: application/json}
          schema:
            mustSupport: true
            index: 6
            elements:
              contentType:
                type: code
                pattern: {type: Code, value: application/json}
                mustSupport: true
                index: 7
              data: {mustSupport: true, index: 8}
              url: {mustSupport: true, index: 9}
            required: [contentType]
package_version: 2.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/uv/cql/StructureDefinition/cql-modelinfo
base: http://hl7.org/fhir/StructureDefinition/Library
version: 2.0.0-ballot
required: [content, type]