PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci-dtr@2.2.0-ballot
    http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/DTR-QPackageBundle
description: This profile represents the Bundle of Questionnaires and Libraries returned in a [$questionnaire-package](OperationDefinition-questionnaire-package.html) response.
package_name: hl7.fhir.us.davinci-dtr
derivation: constraint
name: DTRQuestionnairePackageBundle
type: Bundle
elements:
  type:
    pattern: {type: code, value: collection}
    type: code
    index: 0
  entry:
    array: true
    min: 2
    index: 1
    slicing:
      rules: closed
      description: Slice different resources included in the bundle
      discriminator:
      - {path: resource, type: type}
      min: 2
      slices:
        questionnaire:
          match: {}
          schema:
            short: SHALL have one and only one Questionnaire
            mustSupport: true
            _required: true
            index: 2
            elements:
              resource: {type: Questionnaire, index: 3}
            required: [resource]
        questionnaireResponse:
          match: {}
          schema:
            short: SHALL have one and only one QuestionnaireResponse
            mustSupport: true
            _required: true
            index: 4
            elements:
              resource: {type: QuestionnaireResponse, index: 5}
            required: [resource]
        valueSet:
          match: {}
          schema:
            short: MAY have ValueSets
            mustSupport: true
            array: true
            index: 6
            elements:
              resource: {type: ValueSet, index: 7}
            required: [resource]
        library:
          match: {}
          schema:
            short: MAY have Libraries
            mustSupport: true
            array: true
            index: 8
            elements:
              resource: {type: Library, index: 9}
            required: [resource]
package_version: 2.2.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/DTR-QPackageBundle
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 2.2.0-ballot