PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.halo@1.1.0-dft-preballot
    http://fhir.infoway-inforoute.ca/io/HALO/StructureDefinition/set-context-transaction-bundle
description: A profile of Bundle capturing the resources to be populated within the SoFA as a result of the $set-context operation.
package_name: ca.infoway.io.halo
derivation: constraint
name: SetContextTransactionBundle
type: Bundle
elements:
  type:
    pattern: {type: Code, value: transaction}
    index: 0
  entry:
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this.resource, type: profile}
      min: 1
      slices:
        patient:
          match: {}
          schema:
            array: true
            index: 2
            elements:
              fullUrl: {index: 3}
              resource: {index: 4}
              request:
                index: 5
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 6
                  url:
                    pattern: {type: Uri, value: Patient}
                    index: 7
            required: [resource, fullUrl, request]
        encounter:
          match: {}
          schema:
            array: true
            index: 8
            elements:
              fullUrl: {index: 9}
              resource: {index: 10}
              request:
                index: 11
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 12
                  url:
                    pattern: {type: Uri, value: Encounter}
                    index: 13
            required: [resource, fullUrl, request]
        practitionerRole:
          match: {}
          schema:
            array: true
            index: 14
            elements:
              fullUrl: {index: 15}
              resource: {index: 16}
              request:
                index: 17
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 18
                  url:
                    pattern: {type: Uri, value: PractitionerRole}
                    index: 19
            required: [resource, fullUrl, request]
        practitioner:
          match: {}
          schema:
            array: true
            index: 20
            elements:
              fullUrl: {index: 21}
              resource: {index: 22}
              request:
                index: 23
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 24
                  url:
                    pattern: {type: Uri, value: Practitioner}
                    index: 25
            required: [resource, fullUrl, request]
package_version: 1.1.0-dft-preballot
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/io/HALO/StructureDefinition/set-context-transaction-bundle
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: null
required: [entry]