{
  "resourceType": "StructureDefinition",
  "id": "il-core-specimen",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    }
  ],
  "url": "http://fhir.health.gov.il/StructureDefinition/il-core-specimen",
  "version": "0.21.0",
  "name": "ILCoreSpecimen",
  "title": "ILCore Specimen Profile",
  "status": "active",
  "date": "2026-03-23",
  "publisher": "Israel Core Team",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "tal.primak@moh.gov.il"
        }
      ]
    }
  ],
  "description": "Israel Core proposed constraints and extensions on the Specimen Resource",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Specimen",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Specimen",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Specimen",
        "path": "Specimen",
        "short": "ILCore Specimen Profile",
        "definition": "Israel Core proposed constraints and extensions on the Specimen resource profile."
      },
      {
        "id": "Specimen.identifier",
        "path": "Specimen.identifier",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-identifier"
            ]
          }
        ]
      },
      {
        "id": "Specimen.type",
        "path": "Specimen.type",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://fhir.health.gov.il/ValueSet/il-core-specimen-type"
        }
      },
      {
        "id": "Specimen.subject",
        "path": "Specimen.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-patient",
              "http://fhir.health.gov.il/StructureDefinition/il-core-group",
              "http://fhir.health.gov.il/StructureDefinition/il-core-device",
              "http://fhir.health.gov.il/StructureDefinition/il-core-substance",
              "http://fhir.health.gov.il/StructureDefinition/il-core-location"
            ],
            "_targetProfile": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support",
                    "valueBoolean": true
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support",
                    "valueBoolean": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support",
                    "valueBoolean": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support",
                    "valueBoolean": false
                  }
                ]
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support",
                    "valueBoolean": false
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "Specimen.parent",
        "path": "Specimen.parent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-specimen"
            ]
          }
        ]
      },
      {
        "id": "Specimen.request",
        "path": "Specimen.request",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-service-request"
            ]
          }
        ]
      },
      {
        "id": "Specimen.collection.collector",
        "path": "Specimen.collection.collector",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner",
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role"
            ]
          }
        ]
      },
      {
        "id": "Specimen.collection.collector.extension:other-collector",
        "path": "Specimen.collection.collector.extension",
        "sliceName": "other-collector",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/ext-specimen-collector-reference"
            ]
          }
        ]
      },
      {
        "id": "Specimen.collection.bodySite",
        "path": "Specimen.collection.bodySite",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "BodySite"
            }
          ],
          "strength": "extensible",
          "description": "Codes describing anatomical locations. May include laterality.",
          "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
        }
      },
      {
        "id": "Specimen.processing.extension",
        "path": "Specimen.processing.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Specimen.processing.extension:processing-location",
        "path": "Specimen.processing.extension",
        "sliceName": "processing-location",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/ext-processing-location"
            ]
          }
        ]
      },
      {
        "id": "Specimen.processing.extension:processing-practitioner",
        "path": "Specimen.processing.extension",
        "sliceName": "processing-practitioner",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/ext-processing-practitioner"
            ]
          }
        ]
      },
      {
        "id": "Specimen.processing.additive",
        "path": "Specimen.processing.additive",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-substance"
            ]
          }
        ]
      },
      {
        "id": "Specimen.container.type",
        "path": "Specimen.container.type",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SpecimenContainerType"
            }
          ],
          "strength": "extensible",
          "description": "Type of specimen container.",
          "valueSet": "http://hl7.org/fhir/ValueSet/specimen-container-type"
        }
      },
      {
        "id": "Specimen.container.additive[x]",
        "path": "Specimen.container.additive[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Specimen.container.additive[x]:additiveReference",
        "path": "Specimen.container.additive[x]",
        "sliceName": "additiveReference",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-substance"
            ]
          }
        ]
      }
    ]
  }
}