PackagesCanonicalsLogsProblems
    Packages
    rs/cezih.osnova@0.2.3
    http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-pacijent
description: null
package_name: rs/cezih.osnova
derivation: constraint
name: HRPatient
type: Patient
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        zadnji_kontakt_pacijenta:
          match: {url: 'http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-patient-last-contact'}
          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: 1
            elements:
              url:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-patient-last-contact'}
                type: uri
                index: 2
  identifier:
    array: true
    min: 1
    index: 3
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        MBO:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/MBO'}
          schema:
            mustSupport: true
            index: 4
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/MBO'}
                type: uri
                index: 5
              value:
                constraint:
                  MBO: {human: MBO mora sadržavati točno 9 znamenki., severity: error, expression: 'value.matches("^[0-9]{9,9}$")'}
                index: 6
            required: [system, value]
        EuropskaKartica:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica'}
          schema:
            mustSupport: true
            index: 7
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica'}
                type: uri
                index: 8
              value: {index: 9}
            required: [system, value]
        Putovnica:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/putovnica'}
          schema:
            mustSupport: true
            index: 10
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/putovnica'}
                type: uri
                index: 11
              value: {index: 12}
            required: [system, value]
        JedinstveniIdentifikatorPacijenta:
          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/jedinstveni-identifikator-pacijenta'}
          schema:
            short: Jedinstveni identifikator pacijenta
            mustSupport: true
            index: 13
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/jedinstveni-identifikator-pacijenta'}
                type: uri
                index: 14
              value: {index: 15}
            required: [system, value]
  name: {short: Ime i prezime pacijenta, mustSupport: true, index: 16}
  gender: {short: Spol pacijenta, mustSupport: true, index: 17}
  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: 18
  deceased:
    mustSupport: true
    choices: [deceasedDateTime]
    index: 20
  deceasedDateTime: {type: dateTime, mustSupport: true, choiceOf: deceased, index: 21}
package_version: 0.2.3
extensions:
  zadnji_kontakt_pacijenta:
    url: http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-patient-last-contact
    type: Extension
    short: Vrijeme zadnjeg kontakta pacijenta sa zdravstvenim sustavom
    mustSupport: true
    index: 1
    elements:
      url:
        pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-patient-last-contact'}
        type: uri
        index: 2
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]