PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.ph-library@2.0.0-ballot
    http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-supplemental-library
description: This Library profile defines the asset-collection library containing US public health supplemental assets.
package_name: hl7.fhir.us.ph-library
derivation: constraint
name: USPublicHealthSupplementalLibrary
type: Library
elements:
  type:
    short: asset-collection
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: asset-collection, system: 'http://terminology.hl7.org/CodeSystem/library-type'}
    type: CodeableConcept
    index: 0
  useContext:
    array: true
    min: 2
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: code, type: value}
      min: 2
      slices:
        reportingContext:
          match:
            code: {code: reporting, system: 'http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-usage-context-type'}
          schema:
            _required: true
            index: 2
            elements:
              code:
                pattern:
                  type: Coding
                  value: {code: reporting, system: 'http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-usage-context-type'}
                type: Coding
                index: 3
              value:
                short: Library useContext
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: supplemental, system: 'http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-usage-context'}
                choices: [valueCodeableConcept]
                type: CodeableConcept
                index: 5
              valueCodeableConcept:
                type: CodeableConcept
                short: Library useContext
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: supplemental, system: 'http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-usage-context'}
                choiceOf: value
                index: 6
        specificationTypeContext:
          match:
            code: {code: specification-type, system: 'http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-usage-context-type'}
          schema:
            _required: true
            index: 7
            elements:
              code:
                pattern:
                  type: Coding
                  value: {code: specification-type, system: 'http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-usage-context-type'}
                type: Coding
                index: 8
              value:
                short: Library useContext
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: program, system: 'http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-usage-context'}
                choices: [valueCodeableConcept]
                type: CodeableConcept
                index: 10
              valueCodeableConcept:
                type: CodeableConcept
                short: Library useContext
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: program, system: 'http://hl7.org/fhir/us/ph-library/CodeSystem/us-ph-codesystem-usage-context'}
                choiceOf: value
                index: 11
  relatedArtifact:
    mustSupport: true
    array: true
    min: 2
    index: 12
    slicing:
      rules: open
      discriminator:
      - {path: resource.resolve(), type: profile}
      min: 2
      slices:
        computableLibrary:
          match: {}
          schema:
            short: US Public Health Computable Library
            mustSupport: true
            _required: true
            index: 13
            elements:
              type:
                short: composed-of
                pattern: {type: code, value: composed-of}
                type: code
                index: 14
              resource: {type: canonical, mustSupport: true, index: 15}
            required: [resource]
        supplementalValueSetLibrary:
          match: {}
          schema:
            short: US Public Health Triggering ValueSet Library
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 16
            elements:
              type:
                short: composed-of
                pattern: {type: code, value: composed-of}
                type: code
                index: 17
              resource: {type: canonical, mustSupport: true, index: 18}
            required: [resource]
package_version: 2.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/us/ph-library/StructureDefinition/us-ph-supplemental-library
base: http://hl7.org/fhir/StructureDefinition/shareablelibrary
version: 2.0.0-ballot