<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cyehr-sd-practitionerregisternolicense-r4" />
  <url value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitionerregisternolicense-r4" />
  <name value="CYEHRSDPractitionerRegisterNoLicense" />
  <title value="Cyprus EHR Practitioner Register No License profile" />
  <status value="draft" />
  <publisher value="eHealth4U" />
  <contact>
    <name value="eHealth Lab" />
    <telecom>
      <system value="email" />
      <value value="ehealthl@ucy.ac.cy" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This profile represents the register of healthcare related professionals for whom no license is required to provide their services using the CYEHR system. The register is created and maintained only for the purposes of CYEHR and no other organization or entity is involved. Practitioners that are referenced by this profile SHALL have CYEHRSDPractitionerRegisterNoLicense.active = true to act with their role in the CYEHR system." />
  <purpose value="In Cyprus, there are certain categories of healthcare professionals (e.g. medical secretaries) who are not required to be registered or be bestowed by any organization in order to provide services. In this direction, CYEHR creates its own register of these professionals using this profile." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole">
      <path value="PractitionerRole" />
      <short value="The legal license to practice for medical doctors and nurses" />
      <definition value="A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The practitioner role register no license indicates whether the referenced  healthcare associate practitioner has or hasn't  the right to practice using CYEHR." />
    </element>
    <element id="PractitionerRole.meta">
      <path value="PractitionerRole.meta" />
    </element>
    <element id="PractitionerRole.meta.profile">
      <path value="PractitionerRole.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="PractitionerRole.meta.profile:CyprusEHRProfile">
      <path value="PractitionerRole.meta.profile" />
      <sliceName value="CyprusEHRProfile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitionerregisternolicense-r4" />
    </element>
    <element id="PractitionerRole.identifier">
      <path value="PractitionerRole.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.identifier.system">
      <path value="PractitionerRole.identifier.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier.value">
      <path value="PractitionerRole.identifier.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity">
      <path value="PractitionerRole.identifier" />
      <sliceName value="nationalIdentity" />
      <short value="National Identification Number from any country." />
      <definition value="Identifier for a person within a particular scope.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Represents the national identity as published by a specific country. Therefore, the value of the nationalIdentity is the combination of a country code (see issuingCountry: http://hl7.org/fhir/ValueSet/iso3166-1-2) + the special character &quot;/&quot; + the national identity number (e.g. CY/1234567, GR/X-982120). The nationalIdentity can be used to record the national identity number of a person from any country included in the value set defined by the ISO 3166-1." />
      <comment value="CyprusEHR: For national identity card of Cyprus: http://moi.gov.cy/moi/CRMD/crmd.nsf/All/6263F7FAF548FDF0C2257D2C0030B3D7?OpenDocument&#xD;&#xA;&#xD;&#xA;CyprusEHR: The nationalIdentity.system is the number taken from the NeHA OID tree representing the national identification number as an indentification mechanism for humans." />
      <max value="1" />
      <patternIdentifier>
        <use value="official" />
        <system value="urn:oid:2.16.840.1.113883.3.9143.2.1.1" />
      </patternIdentifier>
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity.extension">
      <path value="PractitionerRole.identifier.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity.extension:issuingCountry">
      <path value="PractitionerRole.identifier.extension" />
      <sliceName value="issuingCountry" />
      <short value="Issuing country of the person's national identity." />
      <definition value="Issuing country of the person's national identity using a 2-code of ISO 3166-1 countries." />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry" />
      </type>
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity.extension:issuingCountry.value[x]">
      <path value="PractitionerRole.identifier.extension.value[x]" />
      <binding>
        <strength value="extensible" />
        <description value="Iso 3166 Part 1: 2 Letter Codes" />
        <valueSet value="http://hl7.org/fhir/ValueSet/iso3166-1-2" />
      </binding>
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity.extension:issuingCountry.value[x].coding.system">
      <path value="PractitionerRole.identifier.extension.value[x].coding.system" />
      <min value="1" />
      <fixedUri value="urn:iso:std:iso:3166" />
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity.extension:issuingCountry.value[x].coding.code">
      <path value="PractitionerRole.identifier.extension.value[x].coding.code" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity.extension:issuingCountry.value[x].coding.display">
      <path value="PractitionerRole.identifier.extension.value[x].coding.display" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity.system">
      <path value="PractitionerRole.identifier.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:nationalIdentity.value">
      <path value="PractitionerRole.identifier.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:passport">
      <path value="PractitionerRole.identifier" />
      <sliceName value="passport" />
      <short value="The passport as identification of a human." />
      <definition value="Identifier for a person within a particular scope.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Represents the passport as published by a specific country. Therefore, the value of the passport is the combination of a country code (see issuingCountry: http://hl7.org/fhir/ValueSet/iso3166-1-2) + the special character &quot;/&quot; + the passport number (e.g. CY/K675677768E, CN/E65050920). The passport can be used to record the passport number of a person from any country included in the value set defined by the ISO 3166-1." />
      <comment value="CyprusEHR: The passport.system is the number taken from the NeHA OID tree representing the passport number as an indentification mechanism for humans." />
      <max value="1" />
      <patternIdentifier>
        <use value="official" />
        <system value="urn:oid:2.16.840.1.113883.3.9143.2.1.2" />
      </patternIdentifier>
    </element>
    <element id="PractitionerRole.identifier:passport.extension">
      <path value="PractitionerRole.identifier.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:passport.extension:issuingCountry">
      <path value="PractitionerRole.identifier.extension" />
      <sliceName value="issuingCountry" />
      <short value="Issuing country of the person's passport." />
      <definition value="CyprusEHR: Issuing country of the person's passport using a 2-code of ISO 3166-1 countries." />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry" />
      </type>
    </element>
    <element id="PractitionerRole.identifier:passport.extension:issuingCountry.value[x]">
      <path value="PractitionerRole.identifier.extension.value[x]" />
      <binding>
        <strength value="extensible" />
        <description value="Iso 3166 Part 1: 2 Letter Codes" />
        <valueSet value="http://hl7.org/fhir/ValueSet/iso3166-1-2" />
      </binding>
    </element>
    <element id="PractitionerRole.identifier:passport.extension:issuingCountry.value[x].coding.system">
      <path value="PractitionerRole.identifier.extension.value[x].coding.system" />
      <min value="1" />
      <fixedUri value="urn:iso:std:iso:3166" />
    </element>
    <element id="PractitionerRole.identifier:passport.extension:issuingCountry.value[x].coding.code">
      <path value="PractitionerRole.identifier.extension.value[x].coding.code" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:passport.extension:issuingCountry.value[x].coding.display">
      <path value="PractitionerRole.identifier.extension.value[x].coding.display" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:passport.system">
      <path value="PractitionerRole.identifier.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:passport.value">
      <path value="PractitionerRole.identifier.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:alienResidentCard">
      <path value="PractitionerRole.identifier" />
      <sliceName value="alienResidentCard" />
      <short value="Alien Resident Card Number as registered in Cyprus." />
      <definition value="Identifier for a person within a particular scope.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Represents the Alien Resident Card Number as registered in Cyprus." />
      <comment value="CyprusEHR: The registration certificate, or administratively called MEU-1 or MEU-2, identified as the Yellow slip (simply because it's printed on Yellow sheets) is available to everyone wishing to live, work or simply visitors desiring to have a long term residence in Cyprus.&#xD;&#xA;&#xD;&#xA;-The MEU-1 is only available for EEA Citizens and citizens of the Swiss Confederation . European Economic Area, abbreviate as EEA, consisted of 27 members states of Europeans Union + 3 countries of the European Free Trade Associations ( Island, Liechtenstein and Norway). -The MEU-2 is done for family-members of Europeans members citizens that are nor-europeans citizens. -The MEU-3 is the available after 5 years residency in Cyprus. You will obtain a permanent resident id-card. It is available for europeans citizens.&#xD;&#xA;&#xD;&#xA;Pink Slip is for the non-europeans who are settled in Cyprus, called Cyprus temporary residence permit. It also enables tourists and visitors to extend their stay no matter what was the duration of their initial visa.&#xD;&#xA;&#xD;&#xA;http://moi.gov.cy/moi/CRMD/crmd.nsf/page07_en/page07_en?OpenDocument&#xD;&#xA;&#xD;&#xA;CyprusEHR: The alienResidentCard.system is the number taken from the NeHA OID tree representing the alien resident card number of Cyprus as an indentification mechanism for humans." />
      <alias value="Yellow Slip" />
      <alias value="MEU-1" />
      <alias value="MEU-2" />
      <alias value="MEU-3" />
      <alias value="Registration certificate" />
      <alias value="Pink Slip" />
      <max value="1" />
      <patternIdentifier>
        <use value="official" />
        <system value="urn:oid:2.16.840.1.113883.3.9143.2.1.3" />
      </patternIdentifier>
    </element>
    <element id="PractitionerRole.identifier:alienResidentCard.system">
      <path value="PractitionerRole.identifier.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.identifier:alienResidentCard.value">
      <path value="PractitionerRole.identifier.value" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.active">
      <path value="PractitionerRole.active" />
      <short value="Whether this member of the register is in active status" />
      <definition value="Whether this practitioner role record is in active use.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The state of the practitioner register member indicating whether the member is active or inactivated." />
      <comment value="CyprusEHR: A Pratctitioner SHALL only be able to access a patient's EHR data if and only if there is a CYEHRSDPractitionerRegisterNoLicense with an element &quot;active&quot; = true. In any other case, the Practitioner is forbidden access to all patients' data." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <short value="The Practitioner who is being registered using this resource" />
      <definition value="Practitioner that is able to provide the defined services for the organization.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The Practitioner who is registered using this profile and has active status, can provide services for the CYEHR. In any other case, the Practitioner should not be able to provide any services and therefore, the access to the patients' data shall be forbidden." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitioner-r4" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="PractitionerRole.practitioner.reference">
      <path value="PractitionerRole.practitioner.reference" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <max value="0" />
      <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="PractitionerRole.code">
      <path value="PractitionerRole.code" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <binding>
        <strength value="required" />
        <description value="The role that this practitioner is licensed to practice" />
      </binding>
    </element>
    <element id="PractitionerRole.code.coding">
      <path value="PractitionerRole.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="1" />
    </element>
    <element id="PractitionerRole.code.coding.system">
      <path value="PractitionerRole.code.coding.system" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code.coding.code">
      <path value="PractitionerRole.code.coding.code" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code.coding.display">
      <path value="PractitionerRole.code.coding.display" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.code.coding:medicalSecretary">
      <path value="PractitionerRole.code.coding" />
      <sliceName value="medicalSecretary" />
      <max value="1" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
        <code value="394572006" />
      </patternCoding>
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.location">
      <path value="PractitionerRole.location" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.healthcareService">
      <path value="PractitionerRole.healthcareService" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.availableTime">
      <path value="PractitionerRole.availableTime" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.notAvailable">
      <path value="PractitionerRole.notAvailable" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.availabilityExceptions">
      <path value="PractitionerRole.availabilityExceptions" />
      <max value="0" />
    </element>
    <element id="PractitionerRole.endpoint.reference">
      <path value="PractitionerRole.endpoint.reference" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>