<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cyehr-sd-location-r4" />
  <url value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-location-r4" />
  <name value="CYEHRSDLocation" />
  <title value="Cyprus EHR Location profile" />
  <status value="draft" />
  <publisher value="eHealth4U" />
  <contact>
    <name value="eHealth Lab (University of Cyprus)" />
    <telecom>
      <system value="email" />
      <value value="ehealthl@ucy.ac.cy" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="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 value="4.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.meta">
      <path value="Location.meta" />
    </element>
    <element id="Location.meta.profile">
      <path value="Location.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Location.meta.profile:CyprusEHRProfile">
      <path value="Location.meta.profile" />
      <sliceName value="CyprusEHRProfile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-location-r4" />
    </element>
    <element id="Location.language">
      <path value="Location.language" />
      <definition value="The base language in which the resource is written.&#xD;&#xA;&#xD;&#xA;CyprusEHR: As defined by eHDSI MVC." />
      <binding>
        <strength value="required" />
        <description value="A human language as defined by eHDSI" />
        <valueSet value="http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsilanguage" />
      </binding>
    </element>
    <element id="Location.identifier.system">
      <path value="Location.identifier.system" />
      <min value="1" />
    </element>
    <element id="Location.identifier.value">
      <path value="Location.identifier.value" />
      <min value="1" />
    </element>
    <element id="Location.operationalStatus.system">
      <path value="Location.operationalStatus.system" />
      <min value="1" />
    </element>
    <element id="Location.operationalStatus.code">
      <path value="Location.operationalStatus.code" />
      <min value="1" />
    </element>
    <element id="Location.operationalStatus.display">
      <path value="Location.operationalStatus.display" />
      <min value="1" />
    </element>
    <element id="Location.type.coding.system">
      <path value="Location.type.coding.system" />
      <min value="1" />
    </element>
    <element id="Location.type.coding.code">
      <path value="Location.type.coding.code" />
      <min value="1" />
    </element>
    <element id="Location.type.coding.display">
      <path value="Location.type.coding.display" />
      <min value="1" />
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <type>
        <code value="Address" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Address" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address" />
      </type>
    </element>
    <element id="Location.physicalType.coding.system">
      <path value="Location.physicalType.coding.system" />
      <min value="1" />
    </element>
    <element id="Location.physicalType.coding.code">
      <path value="Location.physicalType.coding.code" />
      <min value="1" />
    </element>
    <element id="Location.physicalType.coding.display">
      <path value="Location.physicalType.coding.display" />
      <min value="1" />
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4" />
      </type>
    </element>
    <element id="Location.managingOrganization.reference">
      <path value="Location.managingOrganization.reference" />
      <min value="1" />
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
        <targetProfile value="https://example.org/fhir/StructureDefinition/cyehr-sd-location-r4" />
      </type>
    </element>
  </differential>
</StructureDefinition>