PackagesCanonicalsLogsProblems
    Packages
    cezih.hr.cezih-osnova@0.2.9
    http://fhir.cezih.hr/specifikacije/StructureDefinition/HRPMIRBundle
description: null
package_name: cezih.hr.cezih-osnova
derivation: constraint
name: HRPMIRBundle
type: Bundle
elements:
  identifier: {index: 0}
  type: {short: Definira da resurs Bundle predstavlja FHIR poruku, index: 1}
  timestamp: {short: Vrijeme kreiranja poruke, index: 2}
  total: {index: 3}
  link: {index: 4}
  entry:
    index: 5
    slicing:
      slices:
        PMIRMessageHeaderEntry:
          match: {}
          schema:
            index: 5
            elements:
              resource:
                short: Resurs koji opisuje poruku koja se razmjenjuje između sustava
                index: 6
                elements:
                  destination:
                    short: Sustav u koji je poslana poruka.
                    index: 7
                    elements:
                      endpoint: {short: ID sustava CEZIH, index: 8}
                  sender:
                    type: Reference
                    refers: ['http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-organizacija']
                    index: 9
                    elements:
                      type:
                        pattern: {type: uri, value: Organization}
                        type: uri
                        index: 10
                      identifier:
                        index: 11
                        elements:
                          system:
                            pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/HZZO-sifra-zdravstvene-organizacije'}
                            type: uri
                            index: 12
                          value: {index: 13}
                        required: [system, value]
                    required: [identifier, type]
                  enterer: {index: 14}
                  author:
                    type: Reference
                    short: Autor poruke.
                    refers: ['http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-practitioner']
                    index: 15
                    elements:
                      type:
                        pattern: {type: uri, value: Practitioner}
                        type: uri
                        index: 16
                      identifier:
                        index: 17
                        elements:
                          system:
                            pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/HZJZ-broj-zdravstvenog-djelatnika'}
                            type: uri
                            index: 18
                          value: {index: 19}
                        required: [system, value]
                    required: [identifier, type]
                  source:
                    short: Sustav koji šalje poruku.
                    index: 20
                    elements:
                      endpoint: {short: AID sustava koji šalje poruku., index: 21}
                required: [author, sender]
        PMIRBundleHistoryEntry:
          match: {}
          schema:
            index: 22
            elements:
              resource:
                elements:
                  type: {short: Definira da resurs Bundle predstavlja FHIR poruku, index: 23}
                  timestamp: {short: Vrijeme kreiranja poruke, index: 24}
                  total: {index: 25}
                  link: {index: 26}
                  entry:
                    index: 27
                    slicing:
                      slices:
                        PMIREntryCreate:
                          match: {}
                          schema:
                            index: 28
                            elements:
                              resource:
                                short: Pacijent
                                index: 29
                                elements:
                                  identifier:
                                    array: true
                                    min: 1
                                    max: 2
                                    index: 30
                                    slicing:
                                      rules: closed
                                      discriminator:
                                      - {path: system, type: value}
                                      min: 1
                                      max: 2
                                      slices:
                                        europskaKartica:
                                          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica'}
                                          schema:
                                            index: 31
                                            elements:
                                              system:
                                                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica'}
                                                type: uri
                                                index: 32
                                              value:
                                                short: Broj EU kartice.
                                                constraint:
                                                  EUCARD-1: {human: 'EU kartica mora imati 20 znakova (0-9, A-Z, a-z)', severity: error, expression: 'matches(''^[0-9a-zA-Z_]{20}$'')', requirements: EU kartica mora imati 20 znakova}
                                                index: 33
                                            required: [system, value]
                                        putovnica:
                                          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/putovnica'}
                                          schema:
                                            index: 34
                                            elements:
                                              system:
                                                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/putovnica'}
                                                type: uri
                                                index: 35
                                              value: {short: Broj putovnice., index: 36}
                                            required: [system, value]
                                  name: {short: Ime pacijenta., index: 37}
                                  address:
                                    index: 38
                                    elements:
                                      country:
                                        short: Država pacijenta
                                        binding: {strength: required, valueSet: 'http://fhir.cezih.hr/specifikacije/ValueSet/drzave'}
                                        index: 39
                                    required: [country]
                                required: [address, identifier, name]
                              search: {index: 40}
                        PMIREntryUpdate:
                          match: {}
                          schema:
                            index: 41
                            elements:
                              resource:
                                elements:
                                  identifier:
                                    array: true
                                    min: 2
                                    max: 3
                                    index: 42
                                    slicing:
                                      rules: closed
                                      discriminator:
                                      - {path: system, type: value}
                                      min: 2
                                      max: 3
                                      slices:
                                        europskaKartica:
                                          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica'}
                                          schema:
                                            index: 43
                                            elements:
                                              system:
                                                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/europska-kartica'}
                                                type: uri
                                                index: 44
                                              value:
                                                short: Broj europske kartice
                                                constraint:
                                                  EUCARD-1: {human: 'EU kartica mora imati 20 znakova (0-9, A-Z, a-z)', severity: error, expression: 'matches(''^[0-9a-zA-Z_]{20}$'')', requirements: EU kartica mora imati 20 znakova}
                                                index: 45
                                            required: [system, value]
                                        putovnica:
                                          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/putovnica'}
                                          schema:
                                            index: 46
                                            elements:
                                              system:
                                                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/putovnica'}
                                                type: uri
                                                index: 47
                                              value: {index: 48}
                                            required: [system, value]
                                        jedinstveniIdentifikatorPacijenta:
                                          match: {system: 'http://fhir.cezih.hr/specifikacije/identifikatori/jedinstveni-identifikator-pacijenta'}
                                          schema:
                                            short: Jedinstveni identifikator pacijenta koji mu je dodjelio CEZIH.
                                            _required: true
                                            index: 49
                                            elements:
                                              system:
                                                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/jedinstveni-identifikator-pacijenta'}
                                                type: uri
                                                index: 50
                                              value: {index: 51}
                                            required: [system, value]
                                  name: {index: 52}
                                  address:
                                    index: 53
                                    elements:
                                      country:
                                        binding: {strength: required, valueSet: 'http://fhir.cezih.hr/specifikacije/ValueSet/drzave'}
                                        index: 54
                                    required: [country]
                                required: [address, name]
                              search: {index: 55}
                              request:
                                elements:
                                  url:
                                    short: URL resursa pacijenta koji se ažurira
                                    constraint:
                                      HRPMIR-1: {human: Mora biti broj putovnice ili EU kartice, severity: error, expression: 'matches(''^Patient?identifier=http\/\/fhir.cezih.hr\/specifikacije\/identifikatori\/europska-kartica'')|matches(''^Patient?identifier=http\/\/fhir.cezih.hr\/specifikacije\/identifikatori\/putovnica'')'}
                                    index: 56
                        PMIREntryDelete:
                          match: {}
                          schema: {index: 57}
                          max: 0
              search: {index: 58}
              request: {index: 59}
              response: {index: 60}
  signature:
    index: 61
    elements:
      type:
        short: Definira vrstu digitalnog potpisa"
        pattern:
          type: Coding
          value: {code: 1.2.840.10065.1.12.1.1, system: 'urn:iso-astm:E1762-95:2013'}
        type: Coding
        index: 62
      when: {short: Vrijeme kreiranja digitalnog potpisa poruke, index: 63}
      who:
        type: Reference
        short: Referenca na potpisnika poruke
        refers: ['http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-practitioner']
        index: 64
        elements:
          type:
            pattern: {type: uri, value: Practitioner}
            type: uri
            index: 65
          identifier:
            short: Identifikator zdravstvenog djelatnika, potpisnika poruke. Koristi se HZJZ šifra djelatnika.
            index: 66
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.cezih.hr/specifikacije/identifikatori/HZJZ-broj-zdravstvenog-djelatnika'}
                type: uri
                index: 67
              value: {short: MBO, index: 68}
            required: [system, value]
        required: [identifier, type]
      onBehalfOf: {index: 69}
      targetFormat: {index: 70}
      sigFormat: {index: 71}
      data: {index: 72}
    required: [data]
package_version: 0.2.9
class: profile
kind: resource
url: http://fhir.cezih.hr/specifikacije/StructureDefinition/HRPMIRBundle
base: https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Bundle
version: null
required: [signature, timestamp]