PackagesCanonicalsLogsProblems
    Packages
    ca.on.phsd.r4-alpha@0.1.2
    http://ehealthontario.ca/fhir/StructureDefinition/ca-on-ppr-ext-location-affiliation
description: The other locations having affiliations with the given location
package_name: ca.on.phsd.r4-alpha
derivation: constraint
name: LocationAffiliation
type: Extension
elements:
  extension:
    array: true
    min: 2
    index: 0
    slicing:
      slices:
        type:
          match: {}
          schema:
            short: kind of affiliation
            mustSupport: true
            _required: true
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: type}
                index: 2
              value:
                mustSupport: true
                choices: [valueCodeableConcept]
                index: 7
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueCodeableConcept]
                        index: 7
              valueCodeableConcept:
                type: CodeableConcept
                mustSupport: true
                choiceOf: value
                index: 8
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 8}
              value[x]:
                elements:
                  coding:
                    mustSupport: true
                    index: 9
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/CodeSystem/ppr-provider-role-affiliation-type'}
                        mustSupport: true
                        index: 10
                      code:
                        binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-provider-role-affiliation-type'}
                        mustSupport: true
                        index: 11
                      display: {mustSupport: true, index: 12}
        period:
          match: {}
          schema:
            short: When affiliation is in effect
            mustSupport: true
            index: 13
            elements:
              url:
                pattern: {type: Uri, value: period}
                index: 14
              value:
                mustSupport: true
                choices: [valuePeriod]
                index: 19
                slicing:
                  slices:
                    valuePeriod:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valuePeriod]
                        index: 19
              valuePeriod:
                type: Period
                mustSupport: true
                choiceOf: value
                index: 20
                slicing:
                  slices:
                    valuePeriod:
                      match: {}
                      schema: {type: Period, mustSupport: true, choiceOf: value, index: 20}
              value[x]:
                elements:
                  start: {mustSupport: true, index: 21}
                  end: {mustSupport: true, index: 22}
        with:
          match: {}
          schema:
            short: Provider or Organization affiliated with
            mustSupport: true
            _required: true
            index: 23
            elements:
              url:
                pattern: {type: Uri, value: with}
                index: 24
              value:
                mustSupport: true
                choices: []
                index: 26
              extension:
                index: 27
                slicing:
                  slices:
                    name:
                      match: {}
                      schema:
                        mustSupport: true
                        _required: true
                        index: 28
                        elements:
                          url:
                            pattern: {type: Uri, value: name}
                            index: 29
                          value:
                            mustSupport: true
                            choices: [valueString]
                            index: 34
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema:
                                    mustSupport: true
                                    choices: [valueString]
                                    index: 34
                          valueString:
                            type: string
                            mustSupport: true
                            choiceOf: value
                            index: 35
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema: {type: string, mustSupport: true, choiceOf: value, index: 35}
                    legalName:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 36
                        elements:
                          url:
                            pattern: {type: Uri, value: legalName}
                            index: 37
                          value:
                            mustSupport: true
                            choices: [valueString]
                            index: 42
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema:
                                    mustSupport: true
                                    choices: [valueString]
                                    index: 42
                          valueString:
                            type: string
                            mustSupport: true
                            choiceOf: value
                            index: 43
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema: {type: string, mustSupport: true, choiceOf: value, index: 43}
                    identifier-UPI:
                      match: {}
                      schema:
                        index: 44
                        elements:
                          url:
                            pattern: {type: Uri, value: identifier-UPI}
                            index: 45
                          value:
                            choices: [valueIdentifier]
                            index: 50
                            slicing:
                              slices:
                                valueIdentifier:
                                  match: {}
                                  schema:
                                    choices: [valueIdentifier]
                                    index: 50
                          valueIdentifier:
                            type: Identifier
                            choiceOf: value
                            index: 51
                            slicing:
                              slices:
                                valueIdentifier:
                                  match: {}
                                  schema: {type: Identifier, choiceOf: value, index: 51}
                          value[x]:
                            elements:
                              use:
                                pattern: {type: Code, value: official}
                                index: 52
                              type:
                                binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-organization-identifier-type'}
                                index: 53
                                elements:
                                  coding:
                                    index: 54
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                                        index: 55
                                      code:
                                        pattern: {type: Code, value: PRN}
                                        index: 56
                                    required: [system, code]
                                required: [coding]
                              system:
                                pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-provider-upi'}
                                index: 57
                              value: {index: 58}
                            required: [value, type, system, use]
                    identifier:
                      match: {}
                      schema:
                        index: 59
                        elements:
                          url:
                            pattern: {type: Uri, value: identifier}
                            index: 60
                          value:
                            choices: [valueIdentifier]
                            index: 65
                            slicing:
                              slices:
                                valueIdentifier:
                                  match: {}
                                  schema:
                                    choices: [valueIdentifier]
                                    index: 65
                          valueIdentifier:
                            type: Identifier
                            choiceOf: value
                            index: 66
                            slicing:
                              slices:
                                valueIdentifier:
                                  match: {}
                                  schema: {type: Identifier, choiceOf: value, index: 66}
                          value[x]:
                            elements:
                              use: {index: 67}
                              type:
                                binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-organization-identifier-type'}
                                index: 68
                                elements:
                                  coding:
                                    index: 69
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                                        index: 70
                                      code: {index: 71}
                                    required: [system, code]
                                required: [coding]
                              system:
                                pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/NamingSystem/id-ppr-epid'}
                                index: 72
                              value: {index: 73}
                            required: [value, type, system, use]
                    address:
                      match: {}
                      schema:
                        index: 74
                        elements:
                          url:
                            pattern: {type: Uri, value: address}
                            index: 75
                          value:
                            choices: [valueString]
                            index: 80
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema:
                                    choices: [valueString]
                                    index: 80
                          valueString:
                            type: string
                            choiceOf: value
                            index: 81
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema: {type: string, choiceOf: value, index: 81}
            extensions:
              name:
                url: null
                mustSupport: true
                _required: true
                index: 28
                elements:
                  url:
                    pattern: {type: Uri, value: name}
                    index: 29
                  value:
                    mustSupport: true
                    choices: [valueString]
                    index: 34
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: [valueString]
                            index: 34
                  valueString:
                    type: string
                    mustSupport: true
                    choiceOf: value
                    index: 35
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, mustSupport: true, choiceOf: value, index: 35}
              legalName:
                url: null
                mustSupport: true
                index: 36
                elements:
                  url:
                    pattern: {type: Uri, value: legalName}
                    index: 37
                  value:
                    mustSupport: true
                    choices: [valueString]
                    index: 42
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: [valueString]
                            index: 42
                  valueString:
                    type: string
                    mustSupport: true
                    choiceOf: value
                    index: 43
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, mustSupport: true, choiceOf: value, index: 43}
              identifier-UPI:
                url: null
                index: 44
                elements:
                  url:
                    pattern: {type: Uri, value: identifier-UPI}
                    index: 45
                  value:
                    choices: [valueIdentifier]
                    index: 50
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema:
                            choices: [valueIdentifier]
                            index: 50
                  valueIdentifier:
                    type: Identifier
                    choiceOf: value
                    index: 51
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema: {type: Identifier, choiceOf: value, index: 51}
                  value[x]:
                    elements:
                      use:
                        pattern: {type: Code, value: official}
                        index: 52
                      type:
                        binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-organization-identifier-type'}
                        index: 53
                        elements:
                          coding:
                            index: 54
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                                index: 55
                              code:
                                pattern: {type: Code, value: PRN}
                                index: 56
                            required: [system, code]
                        required: [coding]
                      system:
                        pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-provider-upi'}
                        index: 57
                      value: {index: 58}
                    required: [value, type, system, use]
              identifier:
                url: null
                index: 59
                elements:
                  url:
                    pattern: {type: Uri, value: identifier}
                    index: 60
                  value:
                    choices: [valueIdentifier]
                    index: 65
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema:
                            choices: [valueIdentifier]
                            index: 65
                  valueIdentifier:
                    type: Identifier
                    choiceOf: value
                    index: 66
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema: {type: Identifier, choiceOf: value, index: 66}
                  value[x]:
                    elements:
                      use: {index: 67}
                      type:
                        binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-organization-identifier-type'}
                        index: 68
                        elements:
                          coding:
                            index: 69
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                                index: 70
                              code: {index: 71}
                            required: [system, code]
                        required: [coding]
                      system:
                        pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/NamingSystem/id-ppr-epid'}
                        index: 72
                      value: {index: 73}
                    required: [value, type, system, use]
              address:
                url: null
                index: 74
                elements:
                  url:
                    pattern: {type: Uri, value: address}
                    index: 75
                  value:
                    choices: [valueString]
                    index: 80
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            choices: [valueString]
                            index: 80
                  valueString:
                    type: string
                    choiceOf: value
                    index: 81
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, choiceOf: value, index: 81}
            required: [extension]
  url:
    pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-ppr-ext-location-affiliation'}
    index: 82
  value:
    choices: []
    index: 84
package_version: 0.1.2
extensions:
  type:
    url: null
    short: kind of affiliation
    mustSupport: true
    _required: true
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: type}
        index: 2
      value:
        mustSupport: true
        choices: [valueCodeableConcept]
        index: 7
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema:
                mustSupport: true
                choices: [valueCodeableConcept]
                index: 7
      valueCodeableConcept:
        type: CodeableConcept
        mustSupport: true
        choiceOf: value
        index: 8
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 8}
      value[x]:
        elements:
          coding:
            mustSupport: true
            index: 9
            elements:
              system:
                pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/CodeSystem/ppr-provider-role-affiliation-type'}
                mustSupport: true
                index: 10
              code:
                binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-provider-role-affiliation-type'}
                mustSupport: true
                index: 11
              display: {mustSupport: true, index: 12}
  period:
    url: null
    short: When affiliation is in effect
    mustSupport: true
    index: 13
    elements:
      url:
        pattern: {type: Uri, value: period}
        index: 14
      value:
        mustSupport: true
        choices: [valuePeriod]
        index: 19
        slicing:
          slices:
            valuePeriod:
              match: {}
              schema:
                mustSupport: true
                choices: [valuePeriod]
                index: 19
      valuePeriod:
        type: Period
        mustSupport: true
        choiceOf: value
        index: 20
        slicing:
          slices:
            valuePeriod:
              match: {}
              schema: {type: Period, mustSupport: true, choiceOf: value, index: 20}
      value[x]:
        elements:
          start: {mustSupport: true, index: 21}
          end: {mustSupport: true, index: 22}
  with:
    url: null
    short: Provider or Organization affiliated with
    mustSupport: true
    _required: true
    index: 23
    elements:
      url:
        pattern: {type: Uri, value: with}
        index: 24
      value:
        mustSupport: true
        choices: []
        index: 26
      extension:
        index: 27
        slicing:
          slices:
            name:
              match: {}
              schema:
                mustSupport: true
                _required: true
                index: 28
                elements:
                  url:
                    pattern: {type: Uri, value: name}
                    index: 29
                  value:
                    mustSupport: true
                    choices: [valueString]
                    index: 34
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: [valueString]
                            index: 34
                  valueString:
                    type: string
                    mustSupport: true
                    choiceOf: value
                    index: 35
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, mustSupport: true, choiceOf: value, index: 35}
            legalName:
              match: {}
              schema:
                mustSupport: true
                index: 36
                elements:
                  url:
                    pattern: {type: Uri, value: legalName}
                    index: 37
                  value:
                    mustSupport: true
                    choices: [valueString]
                    index: 42
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: [valueString]
                            index: 42
                  valueString:
                    type: string
                    mustSupport: true
                    choiceOf: value
                    index: 43
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, mustSupport: true, choiceOf: value, index: 43}
            identifier-UPI:
              match: {}
              schema:
                index: 44
                elements:
                  url:
                    pattern: {type: Uri, value: identifier-UPI}
                    index: 45
                  value:
                    choices: [valueIdentifier]
                    index: 50
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema:
                            choices: [valueIdentifier]
                            index: 50
                  valueIdentifier:
                    type: Identifier
                    choiceOf: value
                    index: 51
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema: {type: Identifier, choiceOf: value, index: 51}
                  value[x]:
                    elements:
                      use:
                        pattern: {type: Code, value: official}
                        index: 52
                      type:
                        binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-organization-identifier-type'}
                        index: 53
                        elements:
                          coding:
                            index: 54
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                                index: 55
                              code:
                                pattern: {type: Code, value: PRN}
                                index: 56
                            required: [system, code]
                        required: [coding]
                      system:
                        pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-provider-upi'}
                        index: 57
                      value: {index: 58}
                    required: [value, type, system, use]
            identifier:
              match: {}
              schema:
                index: 59
                elements:
                  url:
                    pattern: {type: Uri, value: identifier}
                    index: 60
                  value:
                    choices: [valueIdentifier]
                    index: 65
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema:
                            choices: [valueIdentifier]
                            index: 65
                  valueIdentifier:
                    type: Identifier
                    choiceOf: value
                    index: 66
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema: {type: Identifier, choiceOf: value, index: 66}
                  value[x]:
                    elements:
                      use: {index: 67}
                      type:
                        binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-organization-identifier-type'}
                        index: 68
                        elements:
                          coding:
                            index: 69
                            elements:
                              system:
                                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                                index: 70
                              code: {index: 71}
                            required: [system, code]
                        required: [coding]
                      system:
                        pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/NamingSystem/id-ppr-epid'}
                        index: 72
                      value: {index: 73}
                    required: [value, type, system, use]
            address:
              match: {}
              schema:
                index: 74
                elements:
                  url:
                    pattern: {type: Uri, value: address}
                    index: 75
                  value:
                    choices: [valueString]
                    index: 80
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            choices: [valueString]
                            index: 80
                  valueString:
                    type: string
                    choiceOf: value
                    index: 81
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, choiceOf: value, index: 81}
    extensions:
      name:
        url: null
        mustSupport: true
        _required: true
        index: 28
        elements:
          url:
            pattern: {type: Uri, value: name}
            index: 29
          value:
            mustSupport: true
            choices: [valueString]
            index: 34
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    mustSupport: true
                    choices: [valueString]
                    index: 34
          valueString:
            type: string
            mustSupport: true
            choiceOf: value
            index: 35
            slicing:
              slices:
                valueString:
                  match: {}
                  schema: {type: string, mustSupport: true, choiceOf: value, index: 35}
      legalName:
        url: null
        mustSupport: true
        index: 36
        elements:
          url:
            pattern: {type: Uri, value: legalName}
            index: 37
          value:
            mustSupport: true
            choices: [valueString]
            index: 42
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    mustSupport: true
                    choices: [valueString]
                    index: 42
          valueString:
            type: string
            mustSupport: true
            choiceOf: value
            index: 43
            slicing:
              slices:
                valueString:
                  match: {}
                  schema: {type: string, mustSupport: true, choiceOf: value, index: 43}
      identifier-UPI:
        url: null
        index: 44
        elements:
          url:
            pattern: {type: Uri, value: identifier-UPI}
            index: 45
          value:
            choices: [valueIdentifier]
            index: 50
            slicing:
              slices:
                valueIdentifier:
                  match: {}
                  schema:
                    choices: [valueIdentifier]
                    index: 50
          valueIdentifier:
            type: Identifier
            choiceOf: value
            index: 51
            slicing:
              slices:
                valueIdentifier:
                  match: {}
                  schema: {type: Identifier, choiceOf: value, index: 51}
          value[x]:
            elements:
              use:
                pattern: {type: Code, value: official}
                index: 52
              type:
                binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-organization-identifier-type'}
                index: 53
                elements:
                  coding:
                    index: 54
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        index: 55
                      code:
                        pattern: {type: Code, value: PRN}
                        index: 56
                    required: [system, code]
                required: [coding]
              system:
                pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-provider-upi'}
                index: 57
              value: {index: 58}
            required: [value, type, system, use]
      identifier:
        url: null
        index: 59
        elements:
          url:
            pattern: {type: Uri, value: identifier}
            index: 60
          value:
            choices: [valueIdentifier]
            index: 65
            slicing:
              slices:
                valueIdentifier:
                  match: {}
                  schema:
                    choices: [valueIdentifier]
                    index: 65
          valueIdentifier:
            type: Identifier
            choiceOf: value
            index: 66
            slicing:
              slices:
                valueIdentifier:
                  match: {}
                  schema: {type: Identifier, choiceOf: value, index: 66}
          value[x]:
            elements:
              use: {index: 67}
              type:
                binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ppr-organization-identifier-type'}
                index: 68
                elements:
                  coding:
                    index: 69
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        index: 70
                      code: {index: 71}
                    required: [system, code]
                required: [coding]
              system:
                pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/NamingSystem/id-ppr-epid'}
                index: 72
              value: {index: 73}
            required: [value, type, system, use]
      address:
        url: null
        index: 74
        elements:
          url:
            pattern: {type: Uri, value: address}
            index: 75
          value:
            choices: [valueString]
            index: 80
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    choices: [valueString]
                    index: 80
          valueString:
            type: string
            choiceOf: value
            index: 81
            slicing:
              slices:
                valueString:
                  match: {}
                  schema: {type: string, choiceOf: value, index: 81}
    required: [extension]
class: extension
kind: complex-type
url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-ppr-ext-location-affiliation
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 1.0.0