<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="DiagnosticReport-eu-lab" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="2" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <url value="http://hl7.eu/fhir/laboratory/StructureDefinition/DiagnosticReport-eu-lab" />
  <version value="2.0.0-nhs-fix" />
  <name value="DiagnosticReportLabEu" />
  <title value="DiagnosticReport: Laboratory Report" />
  <status value="active" />
  <date value="2026-07-02T16:28:07+02:00" />
  <publisher value="HL7 Europe" />
  <contact>
    <name value="HL7 Europe" />
    <telecom>
      <system value="url" />
      <value value="http://hl7.eu" />
    </telecom>
  </contact>
  <description value="DiagnosticReport used to represent an entry of a Laboratory Report, including its context, for the scope of the HL7 Europe project." />
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
      <code value="150" />
      <display value="Europe" />
    </coding>
  </jurisdiction>
  <copyright value="Copyright HL7 Europe. Licensed under creative commons public domain (CC0 1.0)." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="http://hl7.eu/fhir/base/StructureDefinition/diagnosticReport-eu-core|2.0.0-nhs-fix" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport">
      <path value="DiagnosticReport" />
      <short value="Laboratory Report DiagnosticReport" />
      <definition value="Laboratory Report DiagnosticReport" />
    </element>
    <element id="DiagnosticReport.extension">
      <path value="DiagnosticReport.extension" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.extension:DiagnosticReportCompositionR5">
      <path value="DiagnosticReport.extension" />
      <sliceName value="DiagnosticReportCompositionR5" />
      <short value="Associated Lab Report Composition" />
      <definition value="This extension implements the R5 composition element. It allow to link this DiagnosticReport with the Composition documenting this Laboratory Report." />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.extension:DiagnosticReportCompositionR5.value[x]">
      <path value="DiagnosticReport.extension.value[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/laboratory/StructureDefinition/Composition-eu-lab" />
      </type>
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <comment value="Composition.identifier SHALL be equal to one of the DiagnosticReport.identifier, if at least one exists" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/laboratory/StructureDefinition/ServiceRequest-eu-lab" />
      </type>
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Report Category" />
      <definition value="A code that classifies this laboratory report. Two basic categories has been selected in this guide: laboratory specialty and Study type. Laboratory specialty is characteristic of the laboratory that produced the test result while Study type is an arbitrary classificion of the test type." />
      <comment value="DiagnosticReport.category and Composition.category shall be aligned" />
    </element>
    <element id="DiagnosticReport.category:studyType">
      <path value="DiagnosticReport.category" />
      <sliceName value="studyType" />
      <short value="The way of grouping of the test results into clinically meaningful domains (e.g. hematology study, microbiology study, etc.)" />
      <definition value="Laboratory services, i.e., results of tests performed, could be characterized using typology of services, commonly called study types. Study type could be seen as an attribute or grouping mechanism that assigns a common clinical sense to certain types of laboratory test results., e.g., Hemoglobin, Platelet count, etc. belongs to 'Hematology study'." />
      <comment value="In comparison to the laboratory specialty which is an attribute of laboratory, study type is a categorization of laboratory service. It needs to be mentioned that classification of test to study types in not standardized." />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab" />
      </binding>
    </element>
    <element id="DiagnosticReport.category:specialty">
      <path value="DiagnosticReport.category" />
      <sliceName value="specialty" />
      <short value="The clinical domain of the laboratory performing the observation (e.g. microbiology, toxicology, chemistry)" />
      <definition value="Laboratory specialty is an attribute of any laboratory setting representing professional qualification of the laboratory to execute certain kind of laboratory tests." />
      <comment value="Specialty could be used as parameter for searching/querying of laboratory test results." />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.eu/fhir/laboratory/ValueSet/lab-specialty-eu-lab" />
      </binding>
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <short value="Type of (Laboratory) Report" />
      <definition value="Specifies that it refers to a Laboratory Report" />
      <comment value="At least one DiagnosticReport.code.coding and Composition.type.coding SHALL be equal" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://hl7.eu/fhir/laboratory/ValueSet/lab-reportType-eu-lab" />
      </binding>
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <comment value="DiagnosticReport and Composition SHALL have the same subject" />
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <short value="The healthcare event which this Laboratory Report is about (when test ordered)." />
      <comment value="This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).&#xA;&#xA; DiagnosticReport and Composition SHALL have the same encounter." />
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/laboratory/StructureDefinition/Specimen-eu-lab" />
      </type>
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/laboratory/StructureDefinition/Observation-resultslab-eu-lab" />
      </type>
    </element>
    <element id="DiagnosticReport.imagingStudy">
      <path value="DiagnosticReport.imagingStudy" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.link.extension:link">
      <path value="DiagnosticReport.media.link.extension" />
      <sliceName value="link" />
      <short value="DocumentReference containing additional information/attachments" />
      <definition value="Reference to a DocumentReference containing additional information/attachments associated with this report." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/alternate-reference" />
      </type>
    </element>
    <element id="DiagnosticReport.media.link.extension:link.value[x]">
      <path value="DiagnosticReport.media.link.extension.value[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
      </type>
    </element>
    <element id="DiagnosticReport.media.link.reference">
      <path value="DiagnosticReport.media.link.reference" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.link.type">
      <path value="DiagnosticReport.media.link.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.link.identifier">
      <path value="DiagnosticReport.media.link.identifier" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.link.display">
      <path value="DiagnosticReport.media.link.display" />
      <short value="Text stating use of cross-version extension 'link'" />
      <definition value="Text stating that instead of a reference to a Media resource, a DocumentReference resource is linked through the cross-version extension 'link'." />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>