<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="diagnosticReport-eu-core" />
  <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/base/StructureDefinition/diagnosticReport-eu-core" />
  <version value="2.0.0-nhs-fix" />
  <name value="DiagnosticReportEuCore" />
  <title value="DiagnosticReport (EU core)" />
  <status value="active" />
  <date value="2026-07-02T22:40:12+03:00" />
  <publisher value="HL7 Europe" />
  <contact>
    <name value="HL7 Europe" />
    <telecom>
      <system value="url" />
      <value value="http://hl7.eu" />
    </telecom>
  </contact>
  <description value="This profile introduces essential constraints and extensions for the DiagnosticReport resource that apply across multiple use cases." />
  <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.org/fhir/StructureDefinition/DiagnosticReport" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport">
      <path value="DiagnosticReport" />
      <short value="Diagnostic Report EU core" />
      <definition value="Diagnostic Report EU core" />
    </element>
    <element id="DiagnosticReport.language">
      <path value="DiagnosticReport.language" />
      <short value="Language of the diagnostic report content" />
    </element>
    <element id="DiagnosticReport.extension">
      <path value="DiagnosticReport.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.extension:DiagnosticReportCompositionR5">
      <path value="DiagnosticReport.extension" />
      <sliceName value="DiagnosticReportCompositionR5" />
      <short value="Associated Composition" />
      <definition value="This extension implements the R5 composition element. It allow to link this DiagnosticReport with the Composition documenting this Diagnostic Report." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition" />
      </type>
    </element>
    <element id="DiagnosticReport.extension:DiagnosticReportCompositionR5.extension">
      <path value="DiagnosticReport.extension.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.extension:DiagnosticReportCompositionR5.value[x]">
      <path value="DiagnosticReport.extension.value[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/composition-eu-core" />
      </type>
    </element>
    <element id="DiagnosticReport.extension:note">
      <path value="DiagnosticReport.extension" />
      <sliceName value="note" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.note" />
      </type>
    </element>
    <element id="DiagnosticReport.extension:note.extension">
      <path value="DiagnosticReport.extension.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.extension:note.value[x].extension:annotation-type">
      <path value="DiagnosticReport.extension.value[x].extension" />
      <sliceName value="annotation-type" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/annotationType" />
      </type>
    </element>
    <element id="DiagnosticReport.extension:note.value[x].extension:annotation-type.value[x]">
      <path value="DiagnosticReport.extension.value[x].extension.value[x]" />
      <short value="Type of note" />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <comment value="Usually assigned by the Information System of the diagnostic service provider for facilitating the Report search. The order id can be used as one of the Report identifier if only one report is produced for that order." />
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <short value="Status of the Report" />
      <comment value="DiagnosticReport.status and Composition.status shall be aligned" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <short value="Type of Diagnostic Report" />
      <definition value="Defines the document type, it is recommended to take this from the suggested LOINC set." />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <short value="Who and/or what this report is about" />
      <definition value="Who or what this report is about. The report can be about a human patient, a living subject, a device (e.g. a machine), a location or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure)." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <short value="The healthcare event which this Diagnostic Report is about (when test ordered)." />
      <definition value="The healthcare event (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about." />
      <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)." />
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="Clinically relevant time/time-period for report." />
    </element>
    <element id="DiagnosticReport.effective[x]:effectivePeriod">
      <path value="DiagnosticReport.effective[x]" />
      <sliceName value="effectivePeriod" />
      <short value="Effective period of the report" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <short value="Date and time this report was issued" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resolve()" />
        </discriminator>
        <description value="Organization that delivered the report" />
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="Responsible Diagnostic Service." />
      <comment value="If a DiagnosticReport.resultsInterpreter exists this is expected to be a Composition.author; otherwise a DiagnosticReport.performer should be an author." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
      </type>
    </element>
    <element id="DiagnosticReport.performer:organization">
      <path value="DiagnosticReport.performer" />
      <sliceName value="organization" />
      <short value="The organization producer of this report" />
      <definition value="The organization responsible for producing this report. In case practitioners produce them in their private practices, they will be accounted as an organization for this purpose." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core" />
      </type>
    </element>
    <element id="DiagnosticReport.resultsInterpreter">
      <path value="DiagnosticReport.resultsInterpreter" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resolve()" />
        </discriminator>
        <description value="Primary interpreter of results" />
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <comment value="If a DiagnosticReport.resultsInterpreter exists this is expected to be a Composition.author; otherwise a DiagnosticReport.performer should be an author." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
      </type>
    </element>
    <element id="DiagnosticReport.resultsInterpreter:author">
      <path value="DiagnosticReport.resultsInterpreter" />
      <sliceName value="author" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core" />
      </type>
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <short value="Specimens this report is based on." />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <short value="results" />
    </element>
    <element id="DiagnosticReport.imagingStudy">
      <path value="DiagnosticReport.imagingStudy" />
      <short value="Study subject to this report" />
    </element>
    <element id="DiagnosticReport.media">
      <path value="DiagnosticReport.media" />
      <short value="Additional data (like images, diagrams or documents) associated with this report" />
      <definition value="A list of additional data, other then presented form of the report, associated with this report. This data is generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)." />
      <requirements value="Some diagnostic reports may include additional data such as images, diagrams or documents that are relevant to the report. This additional information can provide further context and support for the findings presented in the report." />
      <alias value="DICOM; Slides; Scans; Pictures; Documents; Diagrams" />
    </element>
    <element id="DiagnosticReport.media.comment">
      <path value="DiagnosticReport.media.comment" />
      <short value="Comment about the image or data (e.g. explanation)" />
      <definition value="Allows for a comment about the image or data, such as an explanation of its significance or context within the diagnostic report." />
      <requirements value="The provider of the report should make a comment about each image or data included in the report. This comment can provide valuable context and help the reader understand the significance of the image or data in relation to the overall findings of the report." />
    </element>
    <element id="DiagnosticReport.media.link">
      <path value="DiagnosticReport.media.link" />
      <short value="Reference to the image or data" />
      <definition value="A reference to the image or data associated with this report." />
    </element>
    <element id="DiagnosticReport.presentedForm">
      <path value="DiagnosticReport.presentedForm" />
      <short value="Entire report as issued (pdf recommended)" />
    </element>
  </differential>
</StructureDefinition>