{
  "resourceType": "StructureDefinition",
  "id": "MyLocationSGES",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-09-11T10:23:05.339+00:00"
  },
  "url": "http://spms.min-saude.pt/fhir/StructureDefinition/MyLocation_SGES",
  "name": "MyLocationSGES",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Location.id",
        "path": "Location.id",
        "min": 1
      },
      {
        "id": "Location.extension",
        "path": "Location.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Location.extension:myExtension_patient_subscribers_location",
        "path": "Location.extension",
        "sliceName": "myExtension_patient_subscribers_location",
        "type": [
          {
            "code": "Extension",
            "profile": "http://spms.min-saude.pt/sges/extensions/patients-subscribers"
          }
        ]
      },
      {
        "id": "Location.extension:extension-validity-period-location",
        "path": "Location.extension",
        "sliceName": "extension-validity-period-location",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://spms.min-saude.pt/iop/extensions/validity-period-location"
          }
        ]
      },
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Location.identifier:sliceIdentifier_CodHlEst",
        "path": "Location.identifier",
        "sliceName": "sliceIdentifier_CodHlEst"
      },
      {
        "id": "Location.identifier:sliceIdentifier_CodHlEst.system",
        "path": "Location.identifier.system",
        "min": 1,
        "fixedUri": "http://spms.min-saude.pt/iop/identifiers/id-codhlest"
      },
      {
        "id": "Location.identifier:sliceIdentifier_SGES",
        "path": "Location.identifier",
        "sliceName": "sliceIdentifier_SGES"
      },
      {
        "id": "Location.identifier:sliceIdentifier_SGES.system",
        "path": "Location.identifier.system",
        "min": 1,
        "fixedUri": "http://spms.min-saude.pt/iop/identifiers/id-sges"
      },
      {
        "id": "Location.identifier:sliceIdentifie_Cod_Centro_Saude",
        "path": "Location.identifier",
        "sliceName": "sliceIdentifie_Cod_Centro_Saude"
      },
      {
        "id": "Location.identifier:sliceIdentifie_Cod_Centro_Saude.system",
        "path": "Location.identifier.system",
        "min": 1,
        "fixedUri": "http://spms.min-saude.pt/sges/identifiers/entity-id"
      },
      {
        "id": "Location.identifier:sliceIdentifier_Cod_Und_Func",
        "path": "Location.identifier",
        "sliceName": "sliceIdentifier_Cod_Und_Func"
      },
      {
        "id": "Location.identifier:sliceIdentifier_Cod_Und_Func.system",
        "path": "Location.identifier.system",
        "min": 1,
        "fixedUri": "http://spms.min-saude.pt/sges/identifiers/entity-id"
      },
      {
        "id": "Location.status",
        "path": "Location.status",
        "min": 1
      },
      {
        "id": "Location.name",
        "path": "Location.name",
        "min": 1
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "min": 1
      },
      {
        "id": "Location.type.coding.system",
        "path": "Location.type.coding.system",
        "min": 1,
        "fixedUri": "http://spms.min-saude.pt/sges/codesystem/establishment-type"
      },
      {
        "id": "Location.type.coding.code",
        "path": "Location.type.coding.code",
        "min": 1
      },
      {
        "id": "Location.address.extension",
        "path": "Location.address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Location.address.extension:extension-address-location",
        "path": "Location.address.extension",
        "sliceName": "extension-address-location",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://spms.min-saude.pt/sges/extensions/address-organization"
          }
        ]
      },
      {
        "id": "Location.managingOrganization.identifier.system",
        "path": "Location.managingOrganization.identifier.system",
        "fixedUri": "http://spms.min-saude.pt/sges/identifiers/entity-id"
      }
    ]
  }
}