<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-DiagnosticReport-1" />
  <version value="1.3.0" />
  <name value="CareConnect-GPC-DiagnosticReport-1" />
  <status value="draft" />
  <date value="2024-01-22T11:39:06.3872207+00:00" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="INTEROPen" />
    <telecom>
      <system value="email" />
      <value value="admin@interopen.org" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A test report for National Pathology that contains data on the pathology tests performed on patients specimens populated by the performing orgnaisation." />
  <purpose value="CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/" />
  <copyright value="Copyright © 2020 HL7 UK&#xD; &#xD;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&#xD; &#xD;http://www.apache.org/licenses/LICENSE-2.0&#xD; &#xD;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.&#xD; &#xD;HL7® FHIR® standard Copyright © 2011+ HL7&#xD; &#xD;The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at&#xD; &#xD;https://www.hl7.org/fhir/license.html" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport.meta.profile">
      <path value="DiagnosticReport.meta.profile" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.identifier.system">
      <path value="DiagnosticReport.identifier.system" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.identifier.value">
      <path value="DiagnosticReport.identifier.value" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DiagnosticServiceSection" />
        </extension>
        <strength value="preferred" />
      </binding>
    </element>
    <element id="DiagnosticReport.category.coding">
      <path value="DiagnosticReport.category.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.category.coding:snomedCT">
      <path value="DiagnosticReport.category.coding" />
      <sliceName value="snomedCT" />
    </element>
    <element id="DiagnosticReport.category.coding:snomedCT.extension">
      <path value="DiagnosticReport.category.coding.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.category.coding:snomedCT.extension:snomedCTDescriptionID">
      <path value="DiagnosticReport.category.coding.extension" />
      <sliceName value="snomedCTDescriptionID" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
      </type>
    </element>
    <element id="DiagnosticReport.category.coding:snomedCT.extension:snomedCTDescriptionID.url">
      <path value="DiagnosticReport.category.coding.extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
    </element>
    <element id="DiagnosticReport.category.coding:snomedCT.system">
      <path value="DiagnosticReport.category.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="DiagnosticReport.category.coding:snomedCT.code">
      <path value="DiagnosticReport.category.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.category.coding:snomedCT.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="DiagnosticReport.category.coding.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.code.coding">
      <path value="DiagnosticReport.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.code.coding:snomedCT">
      <path value="DiagnosticReport.code.coding" />
      <sliceName value="snomedCT" />
      <binding>
        <strength value="extensible" />
        <description value="A code from the SNOMED Clinical Terminology UK" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ReportCodeSnCT-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="DiagnosticReport.code.coding:snomedCT.extension">
      <path value="DiagnosticReport.code.coding.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.code.coding:snomedCT.extension:snomedCTDescriptionID">
      <path value="DiagnosticReport.code.coding.extension" />
      <sliceName value="snomedCTDescriptionID" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
      </type>
    </element>
    <element id="DiagnosticReport.code.coding:snomedCT.extension:snomedCTDescriptionID.url">
      <path value="DiagnosticReport.code.coding.extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
    </element>
    <element id="DiagnosticReport.code.coding:snomedCT.system">
      <path value="DiagnosticReport.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="DiagnosticReport.code.coding:snomedCT.code">
      <path value="DiagnosticReport.code.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.code.coding:snomedCT.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="DiagnosticReport.code.coding.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Location-1" />
      </type>
    </element>
    <element id="DiagnosticReport.context">
      <path value="DiagnosticReport.context" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1" />
      </type>
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.performer.actor">
      <path value="DiagnosticReport.performer.actor" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1" />
      </type>
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.codedDiagnosis">
      <path value="DiagnosticReport.codedDiagnosis" />
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AdjunctDiagnosis" />
        </extension>
        <strength value="preferred" />
        <description value="A SNOMED Coded finding for the test report." />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-FindingCode-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="DiagnosticReport.codedDiagnosis.coding">
      <path value="DiagnosticReport.codedDiagnosis.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.codedDiagnosis.coding:snomedCT">
      <path value="DiagnosticReport.codedDiagnosis.coding" />
      <sliceName value="snomedCT" />
      <binding>
        <strength value="extensible" />
        <description value="A code from the SNOMED Clinical Terminology UK" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-FindingCode-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="DiagnosticReport.codedDiagnosis.coding:snomedCT.extension">
      <path value="DiagnosticReport.codedDiagnosis.coding.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="DiagnosticReport.codedDiagnosis.coding:snomedCT.extension:snomedCTDescriptionID">
      <path value="DiagnosticReport.codedDiagnosis.coding.extension" />
      <sliceName value="snomedCTDescriptionID" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
      </type>
    </element>
    <element id="DiagnosticReport.codedDiagnosis.coding:snomedCT.extension:snomedCTDescriptionID.url">
      <path value="DiagnosticReport.codedDiagnosis.coding.extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid" />
    </element>
    <element id="DiagnosticReport.codedDiagnosis.coding:snomedCT.system">
      <path value="DiagnosticReport.codedDiagnosis.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="DiagnosticReport.codedDiagnosis.coding:snomedCT.code">
      <path value="DiagnosticReport.codedDiagnosis.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.codedDiagnosis.coding:snomedCT.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="DiagnosticReport.codedDiagnosis.coding.display" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>