<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MyLocationSGES" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2019-09-11T11:23:05.339+01:00" />
  </meta>
  <url value="http://spms.min-saude.pt/fhir/StructureDefinition/MyLocation_SGES" />
  <name value="MyLocationSGES" />
  <status value="draft" />
  <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" />
  <snapshot />
  <differential>
    <element id="Location.id">
      <path value="Location.id" />
      <min value="1" />
    </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:myExtension_patient_subscribers_location">
      <path value="Location.extension" />
      <sliceName value="myExtension_patient_subscribers_location" />
      <type>
        <code value="Extension" />
        <profile value="http://spms.min-saude.pt/sges/extensions/patients-subscribers" />
      </type>
    </element>
    <element id="Location.extension:extension-validity-period-location">
      <path value="Location.extension" />
      <sliceName value="extension-validity-period-location" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://spms.min-saude.pt/iop/extensions/validity-period-location" />
      </type>
    </element>
    <element id="Location.identifier">
      <path value="Location.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.identifier:sliceIdentifier_CodHlEst">
      <path value="Location.identifier" />
      <sliceName value="sliceIdentifier_CodHlEst" />
    </element>
    <element id="Location.identifier:sliceIdentifier_CodHlEst.system">
      <path value="Location.identifier.system" />
      <min value="1" />
      <fixedUri value="http://spms.min-saude.pt/iop/identifiers/id-codhlest" />
    </element>
    <element id="Location.identifier:sliceIdentifier_SGES">
      <path value="Location.identifier" />
      <sliceName value="sliceIdentifier_SGES" />
    </element>
    <element id="Location.identifier:sliceIdentifier_SGES.system">
      <path value="Location.identifier.system" />
      <min value="1" />
      <fixedUri value="http://spms.min-saude.pt/iop/identifiers/id-sges" />
    </element>
    <element id="Location.identifier:sliceIdentifie_Cod_Centro_Saude">
      <path value="Location.identifier" />
      <sliceName value="sliceIdentifie_Cod_Centro_Saude" />
    </element>
    <element id="Location.identifier:sliceIdentifie_Cod_Centro_Saude.system">
      <path value="Location.identifier.system" />
      <min value="1" />
      <fixedUri value="http://spms.min-saude.pt/sges/identifiers/entity-id" />
    </element>
    <element id="Location.identifier:sliceIdentifier_Cod_Und_Func">
      <path value="Location.identifier" />
      <sliceName value="sliceIdentifier_Cod_Und_Func" />
    </element>
    <element id="Location.identifier:sliceIdentifier_Cod_Und_Func.system">
      <path value="Location.identifier.system" />
      <min value="1" />
      <fixedUri value="http://spms.min-saude.pt/sges/identifiers/entity-id" />
    </element>
    <element id="Location.status">
      <path value="Location.status" />
      <min value="1" />
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <min value="1" />
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <min value="1" />
    </element>
    <element id="Location.type.coding.system">
      <path value="Location.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://spms.min-saude.pt/sges/codesystem/establishment-type" />
    </element>
    <element id="Location.type.coding.code">
      <path value="Location.type.coding.code" />
      <min value="1" />
    </element>
    <element id="Location.address.extension">
      <path value="Location.address.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.address.extension:extension-address-location">
      <path value="Location.address.extension" />
      <sliceName value="extension-address-location" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://spms.min-saude.pt/sges/extensions/address-organization" />
      </type>
    </element>
    <element id="Location.managingOrganization.identifier.system">
      <path value="Location.managingOrganization.identifier.system" />
      <fixedUri value="http://spms.min-saude.pt/sges/identifiers/entity-id" />
    </element>
  </differential>
</StructureDefinition>