<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Location-cl" />
  <meta>
    <lastUpdated value="2019-03-14T21:10:20.9973629+00:00" />
  </meta>
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml" />
  </text>
  <url value="http://cens.cl/fhir/StructureDefinition/Location-cl" />
  <version value="1.0.0" />
  <name value="Location-cl" />
  <status value="draft" />
  <date value="2019-03-14T21:03:33.1348+00:00" />
  <publisher value="HPI Project" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Location" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Location" />
  <derivation value="constraint" />
  <differential>
    <element id="Location">
      <path value="Location" />
      <short value="Chilean Location" />
      <mustSupport value="false" />
    </element>
    <element id="Location.extension">
      <path value="Location.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.extension:technicalDirection">
      <path value="Location.extension" />
      <sliceName value="technicalDirection" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://cens.cl/fhir/StructureDefinition/technical-direction-cl" />
      </type>
    </element>
    <element id="Location.extension:sanitaryAuthorization">
      <path value="Location.extension" />
      <sliceName value="sanitaryAuthorization" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://cens.cl/fhir/StructureDefinition/extension-sanitary-authorization" />
      </type>
    </element>
    <element id="Location.extension:acreditation">
      <path value="Location.extension" />
      <sliceName value="acreditation" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://cens.cl/fhir/StructureDefinition/extension-acreditation" />
      </type>
    </element>
    <element id="Location.extension:classification">
      <path value="Location.extension" />
      <sliceName value="classification" />
      <short value="Classification of the Location" />
      <definition value="Classification and characteristics of the Location" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://cens.cl/fhir/StructureDefinition/classification-cl" />
      </type>
    </element>
    <element id="Location.identifier">
      <path value="Location.identifier" />
      <definition value="Unique code or number identifying the location to its users.&#xD;&#xA;In Chile, the primary identifier will correspond to the Id of the Master of Health Providers of the Ministry of Health, and as a secondary, the &quot;Codigo DEIS&quot; of the Department of Health Statistics and Information (DEIS)." />
      <min value="1" />
    </element>
    <element id="Location.identifier.system">
      <path value="Location.identifier.system" />
      <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique.&#xD;&#xA;&#xD;&#xA;Id Master of Health Providers - URL does not currently exist&#xD;&#xA;Codigo DEIS - http://www.deis.cl/" />
      <min value="1" />
    </element>
    <element id="Location.identifier.value">
      <path value="Location.identifier.value" />
      <min value="1" />
    </element>
    <element id="Location.identifier.assigner">
      <path value="Location.identifier.assigner" />
      <min value="1" />
    </element>
    <element id="Location.status">
      <path value="Location.status" />
      <min value="1" />
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <short value="Official name that the Location is known as, or was known as in the past" />
      <definition value="Official name of the location as used by humans. Does not need to be unique." />
      <min value="1" />
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <short value="Type of phisical location" />
      <definition value="Indicates the type of physical location or facilities defined by Secretaria Regional Ministerial (SEREMI) of the Ministery of health, Chile." />
      <comment value="Additionally can be used more granularity for complexity or modality of attention." />
    </element>
    <element id="Location.telecom">
      <path value="Location.telecom" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.telecom:telephone">
      <path value="Location.telecom" />
      <sliceName value="telephone" />
      <max value="1" />
    </element>
    <element id="Location.telecom:telephone.system">
      <path value="Location.telecom.system" />
      <min value="1" />
      <fixedCode value="phone" />
    </element>
    <element id="Location.telecom:telephone.value">
      <path value="Location.telecom.value" />
      <min value="1" />
    </element>
    <element id="Location.telecom:telephone.rank">
      <path value="Location.telecom.rank" />
      <max value="0" />
    </element>
    <element id="Location.telecom:telephone.period">
      <path value="Location.telecom.period" />
      <max value="0" />
    </element>
    <element id="Location.telecom:email">
      <path value="Location.telecom" />
      <sliceName value="email" />
      <max value="1" />
    </element>
    <element id="Location.telecom:email.system">
      <path value="Location.telecom.system" />
      <min value="1" />
    </element>
    <element id="Location.telecom:email.value">
      <path value="Location.telecom.value" />
      <min value="1" />
    </element>
    <element id="Location.telecom:email.rank">
      <path value="Location.telecom.rank" />
      <max value="0" />
    </element>
    <element id="Location.telecom:email.period">
      <path value="Location.telecom.period" />
      <max value="0" />
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <min value="1" />
      <type>
        <code value="Address" />
        <profile value="http://cens.cl/StructureDefinition/address-cl" />
      </type>
      <mapping>
        <identity value="servd" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <definition value="RUT must be use to identifier." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.org/guides/chile-pd/StructureDefinition/hpi-organization" />
      </type>
    </element>
  </differential>
</StructureDefinition>