<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-core-PostalAddress" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SDR PostalAddress Profile</b>
      </p>
      <p>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 and which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. (Source: HL7 FHIR).</p>
      <p>
        <b>SDR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.core.PostalAddress maps to Address:
  constrain use to 0..0
  fix type to http://hl7.org/fhir/ValueSet/address-type#postal
  DisplayText maps to text
  AddressLine maps to line
  City maps to city
  District maps to district
  State maps to state
  PostalCode maps to postalCode
  Country maps to country
</pre>
      </p>
    </div>
  </text>
  <url value="http://nightingaleproject.github.io/fhirDeathRecord/StructureDefinition/shr-core-PostalAddress" />
  <identifier>
    <system value="http://github.com/nightingaleproject/fhirDeathRecord" />
    <value value="shr.core.PostalAddress" />
  </identifier>
  <version value="0.1.0" />
  <name value="PostalAddressProfile" />
  <title value="SDR PostalAddress Profile" />
  <status value="draft" />
  <date value="2018-06-14T00:00:00-04:00" />
  <publisher value="The MITRE Corporation: Nightingale Project" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://github.com/nightingaleproject/fhirDeathRecord" />
    </telecom>
  </contact>
  <description 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 and which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. (Source: HL7 FHIR)." />
  <purpose value="Need to be able to record postal addresses, along with notes about their use." />
  <fhirVersion value="3.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/Address" />
  <derivation value="constraint" />
  <differential>
    <element id="Address:shr-core-PostalAddress">
      <path value="Address" />
      <short value="SDR PostalAddress Profile" />
      <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 and which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. (Source: HL7 FHIR)." />
    </element>
    <element id="Address:shr-core-PostalAddress.extension:insidecitylimits">
      <path value="Address.extension" />
      <sliceName value="insidecitylimits" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <definition value="Whether the address is within city limits (true) or not (false)." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nightingaleproject.github.io/fhirDeathRecord/StructureDefinition/shr-core-InsideCityLimits-extension" />
      </type>
    </element>
    <element id="Address:shr-core-PostalAddress.use">
      <path value="Address.use" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Address:shr-core-PostalAddress.type">
      <path value="Address.type" />
      <fixedCode value="postal" />
    </element>
    <element id="Address:shr-core-PostalAddress.line">
      <path value="Address.line" />
      <min value="0" />
      <max value="2" />
    </element>
    <element id="Address:shr-core-PostalAddress.country">
      <path value="Address.country" />
      <min value="1" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>