<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cyehr-sd-locationmedicalteam-r4" />
  <url value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-locationmedicalteam-r4" />
  <name value="CYEHRSDLocationMedicalTeam" />
  <title value="Cyprus EHR Medical Team 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 physical locations that the members of a particular CYEHRSDMedicalTeam can provide healthcare services." />
  <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-locationmedicalteam-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">
      <path value="Location.identifier" />
      <comment value="CyprusEHR: Not to be used in the context of Cyprus EHR." />
    </element>
    <element id="Location.operationalStatus">
      <path value="Location.operationalStatus" />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Not to be used in the context of Cyprus EHR." />
    </element>
    <element id="Location.mode">
      <path value="Location.mode" />
      <fixedCode value="instance" />
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.&#xD;&#xA;&#xD;&#xA;CyprusEHR: For the prototype of the national EHR of Cyprus use Location.type = PROFF (Provider's Office)" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
          <code value="PROFF" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Location.type.coding">
      <path value="Location.type.coding" />
      <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.telecom">
      <path value="Location.telecom" />
      <mustSupport value="true" />
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <min value="1" />
      <type>
        <code value="Address" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Address" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.physicalType">
      <path value="Location.physicalType" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/location-physical-type" />
          <code value="bu" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <strength value="extensible" />
      </binding>
    </element>
    <element id="Location.physicalType.coding">
      <path value="Location.physicalType.coding" />
      <min value="1" />
    </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://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-medicalteam-r4" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.managingOrganization.reference">
      <path value="Location.managingOrganization.reference" />
      <min value="1" />
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Not to be used in the context of Cyprus EHR." />
    </element>
  </differential>
</StructureDefinition>