PackagesCanonicalsLogsProblems
    Packages
    rs/cezih.osnova@0.2.3
    http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-document
description: Osnovni podatci svih FHIR dokumenata. Svi FHIR dokumenti moraju zadovoljavati sve zahtjeve ove specifikacije
package_name: rs/cezih.osnova
derivation: constraint
name: HRDocument
type: Bundle
elements:
  language: {short: Jezik dokumenta, index: 0}
  identifier:
    short: Jedinstveni identifikator dokumenta
    constraint:
      DOC-2: {human: 'Document identifier must be in OID format ad begin with urn:oid:([1-9][0-9]{0,3}|0){1,4}(\\.([1-9][0-9]{0,32}|0)){5,13}$', severity: error, expression: 'value.matches("^urn:oid:.*")'}
    index: 1
    elements:
      system:
        pattern: {type: uri, value: 'urn:ietf:rfc:3986'}
        type: uri
        index: 2
      value: {index: 3}
    required: [system, value]
  type:
    short: Vrsta Bundle resursa
    pattern: {type: code, value: document}
    type: code
    index: 4
  timestamp: {short: Vrijeme kreiranja dokumenta, index: 5}
  signature:
    short: Digitalni potpis dokumenta
    index: 6
    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: 7
      when: {short: Vrijeme kreiranja digitalnog potpisa dokumenta, index: 8}
      who:
        type: Reference
        short: Referenca na potpisnika dokumenta
        constraint:
          DOC-3: {human: Local reference must be used to specify signer of document, severity: error, expression: 'reference.matches("^urn:uuid:.*")'}
        refers: ['http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-practitioner']
        index: 9
        elements:
          reference: {index: 10}
          type: {index: 11}
          identifier: {index: 12}
        required: [reference]
      onBehalfOf: {index: 13}
      targetFormat: {index: 14}
      sigFormat: {index: 15}
      data: {short: Digitalni potpis, index: 16}
    required: [data]
package_version: 0.2.3
class: profile
kind: resource
url: http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-document
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 0.2.3
required: [identifier, signature, timestamp]