PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.cz.img@1.0.0
    https://hl7.cz/fhir/img/StructureDefinition/cz-composition-imaging
description: This profile defines how to represent Composition resource in HL7 FHIR for the scope of this guide.\n\nImaging report bundle is an electronic health record extract containing results of imaging from a subject of care, comprising at least the required elements of the imaging dataset.
package_name: hl7.fhir.cz.img
derivation: constraint
name: CZ_CompositionImagingReport
type: Composition
elements:
  category:
    array: true
    min: 2
    index: 10
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: value}
      min: 2
      slices:
        diagnostic-service:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/diagnostic-service-sections'}
            index: 11
          min: 0
          max: 1
        imaging-report:
          match:
            coding:
            - {code: 85430-7, system: 'http://loinc.org'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: 85430-7, system: 'http://loinc.org'}
            _required: true
            index: 12
          min: 1
          max: 1
        imaging:
          match:
            coding:
            - {code: Medical-Imaging, system: 'http://hl7.eu/fhir/health-data-api/CodeSystem/eehrxf-document-priority-category-cs'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: Medical-Imaging, system: 'http://hl7.eu/fhir/health-data-api/CodeSystem/eehrxf-document-priority-category-cs'}
            _required: true
            index: 13
          min: 1
          max: 1
  date: {short: Date the report was last changed., index: 15}
  encounter:
    type: Reference
    short: Context that defines the Image Report
    refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-encounter']
    index: 14
  section:
    short: Sections of the report
    constraint:
      eu-imaging-composition-1: {human: 'When a section is empty, the emptyReason extension SHALL be present.', source: 'https://hl7.cz/fhir/img/StructureDefinition/cz-composition-imaging', severity: error, expression: 'entry.empty().not() or emptyReason.exists() or section.exists() or extension(''http://hl7.org/fhir/StructureDefinition/note'').value.text.exists()'}
      eu-imaging-composition-2: {human: 'A section must contain at least one of text, entries, or sub-sections.', source: 'https://hl7.cz/fhir/img/StructureDefinition/cz-composition-imaging', severity: error, expression: text.exists() or entry.exists() or section.exists()}
    array: true
    min: 4
    index: 37
    elements:
      author:
        type: Reference
        refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer', 'https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-patient-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-practitioner-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core', 'https://hl7.cz/fhir/core/StructureDefinition/cz-relatedPerson-core']
        index: 38
      emptyReason:
        binding: {strength: preferred, valueSet: 'https://hl7.cz/fhir/img/ValueSet/SectionEmptyReasonEuImaging'}
        index: 39
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: code, type: value}
      min: 4
      slices:
        findings:
          match:
            code:
              coding:
              - {code: 59776-5, system: 'http://loinc.org'}
          schema:
            short: Findings
            index: 68
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 59776-5, system: 'http://loinc.org'}
                index: 69
              entry:
                index: 70
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    finding:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-observation-result-imaging']
                        array: true
                        index: 71
                      min: 0
                    keyimage:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-imaging-selection-keyimage', 'https://hl7.cz/fhir/img/StructureDefinition/cz-keyImage-documentReference']
                        array: true
                        index: 72
                      min: 0
        comparison:
          match:
            code:
              coding:
              - {code: 18834-2, system: 'http://loinc.org'}
          schema:
            short: Comparison
            index: 64
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18834-2, system: 'http://loinc.org'}
                index: 65
              entry:
                index: 66
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    comparedstudy:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-imaging-selection-imaging', 'https://hl7.cz/fhir/img/StructureDefinition/cz-study-imaging']
                        array: true
                        index: 67
                      min: 0
        report:
          match:
            code:
              coding:
              - {code: LP173421-1, system: 'http://loinc.org'}
          schema:
            short: Report - all content in one section
            index: 85
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: LP173421-1, system: 'http://loinc.org'}
                index: 86
        impression:
          match:
            code:
              coding:
              - {code: 19005-8, system: 'http://loinc.org'}
          schema:
            short: Impressions
            index: 73
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 19005-8, system: 'http://loinc.org'}
                index: 74
              entry:
                index: 75
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: profile}
                  min: null
                  slices:
                    finding:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-observation-result-imaging']
                        array: true
                        index: 76
                      min: 0
                    impression:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-conditionImage']
                        array: true
                        index: 77
                      min: 0
                    keyimage:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-imaging-selection-keyimage', 'https://hl7.cz/fhir/img/StructureDefinition/cz-keyImage-documentReference']
                        array: true
                        index: 78
                      min: 0
        clinicalQuestion:
          match:
            code:
              coding:
              - {code: 18785-6, system: 'http://loinc.org'}
          schema:
            short: Clinical question
            array: true
            index: 48
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18785-6, system: 'http://loinc.org'}
                index: 49
              entry:
                type: Reference
                refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-conditionImage']
                index: 50
        history:
          match:
            code:
              coding:
              - {code: 11329-0, system: 'http://loinc.org'}
          schema:
            short: History
            _required: true
            index: 51
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 11329-0, system: 'http://loinc.org'}
                index: 52
              entry:
                index: 53
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this.resolve(), type: profile}
                  min: null
                  slices:
                    vitals:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/Observation']
                        array: true
                        index: 54
                      min: 0
                    problemlist:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/Condition']
                        array: true
                        index: 55
                      min: 0
                    implants:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/Device']
                        array: true
                        index: 56
                      min: 0
                    medication:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['http://hl7.org/fhir/StructureDefinition/MedicationAdministration', 'http://hl7.org/fhir/StructureDefinition/MedicationRequest']
                        array: true
                        index: 57
                      min: 0
        procedure:
          match:
            code:
              coding:
              - {code: 55111-9, system: 'http://loinc.org'}
          schema:
            short: Procedure
            _required: true
            index: 58
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 55111-9, system: 'http://loinc.org'}
                index: 59
              entry:
                index: 60
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: resolve(), type: profile}
                  min: null
                  slices:
                    procedure:
                      match: {}
                      schema:
                        short: The imaging Procedure(s)
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-procedure-imaging']
                        type: Reference
                        array: true
                        index: 61
                      min: 0
                    adverse-event:
                      match: {}
                      schema:
                        short: AdverseEvent(s)
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-adverseEvent']
                        type: Reference
                        array: true
                        index: 62
                      min: 0
                    radiation-dose:
                      match: {}
                      schema:
                        short: Radiation-dose information
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-radiationDoseObservation']
                        type: Reference
                        array: true
                        index: 63
                      min: 0
        recommendation:
          match:
            code:
              coding:
              - {code: 18783-1, system: 'http://loinc.org'}
          schema:
            short: Recommendations
            index: 79
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18783-1, system: 'http://loinc.org'}
                index: 80
              entry:
                index: 81
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: profile}
                  min: null
                  slices:
                    suggestion:
                      match: {}
                      schema:
                        type: Reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-carePlanImage', 'https://hl7.cz/fhir/img/StructureDefinition/cz-imagingOrderInformation']
                        array: true
                        index: 82
                      min: 0
        communication:
          match:
            code:
              coding:
              - {code: 73568-8, system: 'http://loinc.org'}
          schema:
            short: Communications
            index: 83
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 73568-8, system: 'http://loinc.org'}
                index: 84
        order:
          match:
            code:
              coding:
              - {code: 55115-0, system: 'http://loinc.org'}
          schema:
            short: Order
            _required: true
            index: 44
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 55115-0, system: 'http://loinc.org'}
                index: 45
              entry:
                index: 46
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: profile}
                  min: null
                  slices:
                    order:
                      match: {}
                      schema:
                        short: Order reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-imagingOrderInformation']
                        type: Reference
                        array: true
                        index: 47
                      min: 0
        imagingstudy:
          match:
            code:
              coding:
              - {code: 18726-0, system: 'http://loinc.org'}
          schema:
            short: Imaging Study
            _required: true
            index: 40
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 18726-0, system: 'http://loinc.org'}
                index: 41
              entry:
                index: 42
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: profile}
                  min: 1
                  slices:
                    imagingstudy:
                      match: {}
                      schema:
                        min: 1
                        short: Imaging Study Reference
                        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-study-imaging']
                        type: Reference
                        array: true
                        _required: true
                        index: 43
                      min: 1
            required: [entry]
  attester:
    mustSupport: true
    index: 20
    slicing:
      slices:
        legalAuthenticator:
          match: {}
          schema:
            mustSupport: true
            index: 21
            elements:
              party:
                type: Reference
                refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core']
                index: 22
        validator:
          match: {}
          schema:
            mustSupport: true
            index: 23
            elements:
              party:
                type: Reference
                refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core']
                index: 24
  type:
    short: Type of Imaging Diagnostic Report
    binding: {strength: preferred, valueSet: 'https://ncez.mzcr.cz/terminology/ValueSet/imaging-document-types'}
    index: 9
  author:
    index: 16
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this.resolve(), type: profile}
      min: null
      slices:
        author:
          match: {}
          schema:
            type: Reference
            refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-practitionerrole-core']
            array: true
            index: 17
          min: 0
        authoringDevice:
          match: {}
          schema:
            type: Reference
            refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-device-observer']
            array: true
            index: 18
          min: 0
        organization:
          match: {}
          schema:
            type: Reference
            refers: ['https://hl7.cz/fhir/core/StructureDefinition/cz-organization-core']
            array: true
            index: 19
          min: 0
  extension:
    index: 0
    slicing:
      slices:
        diagnosticReport:
          match: {}
          schema:
            index: 0
            elements:
              value:
                choices: [valueReference]
                index: 2
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-diagnostic-report']
                index: 3
        basedOn:
          match: {}
          schema:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/event-basedOn|5.3.0
            index: 4
            elements:
              value:
                choices: [valueReference]
                index: 6
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-carePlanImage', 'https://hl7.cz/fhir/img/StructureDefinition/cz-imagingOrderInformation']
                index: 7
  event:
    elements:
      code:
        array: true
        min: 2
        index: 32
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: coding, type: value}
          min: 2
          slices:
            imagingStudy:
              match: {coding: null}
              schema:
                array: true
                min: 1
                _required: true
                index: 33
                elements:
                  coding:
                    short: Modality
                    binding: {strength: preferred, valueSet: 'http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html'}
                    index: 34
            procedure:
              match: {coding: null}
              schema:
                array: true
                min: 1
                _required: true
                index: 35
                elements:
                  coding:
                    short: Study Type
                    binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/procedure-reason'}
                    index: 36
  custodian: {short: Organization that manages the Imaging Report, index: 25}
  identifier: {index: 8}
  relatesTo:
    index: 26
    slicing:
      rules: open
      discriminator:
      - {path: code, type: value}
      min: null
      slices:
        replaced_document:
          match: {code: replaces}
          schema:
            short: Prior report this one replaces or retracts
            index: 27
            elements:
              code:
                pattern: {type: Code, value: replaces}
                index: 28
              target:
                choices: [targetIdentifier]
                index: 30
              targetIdentifier: {type: Identifier, choiceOf: target, index: 31}
package_version: 1.0.0
extensions:
  diagnosticReport:
    url: null
    index: 0
    elements:
      value:
        choices: [valueReference]
        index: 2
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-diagnostic-report']
        index: 3
  basedOn:
    url: http://hl7.org/fhir/StructureDefinition/event-basedOn|5.3.0
    type: Extension
    index: 4
    elements:
      value:
        choices: [valueReference]
        index: 6
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['https://hl7.cz/fhir/img/StructureDefinition/cz-carePlanImage', 'https://hl7.cz/fhir/img/StructureDefinition/cz-imagingOrderInformation']
        index: 7
class: profile
kind: resource
url: https://hl7.cz/fhir/img/StructureDefinition/cz-composition-imaging
base: https://hl7.cz/fhir/core/StructureDefinition/composition-cz-core
version: 1.0.0