PackagesCanonicalsLogsProblems
    Packages
    ca.on.pcr.r4@1.0.0-draft1
    http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-parameters-unmerge-input
description: A profile that indicates the input parameters for the Patient Unmerge operation.
package_name: ca.on.pcr.r4
derivation: constraint
name: PatientUnmergeInputParameters
type: Parameters
elements:
  parameter:
    array: true
    min: 5
    index: 0
    slicing:
      rules: open
      description: Slice parameters based on the name
      discriminator:
      - {path: name, type: value}
      min: 5
      slices:
        merged-patient:
          match: {name: merged-patient}
          schema:
            mustSupport: true
            _required: true
            index: 1
            elements:
              name:
                pattern: {type: String, value: merged-patient}
                index: 2
              value:
                mustSupport: true
                choices: [valueReference]
                index: 4
              valueReference:
                type: Reference
                mustSupport: true
                choiceOf: value
                refers: ['http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-patient-contribution']
                index: 5
              resource: {index: 6}
            required: [valueReference, value]
        restore-patient:
          match: {name: restore-patient}
          schema:
            mustSupport: true
            _required: true
            index: 7
            elements:
              name:
                pattern: {type: String, value: restore-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]
        prior-merge-id:
          match: {name: prior-merge-id}
          schema:
            mustSupport: true
            _required: true
            index: 13
            elements:
              name:
                pattern: {type: String, value: prior-merge-id}
                index: 14
              value:
                mustSupport: true
                choices: [valueIdentifier]
                index: 16
              valueIdentifier: {type: Identifier, mustSupport: true, choiceOf: value, index: 17}
              resource: {index: 18}
            required: [valueIdentifier, value]
        unmerge-reason:
          match: {name: unmerge-reason}
          schema:
            mustSupport: true
            _required: true
            index: 19
            elements:
              name:
                pattern: {type: String, value: unmerge-reason}
                index: 20
              value:
                mustSupport: true
                choices: [valueCodeableConcept]
                index: 22
              valueCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 23}
              resource: {index: 24}
            required: [value, valueCodeableConcept]
        unmerge-requester:
          match: {name: unmerge-requester}
          schema:
            mustSupport: true
            _required: true
            index: 25
            elements:
              name:
                pattern: {type: String, value: unmerge-requester}
                index: 26
              value:
                mustSupport: true
                choices: [valueIdentifier]
                index: 28
              valueIdentifier: {type: Identifier, mustSupport: true, choiceOf: value, index: 29}
              resource: {index: 30}
            required: [valueIdentifier, value]
package_version: 1.0.0-draft1
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/pcr/StructureDefinition/profile-parameters-unmerge-input
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: 1.0.0-draft1