{
  "resourceType": "StructureDefinition",
  "id": "Extension-UKCore-SampleCategory",
  "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-SampleCategory",
  "version": "1.0.0",
  "name": "ExtensionUKCoreSampleCategory",
  "title": "Extension UK Core Sample Category",
  "status": "active",
  "date": "2023-04-28",
  "publisher": "HL7 UK",
  "contact": [
    {
      "name": "HL7 UK",
      "telecom": [
        {
          "system": "email",
          "value": "ukcore@hl7.org.uk",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "An extension to record the category of genome sequencing sample.",
  "purpose": "This extension is a Genomics use case to categorise the genome sequencing sample type, whether it is a tumour or germline Sample. This is different to Specimen.type which, for genomics, records the tissue of origin.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Specimen"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "An extension to record the category of the sample.",
        "definition": "This extension allows the recording of the category of a sample for use within Genomics, whether it is a tumour or germline sample."
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-SampleCategory"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "A set of codes to record the category of the sample",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Extension.value[x].coding",
        "path": "Extension.value[x].coding",
        "binding": {
          "strength": "preferred",
          "description": "A set of codes to record the category of the sample",
          "valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-SampleCategory"
        }
      }
    ]
  }
}