{
  "resourceType": "StructureDefinition",
  "id": "il-core-plan-definition",
  "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-plan-definition",
  "version": "0.21.0",
  "name": "ILCorePlanDefinition",
  "title": "ILCore PlanDefinition 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 PlanDefinition Resource",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PlanDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PlanDefinition",
        "path": "PlanDefinition",
        "short": "ILCore PlanDefinition Profile",
        "definition": "Israel Core proposed constraints and extensions on the PlanDefinition resource profile."
      },
      {
        "id": "PlanDefinition.identifier",
        "path": "PlanDefinition.identifier",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-identifier"
            ]
          }
        ]
      },
      {
        "id": "PlanDefinition.subject[x]",
        "path": "PlanDefinition.subject[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "PlanDefinition.subject[x]:subjectReference",
        "path": "PlanDefinition.subject[x]",
        "sliceName": "subjectReference",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-group"
            ]
          }
        ]
      },
      {
        "id": "PlanDefinition.action.definition[x]",
        "path": "PlanDefinition.action.definition[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "PlanDefinition.action.definition[x]:definitionCanonical",
        "path": "PlanDefinition.action.definition[x]",
        "sliceName": "definitionCanonical",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-activity-definition",
              "http://fhir.health.gov.il/StructureDefinition/il-core-plan-definition",
              "http://fhir.health.gov.il/StructureDefinition/il-core-questionnaire"
            ]
          }
        ]
      }
    ]
  }
}