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