PackagesCanonicalsLogsProblems
    Packages
    rs/de.thieme@compliance.anamnese-0.0.1-dev
    https://thieme-compliance.de/fhir/StructureDefinition/EcpVersicherungsverhaeltnis
description: Versicherungsverhältnis für die ECP-Dateneinleitung
package_name: rs/de.thieme
derivation: constraint
name: EcpVersicherungsverhaeltnis
type: Coverage
elements:
  extension:
    type: Extension
    mustSupport: true
    url: http://fhir.de/StructureDefinition/gkv/versichertenart
    index: 0
    slicing:
      slices:
        gkvVersichertenart:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://fhir.de/StructureDefinition/gkv/versichertenart
            index: 0
            extensions: {}
            elements:
              extension: {index: 1}
              value:
                mustSupport: true
                choices: []
                index: 3
              value[x]:
                elements:
                  system: {mustSupport: true, index: 4}
                  code: {mustSupport: true, index: 5}
  identifier:
    short: Primärer Identifier der Versicherung
    mustSupport: true
    index: 6
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        KrankenversichertenID:
          match:
            type:
              coding:
              - {code: GKV, system: 'http://fhir.de/CodeSystem/identifier-type-de-basis'}
          schema:
            type: Identifier
            mustSupport: true
            pattern:
              type: Identifier
              value:
                type:
                  coding:
                  - {code: GKV, system: 'http://fhir.de/CodeSystem/identifier-type-de-basis'}
            index: 7
            elements:
              type: {mustSupport: true, index: 8}
              system: {mustSupport: true, index: 9}
              value: {mustSupport: true, index: 10}
            required: [type]
        IdentifierPkv:
          match:
            type:
              coding:
              - {code: PKV, system: 'http://fhir.de/CodeSystem/identifier-type-de-basis'}
          schema:
            type: Identifier
            mustSupport: true
            pattern:
              type: Identifier
              value:
                type:
                  coding:
                  - {code: PKV, system: 'http://fhir.de/CodeSystem/identifier-type-de-basis'}
            index: 11
            elements:
              type: {mustSupport: true, index: 12}
              system: {mustSupport: true, index: 13}
              value: {mustSupport: true, index: 14}
            required: [type]
  status: {mustSupport: true, index: 15}
  type:
    mustSupport: true
    index: 16
    elements:
      coding:
        mustSupport: true
        index: 17
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            VersicherungsArtDeBasis:
              match: {}
              schema: {mustSupport: true, _required: true, index: 18}
              min: 1
              max: 1
    required: [coding]
  subscriber:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 19
    elements:
      identifier:
        type: Identifier
        short: VersichertenID (10-stellig) des Hauptversicherten
        pattern:
          type: Identifier
          value: {system: 'http://fhir.de/sid/gkv/kvid-10'}
        index: 20
      display: {short: Name des Hauptversicherten, index: 21}
    required: [identifier]
  beneficiary:
    mustSupport: true
    index: 22
    elements:
      reference: {mustSupport: true, index: 23}
      identifier:
        short: Identifier der versicherten Person
        pattern:
          type: Identifier
          value: {system: 'http://fhir.de/sid/gkv/kvid-10'}
        type: Identifier
        index: 24
      display: {short: Name der Versicherten Person, index: 25}
    required: [reference]
  payor:
    mustSupport: true
    index: 26
    elements:
      identifier:
        type: Identifier
        mustSupport: true
        index: 27
        elements:
          type: {mustSupport: true, index: 28}
          system: {mustSupport: true, index: 29}
          value: {mustSupport: true, index: 30}
        required: [type]
      display: {mustSupport: true, index: 31}
    required: [display]
package_version: compliance.anamnese-0.0.1-dev
extensions:
  gkvVersichertenart:
    url: http://fhir.de/StructureDefinition/gkv/versichertenart
    type: Extension
    mustSupport: true
    index: 0
    extensions: {}
    elements:
      extension: {index: 1}
      value:
        mustSupport: true
        choices: []
        index: 3
      value[x]:
        elements:
          system: {mustSupport: true, index: 4}
          code: {mustSupport: true, index: 5}
class: profile
kind: resource
url: https://thieme-compliance.de/fhir/StructureDefinition/EcpVersicherungsverhaeltnis
base: http://fhir.de/StructureDefinition/coverage-de-basis
version: 1.0.0