<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-Specimen" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Specimen" />
  <version value="4.0.0" />
  <name value="UKCoreSpecimen" />
  <title value="UK Core Specimen" />
  <status value="active" />
  <date value="2026-02-25" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the UK constraints and extensions on the International FHIR resource [Specimen](https://hl7.org/fhir/R4/Specimen.html)." />
  <purpose value="This profile allows the exchange of information about a sample to be used for analysis." />
  <copyright value="Copyright © 2021+ HL7 UK 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="Specimen" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Specimen" />
  <derivation value="constraint" />
  <differential>
    <element id="Specimen.extension:sampleCategory">
      <path value="Specimen.extension" />
      <sliceName value="sampleCategory" />
      <short value="An extension to record the category of a sample." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-SampleCategory" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Specimen.status">
      <path value="Specimen.status" />
      <short value="The availability of the specimen sample." />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.type">
      <path value="Specimen.type" />
      <short value="The kind of material that forms the specimen." />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <description value="A code from the SNOMED CT UK Clinical Terminology coding system" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-SpecimenType" />
      </binding>
    </element>
    <element id="Specimen.subject">
      <path value="Specimen.subject" />
      <short value="Where the specimen came from." />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.receivedTime">
      <path value="Specimen.receivedTime" />
      <short value="The time when specimen was received for processing." />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection.extension:specialHandling">
      <path value="Specimen.collection.extension" />
      <sliceName value="specialHandling" />
      <short value="This SHOULD be included if there is a high contamination risk reason for a sample / biopsy." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/specimen-specialHandling" />
      </type>
    </element>
    <element id="Specimen.collection.bodySite">
      <path value="Specimen.collection.bodySite" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-SpecimenBodySite" />
      </binding>
    </element>
    <element id="Specimen.container.type">
      <path value="Specimen.container.type" />
      <binding>
        <strength value="preferred" />
      </binding>
    </element>
    <element id="Specimen.condition">
      <path value="Specimen.condition" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-SampleState" />
      </binding>
    </element>
  </differential>
</StructureDefinition>