<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NHSEngland-DiagnosticReport-GenomicReport" />
  <url value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-DiagnosticReport-GenomicReport" />
  <version value="0.3.0" />
  <name value="NHSEngland_DiagnosticReport_GenomicReport" />
  <title value="NHSEngland DiagnosticReport GenomicReport" />
  <status value="active" />
  <date value="2026-04-16" />
  <publisher value="NHS England" />
  <contact>
    <name value="NHS England" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the Genomics constraints and extensions on the Genomics Reporting FHIR resource [Genomic Report DiagnosticReport](http://hl7.org/fhir/uv/genomics-reporting/StructureDefinition/genomic-report)." />
  <purpose value="DiagnosticReports containing the results of genomic testing are expected to be attached/provided as PDF documents during the alpha phase of the GMS development programme.&#xD;&#xA;&#xD;&#xA;It is expected structured DiagnosticReports will mimic the structure proposed within the HL7 International Genomic Reporting IG.&#xD;&#xA;&#xD;&#xA;Additionally, to support sharing across borders, lab reports MAY additionally be aligned to the HL7 EU Lab Implementation guide. Details of elements of interest for alignment with the EU DiagnosticReport profile are provided below.&#xD;&#xA;&#xD;&#xA;Genomic DiagnosticReports which have been updated post submission SHALL be accompanied by Provenance resources, referencing the DiagnosticReport which detail when the resource was changed, who made the change and why.&#xD;&#xA;&#xD;&#xA;Whilst unstructured Diagnostic Reports can also be represented by DocumentReference resources, the DiagnosticReport resource is preferred for any documents constituting actual reports, as the resource allows capture of metadata not present in DocumentReference, such as the resultsInterpreter, specimen or conclusion, which would help in searching or for analytics. Use of DocumentReference resources is limited to other data files or documents.&#xD;&#xA;&#xD;&#xA;Where binary data is uploaded to the central server, as in the case of unstructured reports, information cannot be redacted by the central service if a patient is marked as sensitive. It is the responsibility of source systems to redact the necessary information from binary files for sensitive patients before sending this data to the central broker, this includes information such as address and GP details in line with PDS." />
  <copyright value="Copyright © 2026+ NHS England Licensed under the Apache License, Version 2.0 (the \\\&quot;License\\\&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \\\&quot;AS IS\\\&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/uv/genomics-reporting/StructureDefinition/genomic-report" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport.extension:recommended-action">
      <path value="DiagnosticReport.extension" />
      <sliceName value="recommended-action" />
      <definition value="TBC. Only relevant for structured genomic reports (included in the Genomic Report Profile in the Genomics Report IG). Reference to Task resource indicating recommended action to take in response to the report's result/conclusion." />
    </element>
    <element id="DiagnosticReport.extension:supporting-info">
      <path value="DiagnosticReport.extension" />
      <sliceName value="supporting-info" />
      <definition value="TBC. Only relevant for structured genomic reports (included in the Genomic Report Profile in the Genomics Report IG). Reference to the genomic data files analysed as part of the test order, forming the report. Reference to DocumentReference resource which links to the binary data file." />
    </element>
    <element id="DiagnosticReport.extension:genomic-study">
      <path value="DiagnosticReport.extension" />
      <sliceName value="genomic-study" />
      <definition value="TBC. Only relevant for structured genomic reports (included in the Genomic Report Profile in the Genomics Report IG). Reference to Procedure resources indicating the analyses performed as part the genomic test order." />
    </element>
    <element id="DiagnosticReport.extension:workflow-relatedArtifact">
      <path value="DiagnosticReport.extension" />
      <sliceName value="workflow-relatedArtifact" />
      <definition value="TBC. Only relevant for structured genomic reports (included in Genomic Report Profile in the Genomics Report IG). A reference to the guidelines or other knowledge artifacts which were used to guide interpretation or recommended actions included within this DiagnosticReport.&#xD;&#xA;If entries constitute published papers, they SHOULD be referenced using a known citation style, e.g. Vancouver/Harvard. Alternatively for online texts, these MAY be referenced via URL only.&#xD;&#xA;&#xD;&#xA;A fixed value of 'citation' is expected for the type element, though this recommendation is pending further use cases." />
    </element>
    <element id="DiagnosticReport.extension:workflow-relatedArtifact.value[x].type">
      <path value="DiagnosticReport.extension.value[x].type" />
      <fixedCode value="citation" />
    </element>
    <element id="DiagnosticReport.extension:diagnosticReportCompositionR5">
      <path value="DiagnosticReport.extension" />
      <sliceName value="diagnosticReportCompositionR5" />
      <definition value="TBC. Only relevant for EU Lab aligned reports (included in HL7 EU Laboratory Report: DiagnosticReport Profile). A reference to the Composition which wraps this report for data sharing." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="DiagnosticReport.identifier:identifierGMSReport">
      <path value="DiagnosticReport.identifier" />
      <sliceName value="identifierGMSReport" />
      <max value="1" />
    </element>
    <element id="DiagnosticReport.identifier:identifierGMSReport.use">
      <path value="DiagnosticReport.identifier.use" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier:identifierGMSReport.type">
      <path value="DiagnosticReport.identifier.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier:identifierGMSReport.system">
      <path value="DiagnosticReport.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.nhs.uk/Id/GMSReport" />
    </element>
    <element id="DiagnosticReport.identifier:identifierGMSReport.value">
      <path value="DiagnosticReport.identifier.value" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.identifier:identifierGMSReport.period">
      <path value="DiagnosticReport.identifier.period" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier:identifierGMSReport.assigner">
      <path value="DiagnosticReport.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier:localIdentifier">
      <path value="DiagnosticReport.identifier" />
      <sliceName value="localIdentifier" />
    </element>
    <element id="DiagnosticReport.identifier:localIdentifier.system">
      <path value="DiagnosticReport.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.nhs.uk/local-identifier/diagnosticreport" />
    </element>
    <element id="DiagnosticReport.identifier:localIdentifier.value">
      <path value="DiagnosticReport.identifier.value" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.identifier:localIdentifier.assigner">
      <path value="DiagnosticReport.identifier.assigner" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.identifier:localIdentifier.assigner.reference">
      <path value="DiagnosticReport.identifier.assigner.reference" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier:localIdentifier.assigner.identifier">
      <path value="DiagnosticReport.identifier.assigner.identifier" />
      <min value="1" />
      <fixedIdentifier>
        <system value="https://fhir.nhs.uk/Id/ods-organization-code" />
      </fixedIdentifier>
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <definition value="SHOULD reference the originating ServiceRequest if this is an instance of a genomic diagnostic report resulting from a GMS test order." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-ServiceRequest-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <definition value="SHALL use base HL7 codes for DiagnosticReport.status. A DiagnosticReport SHOULD only be marked as final if the report is complete and verified by an authorised person." />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <slicing>
        <rules value="open" />
      </slicing>
      <definition value="Potentially multiple categories to specify the specialty the report is relevant for. Different codings are expected by the Genomic Report and EU Lab profiles." />
    </element>
    <element id="DiagnosticReport.category:GeneticsSnomedCT">
      <path value="DiagnosticReport.category" />
      <sliceName value="GeneticsSnomedCT" />
    </element>
    <element id="DiagnosticReport.category:GeneticsSnomedCT.coding">
      <path value="DiagnosticReport.category.coding" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
        <code value="1236877003" />
        <display value="Genetic pathology" />
      </patternCoding>
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <definition value="SHOULD use a record artifact concept from SNOMED CT where an appropriate code exists, else text is preferred to indicate the document type." />
    </element>
    <element id="DiagnosticReport.code.coding">
      <path value="DiagnosticReport.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.code.coding:codingSnomedCT">
      <path value="DiagnosticReport.code.coding" />
      <sliceName value="codingSnomedCT" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-ReportCode" />
      </binding>
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <definition value="SHALL be present. Reference to the associated Patient. This MAY be through a resource reference if the ID on the central service is known (or provided within the transaction bundle) or through NHS number where this is known and has been traced through PDS" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Patient-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <definition value="SHOULD reference the organization responsible for the testing, preferably by ODS code." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.performer.reference">
      <path value="DiagnosticReport.performer.reference" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.performer.identifier">
      <path value="DiagnosticReport.performer.identifier" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer.identifier.system">
      <path value="DiagnosticReport.performer.identifier.system" />
      <fixedUri value="https://fhir.nhs.uk/Id/ods-organisation-code" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter">
      <path value="DiagnosticReport.resultsInterpreter" />
      <definition value="SHOULD reference the person responsible for interpreting the raw results, preferably by a recognised NHS identifier, such as SDS code." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-PractitionerRole-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <definition value="SHOULD reference the specimen used during testing to generate the report, if the document is a Genomic report." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Specimen-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <definition value="Raw results included within the report, to aid interpretation. These SHOULD take the form of Observation references, if providing a structured report." />
    </element>
    <element id="DiagnosticReport.imagingStudy">
      <path value="DiagnosticReport.imagingStudy" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media">
      <path value="DiagnosticReport.media" />
      <definition value="TBC. Only relevant for structured genomic reports. Uses the extension:alternate-reference extension to reference DocumentReference resources pointing to the Genomic Data Files used as the basis for the report. Usage of this field over extension:supporting-info is pending further investigation." />
    </element>
    <element id="DiagnosticReport.media.link.extension:alternateReference">
      <path value="DiagnosticReport.media.link.extension" />
      <sliceName value="alternateReference" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/alternate-reference" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="DiagnosticReport.media.link.extension:alternateReference.value[x]">
      <path value="DiagnosticReport.media.link.extension.value[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-DocumentReference-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <definition value="If possible, unstructured reports wrapped within DiagnosticReports, SHOULD contain a conclusionCode element indicating the coded finding from the report, to aid analytics." />
    </element>
    <element id="DiagnosticReport.presentedForm">
      <path value="DiagnosticReport.presentedForm" />
      <definition value="Genomic reports SHALL include a presentedForm element either referencing the location of the PDF report (located and accessible on either the source/client system or via NRL using appropriate authentication) or include the PDF report as a base64 encoded attachment within the message payload.&#xD;&#xA;Note: this guidance may change in the future as work on Structured Reporting matures" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>