{
  "resourceType": "StructureDefinition",
  "id": "il-core-supply-delivery",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "draft"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0
    }
  ],
  "url": "http://fhir.health.gov.il/StructureDefinition/il-core-supply-delivery",
  "version": "0.21.0",
  "name": "ILCoreSupplyDelivery",
  "title": "ILCore SupplyDelivery Profile",
  "status": "draft",
  "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 SupplyDelivery Resource.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "SupplyDelivery",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/SupplyDelivery",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "SupplyDelivery.identifier",
        "path": "SupplyDelivery.identifier",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-identifier"
            ]
          }
        ]
      },
      {
        "id": "SupplyDelivery.patient",
        "path": "SupplyDelivery.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-patient"
            ]
          }
        ]
      },
      {
        "id": "SupplyDelivery.suppliedItem.item[x]",
        "path": "SupplyDelivery.suppliedItem.item[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "SupplyDelivery.suppliedItem.item[x]:itemReference",
        "path": "SupplyDelivery.suppliedItem.item[x]",
        "sliceName": "itemReference",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-medication",
              "http://fhir.health.gov.il/StructureDefinition/il-core-substance",
              "http://fhir.health.gov.il/StructureDefinition/il-core-device"
            ]
          }
        ]
      },
      {
        "id": "SupplyDelivery.supplier",
        "path": "SupplyDelivery.supplier",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner",
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role",
              "http://fhir.health.gov.il/StructureDefinition/il-core-organization"
            ]
          }
        ]
      },
      {
        "id": "SupplyDelivery.destination",
        "path": "SupplyDelivery.destination",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-location"
            ]
          }
        ]
      },
      {
        "id": "SupplyDelivery.receiver",
        "path": "SupplyDelivery.receiver",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner",
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role"
            ]
          }
        ]
      }
    ]
  }
}