PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.us.ph@library-1.0.0-ballot
    http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-executable-library
description: This profile sets the minimum expectations for an executable CQL library. Specifically, the profile requires that the library contain one of ELM XML or JSON content, the compiled representation of the CQL logic.
package_name: rs/hl7.fhir.us.ph
derivation: constraint
name: USPublicHealthExecutableLibrary
type: Library
elements:
  relatedArtifact:
    mustSupport: true
    array: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: 0
      slices:
        dependency:
          match: {type: depends-on}
          schema:
            mustSupport: false
            array: true
            index: 1
            elements:
              type:
                pattern: {type: code, value: depends-on}
                short: Required dependency
                type: code
                mustSupport: true
                index: 2
              display: {mustSupport: true, index: 3}
              resource: {type: canonical, mustSupport: true, index: 4}
            required: [resource, type]
  parameter: {mustSupport: true, index: 5}
  dataRequirement: {mustSupport: true, index: 6}
  content:
    mustSupport: true
    index: 7
    slicing:
      rules: open
      discriminator:
      - {path: contentType, type: value}
      min: null
      slices:
        elmXmlContent:
          match: {contentType: application/elm+xml}
          schema:
            short: ELM XML Content
            mustSupport: false
            index: 8
            elements:
              contentType:
                type: code
                pattern: {type: code, value: application/elm+xml}
                mustSupport: true
                index: 9
              data: {mustSupport: false, index: 10}
            required: [data]
        elmJsonContent:
          match: {contentType: application/elm+json}
          schema:
            short: ELM JSON Content
            mustSupport: false
            index: 11
            elements:
              contentType:
                type: code
                pattern: {type: code, value: application/elm+json}
                mustSupport: true
                index: 12
              data: {mustSupport: false, index: 13}
            required: [data]
package_version: library-1.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-executable-library
base: http://hl7.org/fhir/StructureDefinition/shareablelibrary
version: 1.0.0-ballot