<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://www.cancercoreeurope.eu/fhir/StructureDefinition/cce-core-Specimen-Specimen" />
  <name value="Specimen" />
  <status value="draft" />
  <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.type">
      <path value="Specimen.type" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://www.cancercoreeurope.eu/fhir/core/ValueSet/SampleMaterialType" />
      </binding>
    </element>
    <element id="Specimen.type.coding">
      <path value="Specimen.type.coding" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.type.coding.system">
      <path value="Specimen.type.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.type.coding.code">
      <path value="Specimen.type.coding.code" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.subject">
      <path value="Specimen.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.cancercoreeurope.eu/fhir/StructureDefinition/cce-core-Patient-Patient" />
        <targetProfile value="https://www.cancercoreeurope.eu/fhir/StructureDefinition/cce-core-Patient-Pseudonym" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Specimen.parent">
      <path value="Specimen.parent" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection">
      <path value="Specimen.collection" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection.collected[x]">
      <path value="Specimen.collection.collected[x]" />
      <type>
        <code value="dateTime" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Specimen.collection.bodySite">
      <path value="Specimen.collection.bodySite" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="ICD-O topography codes" />
        <valueSet value="http://art-decor.org/fhir/ValueSet/1.3.6.1.4.1.19376.1.3.11.36--20151113191623" />
      </binding>
    </element>
    <element id="Specimen.container.specimenQuantity">
      <path value="Specimen.container.specimenQuantity" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.specimenQuantity.value">
      <path value="Specimen.container.specimenQuantity.value" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.specimenQuantity.unit">
      <path value="Specimen.container.specimenQuantity.unit" />
      <mustSupport value="true" />
    </element>
    <element id="Specimen.container.specimenQuantity.system">
      <path value="Specimen.container.specimenQuantity.system" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>