{
  "resourceType": "StructureDefinition",
  "id": "il-core-identifier",
  "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-identifier",
  "version": "0.21.0",
  "name": "ILCoreIdentifier",
  "title": "IL Core Identifier",
  "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 Identifier data type.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Identifier",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Identifier",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Identifier",
        "path": "Identifier",
        "short": "ILCore Identifier Profile",
        "constraint": [
          {
            "key": "il-core-identifier-system",
            "severity": "error",
            "human": "An identifier SHALL have a value in the system element, otherwise, the two following conditions must be met: a DataAbsentReason extension on system SHALL be provided AND the type SHALL be populated.",
            "expression": "system.hasValue() or (system.extension.where(url='http://hl7.org/fhir/StructureDefinition/data-absent-reason').exists() and type.exists())",
            "source": "http://fhir.health.gov.il/StructureDefinition/il-core-identifier"
          }
        ]
      },
      {
        "id": "Identifier.type",
        "path": "Identifier.type",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://fhir.health.gov.il/ValueSet/il-core-identifier-type"
        }
      }
    ]
  }
}