PackagesCanonicalsLogsProblems
    Packages
    cezih.hr.cezih-osnova@0.2.9
    http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-pacijent
description: null
package_name: cezih.hr.cezih-osnova
derivation: constraint
name: HRPatient
type: Patient
elements:
  extension:
    type: Extension
    short: Vrijeme zadnjeg kontakta pacijenta sa zdravstvenim sustavom
    mustSupport: true
    url: http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-patient-last-contact
    index: 0
    slicing:
      slices:
        zadnji_kontakt_pacijenta:
          match: {}
          schema: {type: Extension, short: Vrijeme zadnjeg kontakta pacijenta sa zdravstvenim sustavom, mustSupport: true, url: 'http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-patient-last-contact', index: 0}
          max: 1
  identifier:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        MBO:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/MBO'}
          schema:
            short: MBO pacijenta
            mustSupport: true
            index: 2
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/MBO'}
                type: uri
                index: 3
              value:
                constraint:
                  MBO: {human: MBO mora sadržavati točno 9 znamenki., severity: error, expression: 'value.matches("^[0-9]{9,9}$")'}
                index: 4
            required: [system, value]
        EuropskaKartica:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica'}
          schema:
            short: Broj europske kartice pacijenta
            mustSupport: true
            index: 5
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica'}
                type: uri
                index: 6
              value: {index: 7}
            required: [system, value]
        Putovnica:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/putovnica'}
          schema:
            short: Broj putovnice pacijenta
            mustSupport: true
            index: 8
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/putovnica'}
                type: uri
                index: 9
              value: {index: 10}
            required: [system, value]
        JedinstveniIdentifikatorPacijenta:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/jedinstveni-identifikator-pacijenta'}
          schema:
            short: Jedinstveni identifikator pacijenta
            mustSupport: true
            index: 11
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/jedinstveni-identifikator-pacijenta'}
                type: uri
                index: 12
              value: {index: 13}
            required: [system, value]
        OIB:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/OIB'}
          schema:
            short: OIB pacijenta
            index: 14
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/OIB'}
                type: uri
                index: 15
              value: {index: 16}
            required: [system, value]
  name: {short: Ime i prezime pacijenta, mustSupport: true, index: 17}
  gender: {short: Spol pacijenta, mustSupport: true, index: 18}
  birthDate:
    short: Datum rođenja pacijenta
    constraint:
      Datum: {human: Datum mora biti formata YYYY-MM-DD, severity: error, expression: 'value.matches("^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])))$")'}
    mustSupport: true
    index: 19
  deceased:
    mustSupport: true
    choices: [deceasedDateTime]
    index: 21
  deceasedDateTime: {type: dateTime, mustSupport: true, choiceOf: deceased, index: 22}
package_version: 0.2.9
extensions:
  zadnji_kontakt_pacijenta: {url: 'http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-patient-last-contact', max: 1, type: Extension, short: Vrijeme zadnjeg kontakta pacijenta sa zdravstvenim sustavom, mustSupport: true, index: 0}
class: profile
kind: resource
url: http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-pacijent
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.2.3
required: [identifier]