PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch@core-5.0.0-ballot
    http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-ext-entry-resource-cross-references
description: Extension to make a reference beween resources as entries in i.e. document bundles.
package_name: ch.fhir.ig.ch
derivation: constraint
name: EntryResourceCrossReferences
type: Extension
elements:
  extension:
    array: true
    min: 3
    index: 0
    slicing:
      slices:
        entry:
          match: {}
          schema:
            short: Reference to the related entry
            _required: true
            index: 1
            extensions: {}
            elements:
              extension: {index: 2}
              url:
                pattern: {type: Uri, value: entry}
                index: 3
              value:
                choices: []
                index: 5
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    valueReference:
                      match: {}
                      schema:
                        short: Reference to the entry resource in an other container i.e. Bundle
                        choices: [valueReference]
                        index: 7
                      min: 0
                      max: 1
              valueReference:
                type: Reference
                short: Reference to the entry resource in an other container i.e. Bundle
                choiceOf: value
                index: 8
                slicing:
                  slices:
                    valueReference:
                      match: {}
                      schema: {type: Reference, short: Reference to the entry resource in an other container i.e. Bundle, choiceOf: value, index: 8}
                      min: 0
                      max: 1
              value[x]:
                elements:
                  reference: {index: 9}
                  type: {short: Entry resource type, index: 10}
                  identifier: {short: Identifier of entry, index: 11}
                required: [identifier, type]
        container:
          match: {}
          schema:
            short: Reference to the related container resource
            _required: true
            index: 12
            extensions: {}
            elements:
              extension: {index: 13}
              url:
                pattern: {type: Uri, value: container}
                index: 14
              value:
                choices: []
                index: 16
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    valueReference:
                      match: {}
                      schema:
                        short: Reference to the container resource i.e. Bundle.composition containinig the referenced entry
                        choices: [valueReference]
                        index: 18
                      min: 0
                      max: 1
              valueReference:
                type: Reference
                short: Reference to the container resource i.e. Bundle.composition containinig the referenced entry
                choiceOf: value
                index: 19
                slicing:
                  slices:
                    valueReference:
                      match: {}
                      schema: {type: Reference, short: Reference to the container resource i.e. Bundle.composition containinig the referenced entry, choiceOf: value, index: 19}
                      min: 0
                      max: 1
              value[x]:
                elements:
                  reference: {index: 20}
                  type: {short: Container resource type, index: 21}
                  identifier: {short: Identifier of container, index: 22}
                required: [identifier, type]
        relationcode:
          match: {}
          schema:
            short: Reference to the related document
            _required: true
            index: 23
            extensions: {}
            elements:
              extension: {index: 24}
              url:
                pattern: {type: Uri, value: relationcode}
                index: 25
              value:
                choices: []
                index: 27
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueCode:
                      match: {}
                      schema:
                        short: The type of relationship between the elements in the documents.
                        choices: [valueCode]
                        _required: true
                        index: 29
                      min: 1
                      max: 1
              valueCode:
                type: code
                short: The type of relationship between the elements in the documents.
                choiceOf: value
                index: 30
                slicing:
                  slices:
                    valueCode:
                      match: {}
                      schema: {type: code, short: The type of relationship between the elements in the documents., choiceOf: value, _required: true, index: 30}
                      min: 1
                      max: 1
            required: [valueCode, value]
  url:
    pattern: {type: Uri, value: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-ext-entry-resource-cross-references'}
    index: 31
  value:
    choices: []
    index: 33
package_version: core-5.0.0-ballot
extensions:
  entry:
    url: null
    short: Reference to the related entry
    _required: true
    index: 1
    extensions: {}
    elements:
      extension: {index: 2}
      url:
        pattern: {type: Uri, value: entry}
        index: 3
      value:
        choices: []
        index: 5
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            valueReference:
              match: {}
              schema:
                short: Reference to the entry resource in an other container i.e. Bundle
                choices: [valueReference]
                index: 7
              min: 0
              max: 1
      valueReference:
        type: Reference
        short: Reference to the entry resource in an other container i.e. Bundle
        choiceOf: value
        index: 8
        slicing:
          slices:
            valueReference:
              match: {}
              schema: {type: Reference, short: Reference to the entry resource in an other container i.e. Bundle, choiceOf: value, index: 8}
              min: 0
              max: 1
      value[x]:
        elements:
          reference: {index: 9}
          type: {short: Entry resource type, index: 10}
          identifier: {short: Identifier of entry, index: 11}
        required: [identifier, type]
  container:
    url: null
    short: Reference to the related container resource
    _required: true
    index: 12
    extensions: {}
    elements:
      extension: {index: 13}
      url:
        pattern: {type: Uri, value: container}
        index: 14
      value:
        choices: []
        index: 16
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            valueReference:
              match: {}
              schema:
                short: Reference to the container resource i.e. Bundle.composition containinig the referenced entry
                choices: [valueReference]
                index: 18
              min: 0
              max: 1
      valueReference:
        type: Reference
        short: Reference to the container resource i.e. Bundle.composition containinig the referenced entry
        choiceOf: value
        index: 19
        slicing:
          slices:
            valueReference:
              match: {}
              schema: {type: Reference, short: Reference to the container resource i.e. Bundle.composition containinig the referenced entry, choiceOf: value, index: 19}
              min: 0
              max: 1
      value[x]:
        elements:
          reference: {index: 20}
          type: {short: Container resource type, index: 21}
          identifier: {short: Identifier of container, index: 22}
        required: [identifier, type]
  relationcode:
    url: null
    short: Reference to the related document
    _required: true
    index: 23
    extensions: {}
    elements:
      extension: {index: 24}
      url:
        pattern: {type: Uri, value: relationcode}
        index: 25
      value:
        choices: []
        index: 27
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: 1
          slices:
            valueCode:
              match: {}
              schema:
                short: The type of relationship between the elements in the documents.
                choices: [valueCode]
                _required: true
                index: 29
              min: 1
              max: 1
      valueCode:
        type: code
        short: The type of relationship between the elements in the documents.
        choiceOf: value
        index: 30
        slicing:
          slices:
            valueCode:
              match: {}
              schema: {type: code, short: The type of relationship between the elements in the documents., choiceOf: value, _required: true, index: 30}
              min: 1
              max: 1
    required: [valueCode, value]
class: extension
kind: complex-type
url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-ext-entry-resource-cross-references
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 5.0.0-ballot