PackagesCanonicalsLogsProblems
    Packages
    ca.on.pcr.r4@1.0.0-draft1
    http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-parameters-merge-input
description: A profile that indicates the input parameters for the Patient Merge operation.
package_name: ca.on.pcr.r4
derivation: constraint
name: PatientMergeInputParameters
type: Parameters
elements:
  parameter:
    array: true
    min: 4
    index: 0
    slicing:
      rules: open
      description: Slice parameters based on the name
      discriminator:
      - {path: name, type: value}
      min: 4
      slices:
        source-patient-identifier:
          match: {name: source-patient-identifier}
          schema:
            mustSupport: true
            array: true
            index: 1
            elements:
              name:
                pattern: {type: String, value: source-patient-identifier}
                index: 2
              value:
                mustSupport: true
                choices: [valueIdentifier]
                index: 4
              valueIdentifier: {type: Identifier, mustSupport: true, choiceOf: value, index: 5}
              resource: {index: 6}
            required: [valueIdentifier, value]
        source-patient:
          match: {name: source-patient}
          schema:
            mustSupport: true
            index: 7
            elements:
              name:
                pattern: {type: String, value: source-patient}
                index: 8
              value:
                mustSupport: true
                choices: [valueReference]
                index: 10
              valueReference:
                type: Reference
                mustSupport: true
                choiceOf: value
                refers: ['http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-patient-contribution']
                index: 11
              resource: {index: 12}
            required: [valueReference, value]
        target-patient-identifier:
          match: {name: target-patient-identifier}
          schema:
            mustSupport: true
            array: true
            index: 13
            elements:
              name:
                pattern: {type: String, value: target-patient-identifier}
                index: 14
              value:
                mustSupport: true
                choices: [valueIdentifier]
                index: 16
              valueIdentifier: {type: Identifier, mustSupport: true, choiceOf: value, index: 17}
              resource: {index: 18}
            required: [valueIdentifier, value]
        target-patient:
          match: {name: target-patient}
          schema:
            mustSupport: true
            index: 19
            elements:
              name:
                pattern: {type: String, value: target-patient}
                index: 20
              value:
                mustSupport: true
                choices: [valueReference]
                index: 22
              valueReference:
                type: Reference
                mustSupport: true
                choiceOf: value
                refers: ['http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-patient-contribution']
                index: 23
              resource: {index: 24}
            required: [valueReference, value]
        result-patient:
          match: {name: result-patient}
          schema:
            mustSupport: true
            index: 25
            elements:
              name:
                pattern: {type: String, value: result-patient}
                index: 26
              value:
                choices: []
                index: 28
              resource: {type: Patient, mustSupport: true, index: 29}
            required: [resource]
        merge-reason:
          match: {name: merge-reason}
          schema:
            mustSupport: true
            _required: true
            index: 30
            elements:
              name:
                pattern: {type: String, value: merge-reason}
                index: 31
              value:
                mustSupport: true
                choices: [valueCodeableConcept]
                index: 33
              valueCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 34}
              resource: {index: 35}
            required: [value, valueCodeableConcept]
        merge-requester:
          match: {name: merge-requester}
          schema:
            mustSupport: true
            _required: true
            index: 36
            elements:
              name:
                pattern: {type: String, value: merge-requester}
                index: 37
              value:
                mustSupport: true
                choices: [valueIdentifier]
                index: 39
              valueIdentifier: {type: Identifier, mustSupport: true, choiceOf: value, index: 40}
              resource: {index: 41}
            required: [valueIdentifier, value]
package_version: 1.0.0-draft1
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-parameters-merge-input
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: 1.0.0-draft1