PackagesCanonicalsLogsProblems
    Packages
    ee.fhir.mpi@1.4.0
    https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient
description: Common MPI limitations on Patient resource
package_name: ee.fhir.mpi
derivation: constraint
name: EEMPIPatient
abstract: true
type: Patient
elements:
  managingOrganization: {index: 17}
  photo: {index: 12}
  link: {short: 'Seos teise patsiendi kirjega. Ignoreeritakse salvestamisel, saab muuta ainult $link operatsiooni abil.', index: 18}
  active: {short: 'Patsiendi kirje olek, määrab kas kirje on kehtiv või eksklikult sisestatud. Eesti isikukoodiga patsiendi puhul väärtuse muutus ei ole lubatud.', index: 1}
  communication:
    short: Suhtluskeeled
    mustSupport: true
    index: 14
    elements:
      language:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/all-languages|5.0.0'}
        index: 15
  identifier:
    elements:
      period: {short: 'Identifikaatori kehtivuse periood. Kui puudub, siis on identifikaator kehtiv.', mustSupport: true, index: 0}
  telecom:
    short: Patsiendi kontaktandmed.
    index: 2
    slicing:
      rules: closed
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        phone:
          match: {system: phone}
          schema:
            short: Telefoni number
            mustSupport: true
            array: true
            index: 3
            elements:
              system:
                pattern: {type: Code, value: phone}
                index: 4
              value:
                constraint:
                  phone-regex: {human: 'Telefoninumber peab olema korrektses Eesti vormingus (lauatelefon, mobiil või rahvusvaheline number)', source: 'https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient', severity: error, expression: 'value.matches(''(^\\+(?!372)[1-9]\\d{1,14}$)|(^(\\+372|00372)?5(\\d{6,7})$)|(^(\\+372|00372)?(32|33|35|38|39|6[0-9]|7[1-9]|88)(\\d{5})$)'')'}
                index: 5
              rank: {mustSupport: true, index: 6}
        email:
          match: {system: email}
          schema:
            short: E-Mail
            mustSupport: true
            array: true
            index: 7
            elements:
              system:
                pattern: {type: Code, value: email}
                index: 8
              value:
                constraint:
                  email-regex: {human: E-posti aadress peab olema korrektses vormingus, source: 'https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient', severity: error, expression: 'value.matches(''^(?=.{1,64}@)[A-Za-z0-9_+-]+(\\.[A-Za-z0-9_+-]+)*@[^-][A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$'')'}
                index: 9
              rank: {mustSupport: true, index: 10}
  generalPractitioner: {index: 16}
  maritalStatus: {index: 11}
  contact: {index: 13}
package_version: 1.4.0
class: profile
kind: resource
url: https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient
base: https://fhir.ee/base/StructureDefinition/ee-patient
version: 1.4.0