PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.halo@1.0.0-dft-preballot
    http://fhir.infoway-inforoute.ca/io/HALO/StructureDefinition/set-context-input-parameters
description: A profile capturing more nuanced rules for the input Parameters resource that is submitted on invocation of the $set-context operation that cannot be captured within the OperationDefinition itself.
package_name: ca.infoway.io.halo
derivation: constraint
name: SetContextInputParameters
type: Parameters
elements:
  parameter:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: name, type: pattern}
      min: null
      slices:
        patient:
          match: {name: patient}
          schema:
            index: 1
            elements:
              name:
                pattern: {type: String, value: patient}
                index: 2
              value:
                choices: [valueReference]
                index: 4
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
                index: 5
            required: [valueReference, value]
        tenant:
          match: {name: tenant}
          schema:
            index: 36
            elements:
              name:
                pattern: {type: String, value: tenant}
                index: 37
              value:
                choices: [valueString]
                index: 39
              valueString: {type: string, choiceOf: value, index: 40}
            required: [valueString, value]
        encounter:
          match: {name: encounter}
          schema:
            index: 6
            elements:
              name:
                pattern: {type: String, value: encounter}
                index: 7
              value:
                choices: [valueReference]
                index: 9
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Encounter']
                index: 10
            required: [valueReference, value]
        fhirUser:
          match: {name: fhirUser}
          schema:
            index: 16
            elements:
              name:
                pattern: {type: String, value: fhirUser}
                index: 17
              value:
                choices: [valueReference]
                index: 19
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/PractitionerRole']
                index: 20
            required: [valueReference, value]
        smart_style_url:
          match: {name: smart_style_url}
          schema:
            index: 31
            elements:
              name:
                pattern: {type: String, value: smart_style_url}
                index: 32
              value:
                choices: [valueUrl]
                index: 34
              valueUrl: {type: url, choiceOf: value, index: 35}
            required: [value, valueUrl]
        fhirContext:
          match: {name: fhirContext}
          schema:
            array: true
            index: 11
            elements:
              name:
                pattern: {type: String, value: fhirContext}
                index: 12
              value:
                choices: [valueReference]
                index: 14
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
                index: 15
            required: [valueReference, value]
        intent:
          match: {name: intent}
          schema:
            index: 26
            elements:
              name:
                pattern: {type: String, value: intent}
                index: 27
              value:
                choices: [valueString]
                index: 29
              valueString: {type: string, choiceOf: value, index: 30}
            required: [valueString, value]
        need_patient_banner:
          match: {name: need_patient_banner}
          schema:
            index: 21
            elements:
              name:
                pattern: {type: String, value: need_patient_banner}
                index: 22
              value:
                choices: [valueBoolean]
                index: 24
              valueBoolean: {type: boolean, choiceOf: value, index: 25}
            required: [value, valueBoolean]
        resources:
          match: {name: resources}
          schema:
            index: 41
            elements:
              name:
                pattern: {type: String, value: resources}
                index: 42
              value:
                choices: []
                index: 44
              resource: {type: Bundle, index: 45}
              part: {index: 46}
            required: [resource]
package_version: 1.0.0-dft-preballot
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/io/HALO/StructureDefinition/set-context-input-parameters
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: null