PackagesCanonicalsLogsProblems
    Packages
    cezih.hr.cezih-osnova@1.0.2
    http://fhir.cezih.hr/specifikacije/StructureDefinition/HRCreatePrescriptionMessage
description: null
package_name: cezih.hr.cezih-osnova
derivation: constraint
name: HRCreatePrescriptionMessage
type: Bundle
elements:
  entry:
    array: true
    min: 3
    max: 3
    index: 0
    slicing:
      rules: closed
      discriminator:
      - {path: resource, type: type}
      min: 3
      max: 3
      slices:
        messageHeader:
          match: {}
          schema:
            _required: true
            index: 1
            elements:
              resource:
                type: MessageHeader
                index: 2
                elements:
                  event:
                    pattern:
                      type: Coding
                      value: {code: '4.1', system: 'http://fhir.cezih.hr/specifikacije/CodeSystem/message-types', display: TR01 - Kreiranje recepta}
                    choices: []
                    index: 4
                  event[x]:
                    elements:
                      code:
                        pattern: {type: Code, value: '4.1'}
                        index: 5
                  focus: {array: true, min: 2, max: 2, index: 6}
        recept:
          match: {}
          schema:
            _required: true
            index: 7
            elements:
              resource:
                type: MedicationRequest
                index: 8
                extensions:
                  hRTroskoviSudjelovanje: {url: null, index: 9}
                elements:
                  extension:
                    index: 9
                    slicing:
                      slices:
                        hRTroskoviSudjelovanje:
                          match: {}
                          schema: {index: 9}
                  status:
                    pattern: {type: Code, value: active}
                    index: 10
                  intent:
                    pattern: {type: Code, value: order}
                    index: 11
                  dispenseRequest:
                    elements:
                      numberOfRepeatsAllowed:
                        short: Broj dozvoljenih izdavanja po receptu
                        constraint:
                          IZD-1: {human: 'Nedozvoljen broj ponavljanja po receptu,', severity: error, expression: $this >=0 and $this <=5}
                        index: 12
        pacijent:
          match: {}
          schema:
            _required: true
            index: 13
            elements:
              resource:
                type: Patient
                index: 14
                elements:
                  name:
                    index: 15
                    elements:
                      family: {index: 16}
                      given: {index: 17}
                    required: [given, family]
                required: [name]
package_version: 1.0.2
class: profile
kind: resource
url: http://fhir.cezih.hr/specifikacije/StructureDefinition/HRCreatePrescriptionMessage
base: http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-request-message
version: 1.0.2