PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.eu.laboratory@0.1.0-ballot
    http://hl7.eu/fhir/laboratory/StructureDefinition/Composition-eu-lab
description: Clinical document used to represent a Laboratory Report for the scope of the HL7 Europe project.
package_name: hl7.fhir.eu.laboratory
derivation: constraint
name: CompositionLabReportEu
type: Composition
elements:
  category:
    type: CodeableConcept
    short: Report Category
    index: 11
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        studyType:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'}
            array: true
            index: 12
          min: 0
        specialty:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-specialty-eu-lab'}
            array: true
            index: 13
          min: 0
  encounter: {short: The healthcare event which this Laboratory Report is about (when test ordered)., index: 15}
  section:
    index: 26
    elements:
      title: {index: 27}
      code: {type: CodeableConcept, index: 28}
    required: [title, code]
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this.section, type: exists}
      - {path: $this.entry, type: exists}
      min: 1
      slices:
        lab-no-subsections:
          match: {}
          schema:
            short: 'Variant 1: EU Laboratory Report section with entries and no sub-sections'
            array: true
            index: 29
            elements:
              code:
                binding: {strength: preferred, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'}
                index: 30
              text: {short: 'Text summary of the section, for human interpretation.', index: 31}
              entry:
                type: Reference
                refers: ['http://hl7.eu/fhir/laboratory/StructureDefinition/Observation-resultslab-eu-lab']
                index: 32
              section: {index: 33}
            required: [entry]
        lab-subsections:
          match: {}
          schema:
            short: 'Variant 2: EU Laboratory Report section with one to many subsections Laboratory Report Item'
            array: true
            index: 34
            elements:
              code:
                binding: {strength: preferred, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'}
                index: 35
              text: {index: 36}
              entry: {index: 37}
              section:
                type: BackboneElement
                index: 38
                elements:
                  title: {index: 39}
                  code:
                    type: CodeableConcept
                    binding: {strength: preferred, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'}
                    index: 40
                  text: {short: 'Text summary of the section, for human interpretation.', index: 41}
                  entry:
                    type: Reference
                    refers: ['http://hl7.eu/fhir/laboratory/StructureDefinition/Observation-resultslab-eu-lab']
                    index: 42
                  section: {index: 43}
                required: [entry, title, code]
            required: [section]
        annotations:
          match: {}
          schema:
            short: Annotation comment
            array: true
            index: 44
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 48767-8, system: 'http://loinc.org'}
                index: 45
              text: {index: 46}
              entry: {index: 47}
              section: {index: 48}
            required: [text]
  attester:
    short: Attests the report accuracy
    index: 18
    elements:
      mode: {short: The type of attestation, index: 19}
      time: {short: When the report was attested by the party, index: 20}
      party: {short: Who attested the report, index: 21}
  type:
    type: CodeableConcept
    short: Type of (Laboratory) Report
    binding: {strength: preferred, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-reportType-eu-lab'}
    index: 10
  title: {short: Laboratory Report, index: 17}
  author: {short: Who and/or what authored the Laboratory Report, index: 16}
  extension:
    type: Extension
    url: http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition
    index: 1
    slicing:
      slices:
        basedOn-order-or-requisition:
          match: {}
          schema:
            type: Extension
            url: http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition
            index: 1
            elements:
              value:
                choices: []
                index: 3
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    valueReference:
                      match: {}
                      schema:
                        choices: [valueReference]
                        index: 5
                      min: 0
                      max: 1
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.eu/fhir/laboratory/StructureDefinition/ServiceRequest-eu-lab']
                index: 6
                slicing:
                  slices:
                    valueReference:
                      match: {}
                      schema:
                        type: Reference
                        choiceOf: value
                        refers: ['http://hl7.eu/fhir/laboratory/StructureDefinition/ServiceRequest-eu-lab']
                        index: 6
                      min: 0
                      max: 1
        information-recipient:
          match: {}
          schema: {type: Extension, url: 'http://hl7.eu/fhir/StructureDefinition/information-recipient', index: 7}
          min: 0
  event:
    short: The laboratory service(s) being documented
    index: 22
    elements:
      code: {short: Code(s) that apply to the laboratory service(s) being documented, index: 23}
      period: {short: Period of time covered by the documentation, index: 24}
      detail: {short: The laboratory service(s) being documented, index: 25}
  status: {short: Status of the Report, index: 9}
  identifier: {short: Report identifier, index: 8}
  subject:
    type: Reference
    short: Who and/or what this report is about
    refers: ['http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-animal-eu-lab', 'http://hl7.eu/fhir/laboratory/StructureDefinition/Patient-eu-lab', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Location']
    index: 14
  text: {short: Narrative text, index: 0}
package_version: 0.1.0-ballot
extensions:
  basedOn-order-or-requisition:
    url: http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition
    type: Extension
    index: 1
    elements:
      value:
        choices: []
        index: 3
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            valueReference:
              match: {}
              schema:
                choices: [valueReference]
                index: 5
              min: 0
              max: 1
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['http://hl7.eu/fhir/laboratory/StructureDefinition/ServiceRequest-eu-lab']
        index: 6
        slicing:
          slices:
            valueReference:
              match: {}
              schema:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.eu/fhir/laboratory/StructureDefinition/ServiceRequest-eu-lab']
                index: 6
              min: 0
              max: 1
  information-recipient: {url: 'http://hl7.eu/fhir/StructureDefinition/information-recipient', min: 0, type: Extension, index: 7}
class: profile
kind: resource
url: http://hl7.eu/fhir/laboratory/StructureDefinition/Composition-eu-lab
base: http://hl7.org/fhir/StructureDefinition/clinicaldocument
version: 0.1.0-ballot
required: [section, subject]