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