PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.pl.base.r5@0.1.2
    http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-patient
description: Dane pacjenta
package_name: hl7.fhir.pl.base.r5
derivation: constraint
name: PLBasePatient
type: Patient
elements:
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        identifierOfMother:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/patient-identifierOfMother', index: 1}
          min: 0
          max: 1
  identifier:
    index: 2
    slicing:
      rules: open
      ordered: false
      description: Identyfikatory pacjenta
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        pesel:
          match: {system: 'urn:oid:2.16.840.1.113883.3.4424.1.1.616'}
          schema:
            mustSupport: true
            index: 3
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.840.1.113883.3.4424.1.1.616'}
                index: 4
              value:
                constraint:
                  PeselIdentifier: {human: Weryfikacja składni identyfikatora pacjenta PESEL w postaci 11 cyfr, source: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-patient', severity: error, expression: 'value.matches(''^[0-9]{11}$'')'}
                mustSupport: true
                index: 5
            required: [value, system]
  name:
    mustSupport: true
    index: 6
    slicing:
      rules: open
      ordered: false
      description: Rozróżnienie pacjenta o ustalonej tożsamości od pacjenta NN
      discriminator:
      - {path: use, type: value}
      min: 1
      max: 1
      slices:
        unknown:
          match: {use: anonymous}
          schema:
            mustSupport: true
            index: 7
            extensions: {}
            elements:
              extension:
                extensions: {}
                elements:
                  extension: {index: 8}
                  url:
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason'}
                    index: 9
                  value:
                    choices: []
                    index: 11
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: $this, type: type}
                      min: 1
                      slices:
                        valueCode:
                          match: {}
                          schema:
                            pattern: {type: Code, value: unknown}
                            choices: [valueCode]
                            _required: true
                            index: 13
                          min: 1
                          max: 1
                  valueCode:
                    type: code
                    pattern: {type: Code, value: unknown}
                    choiceOf: value
                    index: 14
                    slicing:
                      slices:
                        valueCode:
                          match: {}
                          schema:
                            type: code
                            pattern: {type: Code, value: unknown}
                            choiceOf: value
                            _required: true
                            index: 14
                          min: 1
                          max: 1
                required: [valueCode, value]
              use:
                pattern: {type: Code, value: anonymous}
                index: 15
              text:
                pattern: {type: String, value: NN}
                index: 16
              family: {index: 17}
              given: {index: 18}
              prefix: {index: 19}
              suffix: {index: 20}
              period: {index: 21}
            required: [use]
        known:
          match: {use: null}
          schema:
            mustSupport: true
            index: 22
            elements:
              family: {index: 23}
              given: {array: true, min: 1, max: 2, index: 24}
            required: [given, family]
  address: {type: Address, index: 25}
  multipleBirth:
    choices: [multipleBirthInteger]
    index: 27
  multipleBirthInteger: {type: integer, choiceOf: multipleBirth, index: 28}
package_version: 0.1.2
extensions:
  identifierOfMother: {url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/patient-identifierOfMother', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.1.2
required: [name, identifier]