PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.cz.img@1.0.0
    https://hl7.cz/fhir/img/StructureDefinition/cz-bundle-imaging
description: Clinical document used to represent a Imaging Report for the scope of this guide.
package_name: hl7.fhir.cz.img
derivation: constraint
name: CZ_BundleImagingReport
type: Bundle
elements:
  identifier: {short: Business identifier for this Imaging Report, index: 0}
  type:
    pattern: {type: Code, value: document}
    index: 1
  timestamp: {index: 2}
  total: {index: 3}
  link: {index: 4}
  entry:
    array: true
    min: 3
    index: 5
    elements:
      link: {index: 6}
      fullUrl: {index: 7}
      resource: {index: 8}
      search: {index: 9}
      request: {index: 10}
      response: {index: 11}
    required: [resource, fullUrl]
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: resource, type: type}
      - {path: resource, type: profile}
      min: 3
      slices:
        patient:
          match: {}
          schema:
            array: true
            min: 1
            _required: true
            index: 18
            elements:
              resource: {type: Patient, index: 19}
        practitionerRole:
          match: {}
          schema:
            array: true
            index: 28
            elements:
              resource: {type: PractitionerRole, index: 29}
        specimen:
          match: {}
          schema:
            array: true
            index: 22
            elements:
              resource: {type: Specimen, index: 23}
        medicationAdministration:
          match: {}
          schema:
            array: true
            index: 34
            elements:
              resource: {type: MedicationAdministration, index: 35}
        documentReference:
          match: {}
          schema:
            short: Attachment, logo, or key image
            constraint:
              img-document-reference-profile:
                human: DocumentReference entries shall declare an allowed CZ profile.
                source: https://hl7.cz/fhir/img/StructureDefinition/cz-bundle-imaging
                severity: error
                expression: |-
                  resource.meta.profile.where(
                    $this = 'https://hl7.cz/fhir/core/StructureDefinition/cz-attachment' or
                    $this = 'https://hl7.cz/fhir/core/StructureDefinition/cz-logo' or
                    $this = 'https://hl7.cz/fhir/img/StructureDefinition/cz-keyImage-documentReference'
                  ).exists()
            array: true
            index: 44
            elements:
              resource: {type: DocumentReference, short: 'CZ Attachment, including specialized logo and key-image profiles', index: 45}
        coverage:
          match: {}
          schema:
            array: true
            index: 32
            elements:
              resource: {type: Coverage, index: 33}
        observation:
          match: {}
          schema:
            array: true
            index: 20
            elements:
              resource: {type: Observation, index: 21}
        procedure:
          match: {}
          schema:
            array: true
            index: 46
            elements:
              resource: {type: Procedure, index: 47}
        organization:
          match: {}
          schema:
            array: true
            index: 24
            elements:
              resource: {type: Organization, index: 25}
        diagnosticReport:
          match: {}
          schema:
            _required: true
            index: 14
            elements:
              resource: {type: DiagnosticReport, index: 15}
        condition:
          match: {}
          schema:
            array: true
            index: 38
            elements:
              resource: {type: Condition, index: 39}
        serviceRequest:
          match: {}
          schema:
            array: true
            index: 16
            elements:
              resource: {type: ServiceRequest, index: 17}
        adverseEvent:
          match: {}
          schema:
            array: true
            index: 48
            elements:
              resource: {type: AdverseEvent, index: 49}
        practitioner:
          match: {}
          schema:
            array: true
            index: 26
            elements:
              resource: {type: Practitioner, index: 27}
        device:
          match: {}
          schema:
            array: true
            index: 30
            elements:
              resource: {type: Device, index: 31}
        composition:
          match: {}
          schema:
            _required: true
            index: 12
            elements:
              resource: {type: Composition, index: 13}
        carePlan:
          match: {}
          schema:
            array: true
            index: 40
            elements:
              resource: {type: CarePlan, index: 41}
        imagingStudy:
          match: {}
          schema:
            array: true
            index: 42
            elements:
              resource: {type: ImagingStudy, index: 43}
        medication:
          match: {}
          schema:
            array: true
            index: 36
            elements:
              resource: {type: Medication, index: 37}
  signature: {type: Signature, short: Digital Signature of this report, index: 50}
package_version: 1.0.0
class: profile
kind: resource
url: https://hl7.cz/fhir/img/StructureDefinition/cz-bundle-imaging
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 1.0.0
required: [timestamp, identifier]