PackagesCanonicalsLogsProblems
    Packages
    ca.on.iar.r4@1.0.0
    http://ontariohealth.ca/fhir/iar/StructureDefinition/profile-bundle
description: A message bundle containing all resources required for submission of the IAR assessment(s).
package_name: ca.on.iar.r4
derivation: constraint
name: BundleMessageIAR
type: Bundle
elements:
  identifier:
    mustSupport: true
    index: 0
    elements:
      system:
        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
        mustSupport: true
        index: 1
      value: {mustSupport: true, index: 2}
    required: [value, system]
  type:
    pattern: {type: Code, value: message}
    mustSupport: true
    index: 3
  timestamp: {mustSupport: true, index: 4}
  entry:
    mustSupport: true
    array: true
    min: 5
    index: 5
    elements:
      fullUrl: {mustSupport: true, index: 6}
      resource: {mustSupport: true, index: 7}
    required: [resource, fullUrl]
    slicing:
      rules: open
      discriminator:
      - {path: resource, type: profile}
      min: 5
      slices:
        message:
          match: {}
          schema:
            mustSupport: true
            _required: true
            index: 8
            elements:
              fullUrl: {mustSupport: true, index: 9}
              resource: {type: Resource, mustSupport: true, index: 10}
              search: {index: 11}
              request: {index: 12}
              response: {index: 13}
            required: [resource, fullUrl]
        encounter:
          match: {}
          schema:
            mustSupport: true
            _required: true
            index: 14
            elements:
              fullUrl: {mustSupport: true, index: 15}
              resource: {type: Resource, mustSupport: true, index: 16}
              search: {index: 17}
              request: {index: 18}
              response: {index: 19}
            required: [resource, fullUrl]
        patient:
          match: {}
          schema:
            mustSupport: true
            _required: true
            index: 20
            elements:
              link: {mustSupport: false, index: 21}
              fullUrl: {mustSupport: true, index: 22}
              resource: {type: Resource, mustSupport: true, index: 23}
              search: {index: 24}
              request: {index: 25}
              response: {index: 26}
            required: [resource, fullUrl]
        organization:
          match: {}
          schema:
            mustSupport: true
            _required: true
            index: 27
            elements:
              fullUrl: {mustSupport: true, index: 28}
              resource: {type: Resource, mustSupport: true, index: 29}
              search: {index: 30}
              request: {index: 31}
              response: {index: 32}
            required: [resource, fullUrl]
        questionnaireresponse:
          match: {}
          schema:
            mustSupport: true
            _required: true
            index: 33
            elements:
              fullUrl: {mustSupport: true, index: 34}
              resource: {type: Resource, mustSupport: true, index: 35}
              search: {index: 36}
              request: {index: 37}
              response: {index: 38}
            required: [resource, fullUrl]
package_version: 1.0.0
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/iar/StructureDefinition/profile-bundle
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 1.0.0
required: [timestamp, identifier]