PackagesCanonicalsLogsProblems
    Packages
    marburg.schulung@1.0.0
    http://fhir.gefyra.de/StructureDefinition/MeinPatientenProfil
description: Dies ist mein Patienten-Profil
package_name: marburg.schulung
derivation: constraint
name: MeinPatientenProfil
type: Patient
elements:
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        BuergerID:
          match: {system: 'http://fhir.ufp/NamingSystem/ufp-citizen-id'}
          schema:
            _required: true
            index: 1
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.ufp/NamingSystem/ufp-citizen-id'}
                index: 2
              value: {index: 3}
            required: [value, system]
        VersichertenID:
          match: {system: 'http://fhir.de/NamingSystem/gkv/kvid-10'}
          schema:
            index: 4
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.de/NamingSystem/gkv/kvid-10'}
                index: 5
              value:
                constraint:
                  kvid-2: {human: 'Das ist keine KVID :( !!!!1111!!!!', severity: warning, expression: 'matches(''[A-Z][0-9]{9}'')'}
                index: 6
            required: [value, system]
  name:
    mustSupport: true
    index: 7
    elements:
      family: {index: 8}
      given: {index: 9}
    required: [given, family]
  gender: {mustSupport: true, index: 10}
  birthDate: {mustSupport: true, index: 11}
  address: {type: Address, mustSupport: true, index: 12}
  contact:
    elements:
      address: {type: Address, index: 13}
package_version: 1.0.0
class: profile
kind: resource
url: http://fhir.gefyra.de/StructureDefinition/MeinPatientenProfil
base: http://hl7.org/fhir/StructureDefinition/Patient
version: '0.1'
required: [gender, name, address]