<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Address" />
  <meta>
    <versionId value="12" />
    <lastUpdated value="2022-01-30T04:43:36.248+00:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="normative" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
    <valueCode value="4.0.0" />
  </extension>
  <url value="https://fhir.kemkes.go.id/r4/StructureDefinition/Address" />
  <version value="4.0.1" />
  <name value="Address" />
  <status value="active" />
  <date value="2022-07-08T15:10:50.6856647+00:00" />
  <publisher value="HL7 FHIR Standard" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <description value="Base StructureDefinition for Address Type: An address expressed using postal conventions (as opposed to GPS or other location definition formats).  This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery.  There are a variety of postal address formats defined around the world." />
  <purpose value="Need to be able to record postal addresses, along with notes about their use." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="servd" />
    <uri value="http://www.omg.org/spec/ServD/1.0/" />
    <name value="ServD" />
  </mapping>
  <mapping>
    <identity value="vcard" />
    <uri value="http://w3.org/vcard" />
    <name value="vCard Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Address" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <differential>
    <element id="Address">
      <path value="Address" />
      <short value="An address expressed using postal conventions (as opposed to GPS or other location definition formats)" />
      <definition value="An address expressed using postal conventions (as opposed to GPS or other location definition formats).  This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery.  There are a variety of postal address formats defined around the world." />
      <comment value="Note: address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates.  Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource)." />
      <mapping>
        <identity value="v2" />
        <map value="XAD" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Address" />
      </mapping>
    </element>
    <element id="Address.extension">
      <path value="Address.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Address.extension:administrativeCode">
      <path value="Address.extension" />
      <sliceName value="administrativeCode" />
      <comment value="No comment." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.kemkes.go.id/r4/StructureDefinition/AdministrativeCode" />
      </type>
    </element>
    <element id="Address.extension:administrativeCode.extension">
      <path value="Address.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="4" />
    </element>
    <element id="Address.extension:administrativeCode.extension:rt">
      <path value="Address.extension.extension" />
      <sliceName value="rt" />
      <short value="Rukun Tetangga (RT) Number" />
      <definition value="Rukun Tetangga (RT) Number defined within Rukun Warga (RW) scope" />
      <min value="0" />
    </element>
    <element id="Address.extension:administrativeCode.extension:rw">
      <path value="Address.extension.extension" />
      <sliceName value="rw" />
      <short value="Rukun Warga (RW) Number" />
      <definition value="Rukun Warga (RW) Number defined within village." />
      <min value="0" />
    </element>
    <element id="Address.extension:administrativeCode.extension:village">
      <path value="Address.extension.extension" />
      <sliceName value="village" />
      <short value="The village code" />
      <definition value="The village code defined within district." />
      <min value="1" />
    </element>
    <element id="Address.extension:administrativeCode.extension:district">
      <path value="Address.extension.extension" />
      <sliceName value="district" />
      <short value="The district code" />
      <definition value="The district code defined within city." />
      <min value="1" />
    </element>
    <element id="Address.extension:administrativeCode.extension:city">
      <path value="Address.extension.extension" />
      <sliceName value="city" />
      <short value="The city code" />
      <definition value="The city code defined within province." />
      <min value="1" />
    </element>
    <element id="Address.extension:administrativeCode.extension:province">
      <path value="Address.extension.extension" />
      <sliceName value="province" />
      <short value="The province code" />
      <definition value="The province code defined within administrative region of Republic of Indonesia" />
      <min value="1" />
    </element>
    <element id="Address.extension:geolocation">
      <path value="Address.extension" />
      <sliceName value="geolocation" />
      <short value="Latitude and longitude coordinate" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/geolocation" />
      </type>
    </element>
    <element id="Address.extension:geolocation.extension">
      <path value="Address.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="2" />
    </element>
    <element id="Address.extension:geolocation.extension:latitude">
      <path value="Address.extension.extension" />
      <sliceName value="latitude" />
      <definition value="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML." />
      <min value="1" />
    </element>
    <element id="Address.extension:geolocation.extension:longitude">
      <path value="Address.extension.extension" />
      <sliceName value="longitude" />
      <definition value="Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML." />
      <min value="1" />
    </element>
    <element id="Address.use">
      <path value="Address.use" />
      <short value="home | work | temp | old | billing - purpose of this address" />
      <definition value="The purpose of this address." />
      <comment value="Applications can assume that an address is current unless it explicitly says that it is temporary or old." />
      <requirements value="Allows an appropriate address to be chosen from a list of many." />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <example>
        <label value="General" />
        <valueCode value="home" />
      </example>
      <isModifier value="true" />
      <isModifierReason value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary or old address etc.for a current/permanent one" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AddressUse" />
        </extension>
        <strength value="required" />
        <description value="The use of an address." />
        <valueSet value="http://hl7.org/fhir/ValueSet/address-use|4.0.1" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XAD.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./use)" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./AddressPurpose" />
      </mapping>
    </element>
    <element id="Address.type">
      <path value="Address.type" />
      <short value="postal | physical | both" />
      <definition value="Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both." />
      <comment value="The definition of Address states that &quot;address is intended to describe postal addresses, not physical locations&quot;. However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource)." />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <example>
        <label value="General" />
        <valueCode value="both" />
      </example>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AddressType" />
        </extension>
        <strength value="required" />
        <description value="The type of an address (physical / postal)." />
        <valueSet value="http://hl7.org/fhir/ValueSet/address-type|4.0.1" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XAD.18" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="unique(./use)" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="address type parameter" />
      </mapping>
    </element>
    <element id="Address.text">
      <path value="Address.text" />
      <short value="Text representation of the address" />
      <definition value="Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts." />
      <comment value="Can provide both a text representation and parts. Applications updating an address SHALL ensure that  when both text and parts are present,  no content is included in the text that isn't found in a part." />
      <requirements value="A renderable, unencoded form." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <example>
        <label value="General" />
        <valueString value="137 Nowhere Street, Erewhon 9132" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./formatted" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="address label parameter" />
      </mapping>
    </element>
    <element id="Address.line">
      <path value="Address.line" />
      <short value="Street name, number, direction &amp; P.O. Box etc." />
      <definition value="This component contains the house number, apartment number, street name, street direction,  P.O. Box number, delivery hints, and similar address information." />
      <type>
        <code value="string" />
      </type>
      <orderMeaning value="The order in which lines should appear in an address label" />
      <example>
        <label value="General" />
        <valueString value="137 Nowhere Street" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = AL]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="street" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./StreetAddress (newline delimitted)" />
      </mapping>
    </element>
    <element id="Address.city">
      <path value="Address.city" />
      <short value="Name of city, town etc." />
      <definition value="The name of the city, town, suburb, village or other community or delivery center." />
      <alias value="Municpality" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <example>
        <label value="General" />
        <valueString value="Erewhon" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = CTY]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="locality" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Jurisdiction" />
      </mapping>
    </element>
    <element id="Address.district">
      <path value="Address.district" />
      <short value="District name (aka county)" />
      <definition value="The name of the administrative area (county)." />
      <comment value="District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead." />
      <alias value="County" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <example>
        <label value="General" />
        <valueString value="Madison" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.9" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = CNT | CPA]" />
      </mapping>
    </element>
    <element id="Address.state">
      <path value="Address.state" />
      <short value="Sub-unit of country (abbreviations ok)" />
      <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes)." />
      <alias value="Province" />
      <alias value="Territory" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = STA]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="region" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Region" />
      </mapping>
    </element>
    <element id="Address.postalCode">
      <path value="Address.postalCode" />
      <short value="Postal code for area" />
      <definition value="A postal code designating a region defined by the postal service." />
      <alias value="Zip" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <example>
        <label value="General" />
        <valueString value="9132" />
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.5" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = ZIP]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="code" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./PostalIdentificationCode" />
      </mapping>
    </element>
    <element id="Address.country">
      <path value="Address.country" />
      <short value="Country (ISO 3166 2 letter code)" />
      <definition value="Country - a nation as commonly understood or generally accepted." />
      <comment value="ISO 3166 3 letter codes can be used in place of a human readable country name." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/iso3166-1-2" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="XAD.6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD.part[parttype = CNT]" />
      </mapping>
      <mapping>
        <identity value="vcard" />
        <map value="country" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./Country" />
      </mapping>
    </element>
    <element id="Address.period">
      <path value="Address.period" />
      <short value="Time period when address was/is in use" />
      <definition value="Time period when address was/is in use." />
      <requirements value="Allows addresses to be placed in historical context." />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <example>
        <label value="General" />
        <valuePeriod>
          <start value="2010-03-23" />
          <end value="2010-07-01" />
        </valuePeriod>
      </example>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="XAD.12 / XAD.13 + XAD.14" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./usablePeriod[type=&quot;IVL&lt;TS&gt;&quot;]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="./StartDate and ./EndDate" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>