<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NHSHC-DiagnosticReport" />
  <url value="https://fhir.nhs.uk/StructureDefinition/NHSHC-DiagnosticReport" />
  <version value="0.1.0" />
  <name value="NHSHCDiagnosticReport" />
  <title value="NHSHC DiagnosticReport" />
  <status value="draft" />
  <date value="2026-06-23" />
  <publisher value="NHS England" />
  <description value="Derived profile from UKCore-DiagnosticReport for NHS Health Check Online. Enforces status=final and requires conclusion. Summarises follow-up recommendations with urgency levels." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-DiagnosticReport" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <min value="1" />
      <fixedCode value="final" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <min value="1" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://hl7.org/fhir/ValueSet/report-codes" />
      </binding>
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient" />
      </type>
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSHC-Encounter" />
      </type>
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization" />
        <targetProfile value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner" />
      </type>
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.nhs.uk/ValueSet/NHSHC-FollowUpType" />
      </binding>
    </element>
  </differential>
</StructureDefinition>