{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1",
  "version": "1.3.0",
  "name": "CareConnect-GPC-Specimen-1",
  "status": "draft",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "publisher": "HL7 UK",
  "contact": [
    {
      "name": "INTEROPen",
      "telecom": [
        {
          "system": "email",
          "value": "admin@interopen.org",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Specimen",
  "copyright": "Copyright © 2020 HL7 UK\r \rLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r \rhttp://www.apache.org/licenses/LICENSE-2.0\r \rUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" 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.\r \rHL7® FHIR® standard Copyright © 2011+ HL7\r \rThe HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r \rhttps://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Specimen",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Specimen",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Specimen.meta.profile",
        "path": "Specimen.meta.profile",
        "min": 1
      },
      {
        "id": "Specimen.identifier",
        "path": "Specimen.identifier",
        "min": 1
      },
      {
        "id": "Specimen.identifier.system",
        "path": "Specimen.identifier.system",
        "min": 1
      },
      {
        "id": "Specimen.identifier.value",
        "path": "Specimen.identifier.value",
        "min": 1
      },
      {
        "id": "Specimen.accessionIdentifier",
        "path": "Specimen.accessionIdentifier",
        "short": "A business level identifier for the specimen supplied by the performing organisation. eg. lab performing the test.",
        "mustSupport": true
      },
      {
        "id": "Specimen.accessionIdentifier.assigner",
        "path": "Specimen.accessionIdentifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ]
      },
      {
        "id": "Specimen.status",
        "path": "Specimen.status",
        "mustSupport": true
      },
      {
        "id": "Specimen.type",
        "path": "Specimen.type",
        "mustSupport": true
      },
      {
        "id": "Specimen.type.coding",
        "path": "Specimen.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Specimen.type.coding:snomedCT",
        "path": "Specimen.type.coding",
        "sliceName": "snomedCT",
        "binding": {
          "strength": "extensible",
          "description": "A code from the SNOMED Clinical Terminology UK",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-SpecimenType-1"
          }
        }
      },
      {
        "id": "Specimen.type.coding:snomedCT.extension",
        "path": "Specimen.type.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID",
        "path": "Specimen.type.coding.extension",
        "sliceName": "snomedCTDescriptionID",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID.url",
        "path": "Specimen.type.coding.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
      },
      {
        "id": "Specimen.type.coding:snomedCT.system",
        "path": "Specimen.type.coding.system",
        "min": 1
      },
      {
        "id": "Specimen.type.coding:snomedCT.code",
        "path": "Specimen.type.coding.code",
        "min": 1
      },
      {
        "id": "Specimen.type.coding:snomedCT.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Specimen.type.coding.display",
        "min": 1
      },
      {
        "id": "Specimen.subject",
        "path": "Specimen.subject",
        "short": "A reference to the Patient who the observation is about.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Substance"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          }
        ]
      },
      {
        "id": "Specimen.receivedTime",
        "path": "Specimen.receivedTime",
        "mustSupport": true
      },
      {
        "id": "Specimen.parent",
        "path": "Specimen.parent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Specimen-1"
          }
        ]
      },
      {
        "id": "Specimen.request",
        "path": "Specimen.request",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"
          }
        ]
      },
      {
        "id": "Specimen.collection",
        "path": "Specimen.collection",
        "short": "Details of when/how the specimen was collected.",
        "mustSupport": true
      },
      {
        "id": "Specimen.collection.extension",
        "path": "Specimen.collection.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Specimen.collection.extension:fastingStatus",
        "path": "Specimen.collection.extension",
        "sliceName": "fastingStatus",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-FastingStatus-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Specimen.collection.extension:fastingStatus.url",
        "path": "Specimen.collection.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-FastingStatus-1"
      },
      {
        "id": "Specimen.collection.collector",
        "path": "Specimen.collection.collector",
        "short": "Reference to the resource for the Practitioner that collected the specimen.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Specimen.collection.collected[x]",
        "path": "Specimen.collection.collected[x]",
        "short": "The date and time when the specimen was collected.",
        "mustSupport": true
      },
      {
        "id": "Specimen.collection.quantity",
        "path": "Specimen.collection.quantity",
        "mustSupport": true
      },
      {
        "id": "Specimen.collection.bodySite",
        "path": "Specimen.collection.bodySite",
        "mustSupport": true
      },
      {
        "id": "Specimen.collection.bodySite.coding",
        "path": "Specimen.collection.bodySite.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Specimen.collection.bodySite.coding:snomedCT",
        "path": "Specimen.collection.bodySite.coding",
        "sliceName": "snomedCT",
        "binding": {
          "strength": "extensible",
          "description": "A code from the SNOMED Clinical Terminology UK",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-SpecimenBodySite-1"
          }
        }
      },
      {
        "id": "Specimen.collection.bodySite.coding:snomedCT.extension",
        "path": "Specimen.collection.bodySite.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID",
        "path": "Specimen.collection.bodySite.coding.extension",
        "sliceName": "snomedCTDescriptionID",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID.url",
        "path": "Specimen.collection.bodySite.coding.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
      },
      {
        "id": "Specimen.collection.bodySite.coding:snomedCT.system",
        "path": "Specimen.collection.bodySite.coding.system",
        "min": 1
      },
      {
        "id": "Specimen.collection.bodySite.coding:snomedCT.code",
        "path": "Specimen.collection.bodySite.coding.code",
        "min": 1
      },
      {
        "id": "Specimen.collection.bodySite.coding:snomedCT.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Specimen.collection.bodySite.coding.display",
        "min": 1
      },
      {
        "id": "Specimen.container.identifier.assigner",
        "path": "Specimen.container.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ]
      },
      {
        "id": "Specimen.note",
        "path": "Specimen.note",
        "short": "Notes/comments relating to the specimen.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Specimen.note.author[x]",
        "path": "Specimen.note.author[x]",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          }
        ]
      }
    ]
  }
}