{
  "resourceType": "StructureDefinition",
  "id": "cyehr-sd-location-r4",
  "url": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-location-r4",
  "name": "CYEHRSDLocation",
  "title": "Cyprus EHR Location profile",
  "status": "draft",
  "publisher": "eHealth4U",
  "contact": [
    {
      "name": "eHealth Lab (University of Cyprus)",
      "telecom": [
        {
          "system": "email",
          "value": "ehealthl@ucy.ac.cy",
          "use": "work"
        }
      ]
    }
  ],
  "description": "The main use-case of this profile is to represent the general location profile serving the needs of the prototype of the naitonal integrated EHR system of Cyprus.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Location.meta",
        "path": "Location.meta"
      },
      {
        "id": "Location.meta.profile",
        "path": "Location.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Location.meta.profile:CyprusEHRProfile",
        "path": "Location.meta.profile",
        "sliceName": "CyprusEHRProfile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-location-r4"
      },
      {
        "id": "Location.language",
        "path": "Location.language",
        "definition": "The base language in which the resource is written.\r\n\r\nCyprusEHR: As defined by eHDSI MVC.",
        "binding": {
          "strength": "required",
          "description": "A human language as defined by eHDSI",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsilanguage"
        }
      },
      {
        "id": "Location.identifier.system",
        "path": "Location.identifier.system",
        "min": 1
      },
      {
        "id": "Location.identifier.value",
        "path": "Location.identifier.value",
        "min": 1
      },
      {
        "id": "Location.operationalStatus.system",
        "path": "Location.operationalStatus.system",
        "min": 1
      },
      {
        "id": "Location.operationalStatus.code",
        "path": "Location.operationalStatus.code",
        "min": 1
      },
      {
        "id": "Location.operationalStatus.display",
        "path": "Location.operationalStatus.display",
        "min": 1
      },
      {
        "id": "Location.type.coding.system",
        "path": "Location.type.coding.system",
        "min": 1
      },
      {
        "id": "Location.type.coding.code",
        "path": "Location.type.coding.code",
        "min": 1
      },
      {
        "id": "Location.type.coding.display",
        "path": "Location.type.coding.display",
        "min": 1
      },
      {
        "id": "Location.address",
        "path": "Location.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Address",
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address"
            ]
          }
        ]
      },
      {
        "id": "Location.physicalType.coding.system",
        "path": "Location.physicalType.coding.system",
        "min": 1
      },
      {
        "id": "Location.physicalType.coding.code",
        "path": "Location.physicalType.coding.code",
        "min": 1
      },
      {
        "id": "Location.physicalType.coding.display",
        "path": "Location.physicalType.coding.display",
        "min": 1
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4"
            ]
          }
        ]
      },
      {
        "id": "Location.managingOrganization.reference",
        "path": "Location.managingOrganization.reference",
        "min": 1
      },
      {
        "id": "Location.partOf",
        "path": "Location.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location",
              "https://example.org/fhir/StructureDefinition/cyehr-sd-location-r4"
            ]
          }
        ]
      }
    ]
  }
}