{
  "resourceType": "StructureDefinition",
  "id": "il-core-address",
  "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-address",
  "version": "0.21.0",
  "name": "ILCoreAddress",
  "title": "ILCore Address Profile",
  "status": "active",
  "date": "2026-03-23",
  "publisher": "Israel Core Team",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "tal.primak@moh.gov.il",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Adds several Israel-specific extensions and constraints, plus geocode extension to the Address datatype",
  "jurisdiction": [
    {
      "coding": [
        {
          "code": "IL",
          "system": "urn:iso:std:iso:3166"
        }
      ]
    }
  ],
  "copyright": "Israeli Ministry of Health",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Address",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Address",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Address.extension:geolocation",
        "path": "Address.extension",
        "sliceName": "geolocation",
        "short": "geolocation",
        "definition": "An absolute geographic location",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/geolocation"
            ]
          }
        ]
      },
      {
        "id": "Address.extension:statArea",
        "path": "Address.extension",
        "sliceName": "statArea",
        "short": "Extension: Statistical Area",
        "definition": "Extension: Statistical Area. Subdivisions of cities for statistical purposes",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/ext-statistical-area"
            ]
          }
        ]
      },
      {
        "id": "Address.line",
        "path": "Address.line",
        "example": [
          {
            "label": "Valid Example",
            "valueString": "הירקון 1א' דירה 4 תל אביב"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Address.line.extension",
        "path": "Address.line.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Address.line.extension:streetName",
        "path": "Address.line.extension",
        "sliceName": "streetName",
        "short": "Extension: street name",
        "definition": "The street name of the address",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Address.line.extension:houseNumber",
        "path": "Address.line.extension",
        "sliceName": "houseNumber",
        "short": "Extension: house number",
        "definition": "The number of a building, house or lot alongside the street. Also known as \"primary street number\". This does not number the street but rather the building.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Address.line.extension:buildingNumberSuffix",
        "path": "Address.line.extension",
        "sliceName": "buildingNumberSuffix",
        "short": "Extension: building suffix",
        "definition": "The building suffix (כניסה)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-buildingNumberSuffix"
            ]
          }
        ]
      },
      {
        "id": "Address.line.extension:unitId",
        "path": "Address.line.extension",
        "sliceName": "unitId",
        "short": "unit id",
        "definition": "The unit ID e.g., Apt#, Room",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID"
            ]
          }
        ]
      },
      {
        "id": "Address.line.extension:postBox",
        "path": "Address.line.extension",
        "sliceName": "postBox",
        "short": "Extension: post box",
        "definition": "The post box number of the address",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox"
            ]
          }
        ]
      },
      {
        "id": "Address.city",
        "path": "Address.city",
        "example": [
          {
            "label": "Valid Example",
            "valueString": "ירושלים"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Address.city.extension",
        "path": "Address.city.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Address.city.extension:cityCode",
        "path": "Address.city.extension",
        "sliceName": "cityCode",
        "short": "city code",
        "definition": "A coded representation of the city, town or settlement",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/ext-city-code"
            ]
          }
        ]
      },
      {
        "id": "Address.postalCode",
        "path": "Address.postalCode",
        "example": [
          {
            "label": "Valid Example",
            "valueString": "6964101"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Address.country",
        "path": "Address.country",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.health.gov.il/ValueSet/il-core-jurisdiction"
        }
      },
      {
        "id": "Address.period",
        "path": "Address.period",
        "mustSupport": true
      }
    ]
  }
}