<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cyehr-sd-patient" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2022-10-21T13:02:01.0827815+00:00" />
  </meta>
  <url value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-patient" />
  <name value="CYEHRSDPatient" />
  <title value="Cyprus EHR Patient profile" />
  <status value="draft" />
  <date value="2022-03-24T10:46:38.3751258+00:00" />
  <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="Represents the citizens who receive healthcare services by a healthcare provider in Cyprus or abroad." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient">
      <path value="Patient" />
      <short value="Information about an individual receiving health care services" />
      <definition value="Demographics and other administrative information about an individual receiving care or other health-related services." />
      <mustSupport value="true" />
    </element>
    <element id="Patient.meta">
      <path value="Patient.meta" />
    </element>
    <element id="Patient.meta.profile">
      <path value="Patient.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Patient.meta.profile:CyprusEHRProfile">
      <path value="Patient.meta.profile" />
      <sliceName value="CyprusEHRProfile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-patient" />
    </element>
    <element id="Patient.extension">
      <path value="Patient.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.extension:race">
      <path value="Patient.extension" />
      <sliceName value="race" />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Not to be used in the context of Cyprus EHR." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-race" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.extension:insurance">
      <path value="Patient.extension" />
      <sliceName value="insurance" />
      <comment value="CyprusEHR: This elements represents the name of an insurance organization that covers the patient besides the Cyprus HIO (https://www.gesy.org.cy/launchpad.html)." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-insurance" />
      </type>
    </element>
    <element id="Patient.extension:fathersInformation">
      <path value="Patient.extension" />
      <sliceName value="fathersInformation" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-fathersinformation" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.extension:mothersInformation">
      <path value="Patient.extension" />
      <sliceName value="mothersInformation" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-mothersinformation" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="An identifier for this patient.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Identifiers can be provided for every person registered in national integrated EHR system of Cyprus but it is not mandatory, e.g: a patient in some specific cases can remain anonymous. There are three possible identifiers that can be used: (1) the national identity and the issuing country (2) the passport and the issuing country  (3) the Alien Resident Card (in Cyprus) and (4) the Social Insurance Services." />
      <requirements value="People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the person. Examples are national person identifier and local identifier." />
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier.system">
      <path value="Patient.identifier.system" />
      <min value="1" />
    </element>
    <element id="Patient.identifier.value">
      <path value="Patient.identifier.value" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:nationalIdentity">
      <path value="Patient.identifier" />
      <sliceName value="nationalIdentity" />
      <short value="An identifier for this patient: National Identification Number from any country." />
      <definition value="An identifier for this patient.&#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." />
      <requirements value="People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the person. Examples are national person identifier and local identifier." />
      <max value="1" />
      <patternIdentifier>
        <use value="official" />
        <system value="urn:oid:2.16.840.1.113883.3.9143.2.1.1" />
      </patternIdentifier>
      <constraint>
        <key value="cyehr-patient-3" />
        <severity value="error" />
        <human value="If the identification is the nationalIdentity or passport then the first 2 digits of the identification.value must be the same with the issuingCountry and the third digit must be the slash character" />
        <expression value="value.substring(0,3) = extension('http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry').valueCodeableConcept.coding.code + '/'" />
        <source value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-patient-r4" />
      </constraint>
    </element>
    <element id="Patient.identifier:nationalIdentity.extension">
      <path value="Patient.identifier.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Patient.identifier:nationalIdentity.extension:issuingCountry">
      <path value="Patient.identifier.extension" />
      <sliceName value="issuingCountry" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.identifier:nationalIdentity.extension:issuingCountry.value[x]">
      <path value="Patient.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="Patient.identifier:nationalIdentity.extension:issuingCountry.value[x].coding.system">
      <path value="Patient.identifier.extension.value[x].coding.system" />
      <min value="1" />
      <fixedUri value="urn:iso:std:iso:3166" />
    </element>
    <element id="Patient.identifier:nationalIdentity.extension:issuingCountry.value[x].coding.code">
      <path value="Patient.identifier.extension.value[x].coding.code" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:nationalIdentity.extension:issuingCountry.value[x].coding.display">
      <path value="Patient.identifier.extension.value[x].coding.display" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:nationalIdentity.system">
      <path value="Patient.identifier.system" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:nationalIdentity.value">
      <path value="Patient.identifier.value" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:passport">
      <path value="Patient.identifier" />
      <sliceName value="passport" />
      <short value="The passport as identification of a human." />
      <definition value="Identifier for a patient 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." />
      <requirements value="People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the person. Examples are national person identifier and local identifier." />
      <max value="1" />
      <patternIdentifier>
        <use value="official" />
        <system value="urn:oid:2.16.840.1.113883.3.9143.2.1.2" />
      </patternIdentifier>
      <constraint>
        <key value="cyehr-patient-4" />
        <severity value="error" />
        <human value="If the identification is nationalIdentity or passport then the first 2 digits of the identification.value must be the same with the issuingCountry and the third digit must be the slash character" />
        <expression value="value.substring(0,3) = extension('http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry').valueCodeableConcept.coding.code + '/'" />
        <source value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-patient-r4" />
      </constraint>
    </element>
    <element id="Patient.identifier:passport.extension">
      <path value="Patient.identifier.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.identifier:passport.extension:issuingCountry">
      <path value="Patient.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="0" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Patient.identifier:passport.extension:issuingCountry.value[x]">
      <path value="Patient.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="Patient.identifier:passport.extension:issuingCountry.value[x].coding.system">
      <path value="Patient.identifier.extension.value[x].coding.system" />
      <min value="1" />
      <fixedUri value="urn:iso:std:iso:3166" />
    </element>
    <element id="Patient.identifier:passport.extension:issuingCountry.value[x].coding.code">
      <path value="Patient.identifier.extension.value[x].coding.code" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:passport.extension:issuingCountry.value[x].coding.display">
      <path value="Patient.identifier.extension.value[x].coding.display" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:passport.system">
      <path value="Patient.identifier.system" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:passport.value">
      <path value="Patient.identifier.value" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:alienResidentCard">
      <path value="Patient.identifier" />
      <sliceName value="alienResidentCard" />
      <short value="Alien Resident Card Number as registered in Cyprus." />
      <definition value="Identifier for a patient 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="Patient.identifier:alienResidentCard.system">
      <path value="Patient.identifier.system" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:alienResidentCard.value">
      <path value="Patient.identifier.value" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:socialInsuranceServices">
      <path value="Patient.identifier" />
      <sliceName value="socialInsuranceServices" />
      <short value="Social Insurance Services" />
      <definition value="Identifier for a patient within a particular scope.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Represents the Social Insurance Services number as registered in Cyprus." />
      <comment value="CyprusEHR: A number Social Insurance Services Number is provided by the Ministry of Labour, Welfare and Social Insurance of Cyprus to all Cypriot and EU citizens for their contribution to the Social Insurance Scheme. http://www.mlsi.gov.cy/mlsi/sid/sidv2.nsf/index_en/index_en&#xD;&#xA;&#xD;&#xA;CyprusEHR: The socialInsuranceServices.system is the number taken from the NeHA OID tree representing the social insurance services number of Cyprus 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.4" />
      </patternIdentifier>
    </element>
    <element id="Patient.identifier:socialInsuranceServices.system">
      <path value="Patient.identifier.system" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:socialInsuranceServices.value">
      <path value="Patient.identifier.value" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:beneficiaryCodeGHS">
      <path value="Patient.identifier" />
      <sliceName value="beneficiaryCodeGHS" />
      <short value="national GHS beneficiary code" />
      <definition value="National General Health System (GESY) beneficiary code of Cyprus." />
      <max value="1" />
      <patternIdentifier>
        <use value="official" />
        <system value="urn:oid:2.16.840.1.113883.3.9143.2.1.5" />
      </patternIdentifier>
    </element>
    <element id="Patient.identifier:beneficiaryCodeGHS.system">
      <path value="Patient.identifier.system" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:beneficiaryCodeGHS.value">
      <path value="Patient.identifier.value" />
      <min value="1" />
    </element>
    <element id="Patient.name">
      <path value="Patient.name" />
      <requirements value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name.&#xD;&#xA;The Alphabetic representation of the name SHALL be always provided" />
      <max value="1" />
      <constraint>
        <key value="ips-pat-1" />
        <severity value="error" />
        <human value="Patient.name.given or Patient.name.family or both SHALL be present" />
        <expression value="family.exists() or given.exists()" />
        <xpath value="f:given or f:family" />
        <source value="http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="Patient.name.use">
      <path value="Patient.name.use" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.name.text">
      <path value="Patient.name.text" />
      <definition value="Text representation of the full name. Due to the cultural variance around the world a consuming system may not know how to present the name correctly; moreover not all the parts of the name go in given or family. Creators are therefore strongly encouraged to provide through this element a presented version of the name. Future versions of this guide may require this element" />
      <mustSupport value="false" />
    </element>
    <element id="Patient.name.family">
      <path value="Patient.name.family" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.name.given">
      <path value="Patient.name.given" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.telecom">
      <path value="Patient.telecom" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.telecom.system">
      <path value="Patient.telecom.system" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.telecom.value">
      <path value="Patient.telecom.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.telecom.use">
      <path value="Patient.telecom.use" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.gender">
      <path value="Patient.gender" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.birthDate">
      <path value="Patient.birthDate" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.address">
      <path value="Patient.address" />
      <short value="One or more addresses for the person." />
      <definition value="One or more addresses for the person.&#xD;&#xA;&#xD;&#xA;CyprusEHR: It SHOULD be used for home addresses (address.use = home)." />
      <type>
        <code value="Address" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Address" />
      </type>
      <constraint>
        <key value="pat-cnt-2or3-char" />
        <severity value="warning" />
        <human value="The content of the country element (if present) SHALL be selected EITHER from ValueSet ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2 OR MAY be selected from ISO Country Alpha-3 Value Set http://hl7.org/fhir/ValueSet/iso3166-1-3, IF the country is not specified in value Set ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2." />
        <expression value="country.empty() or (country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2') or country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))" />
        <source value="http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips" />
      </constraint>
      <mustSupport value="true" />
    </element>
    <element id="Patient.maritalStatus">
      <path value="Patient.maritalStatus" />
      <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: Not to be used in the context of Cyprus EHR." />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Patient.multipleBirth[x]">
      <path value="Patient.multipleBirth[x]" />
      <comment value="Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).&#xD;&#xA;&#xD;&#xA;CyprusEHR: Not to be used in the context of Cyprus EHR." />
    </element>
    <element id="Patient.contact">
      <path value="Patient.contact" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="relationship" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.contact.extension">
      <path value="Patient.contact.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Patient.contact.extension:relationshipLevel">
      <path value="Patient.contact.extension" />
      <sliceName value="relationshipLevel" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-relationshiplevel" />
      </type>
      <isModifier value="false" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-contactpersonlevel" />
      </binding>
    </element>
    <element id="Patient.contact.relationship">
      <path value="Patient.contact.relationship" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <binding>
        <strength value="required" />
        <description value="The nature of the relationship between a patient and a contact person for that patient as defined by eHDSI in MVC" />
        <valueSet value="http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsiroleclass" />
      </binding>
    </element>
    <element id="Patient.contact.relationship.coding.system">
      <path value="Patient.contact.relationship.coding.system" />
      <min value="1" />
    </element>
    <element id="Patient.contact.relationship.coding.code">
      <path value="Patient.contact.relationship.coding.code" />
      <min value="1" />
    </element>
    <element id="Patient.contact.relationship.coding.display">
      <path value="Patient.contact.relationship.coding.display" />
      <min value="1" />
    </element>
    <element id="Patient.contact.name">
      <path value="Patient.contact.name" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.name.use">
      <path value="Patient.contact.name.use" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.name.family">
      <path value="Patient.contact.name.family" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.name.given">
      <path value="Patient.contact.name.given" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.telecom">
      <path value="Patient.contact.telecom" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.telecom.system">
      <path value="Patient.contact.telecom.system" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.telecom.value">
      <path value="Patient.contact.telecom.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.telecom.use">
      <path value="Patient.contact.telecom.use" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.address">
      <path value="Patient.contact.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>
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.gender">
      <path value="Patient.contact.gender" />
      <short value="Female | Male | Undifferentiated" />
    </element>
    <element id="Patient.contact.organization">
      <path value="Patient.contact.organization" />
      <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>
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact.organization.reference">
      <path value="Patient.contact.organization.reference" />
      <min value="1" />
    </element>
    <element id="Patient.contact:nextOfKin">
      <path value="Patient.contact" />
      <sliceName value="nextOfKin" />
      <short value="The next of kin of the patient." />
      <definition value="CyprusEHR: The next of kin of the patient." />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.relationship">
      <path value="Patient.contact.relationship" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v3-RoleClass" />
          <code value="NOK" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <strength value="required" />
        <description value="The nature of the relationship between a patient and a contact person for that patient as defined by eHDSI in MVC" />
        <valueSet value="http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsiroleclass" />
      </binding>
    </element>
    <element id="Patient.contact:nextOfKin.relationship.coding">
      <path value="Patient.contact.relationship.coding" />
      <min value="1" />
    </element>
    <element id="Patient.contact:nextOfKin.relationship.coding.system">
      <path value="Patient.contact.relationship.coding.system" />
      <min value="1" />
    </element>
    <element id="Patient.contact:nextOfKin.relationship.coding.code">
      <path value="Patient.contact.relationship.coding.code" />
      <min value="1" />
    </element>
    <element id="Patient.contact:nextOfKin.relationship.coding.display">
      <path value="Patient.contact.relationship.coding.display" />
      <min value="1" />
    </element>
    <element id="Patient.contact:nextOfKin.name">
      <path value="Patient.contact.name" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.name.use">
      <path value="Patient.contact.name.use" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.name.family">
      <path value="Patient.contact.name.family" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.name.given">
      <path value="Patient.contact.name.given" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.telecom">
      <path value="Patient.contact.telecom" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.telecom.system">
      <path value="Patient.contact.telecom.system" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.telecom.value">
      <path value="Patient.contact.telecom.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.telecom.use">
      <path value="Patient.contact.telecom.use" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.address">
      <path value="Patient.contact.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>
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.gender">
      <path value="Patient.contact.gender" />
      <short value="Female | Male | Undifferentiated" />
    </element>
    <element id="Patient.contact:nextOfKin.organization">
      <path value="Patient.contact.organization" />
      <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>
      <mustSupport value="true" />
    </element>
    <element id="Patient.contact:nextOfKin.organization.reference">
      <path value="Patient.contact.organization.reference" />
      <min value="1" />
    </element>
    <element id="Patient.communication">
      <path value="Patient.communication" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.communication.language">
      <path value="Patient.communication.language" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsilanguage" />
      </binding>
    </element>
    <element id="Patient.communication.language.coding.system">
      <path value="Patient.communication.language.coding.system" />
      <min value="1" />
    </element>
    <element id="Patient.communication.language.coding.code">
      <path value="Patient.communication.language.coding.code" />
      <min value="1" />
    </element>
    <element id="Patient.communication.language.coding.display">
      <path value="Patient.communication.language.coding.display" />
      <min value="1" />
    </element>
    <element id="Patient.generalPractitioner">
      <path value="Patient.generalPractitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitioner-r4" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitionerrole-r4" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Patient.generalPractitioner.reference">
      <path value="Patient.generalPractitioner.reference" />
      <min value="1" />
    </element>
    <element id="Patient.managingOrganization">
      <path value="Patient.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="Patient.managingOrganization.reference">
      <path value="Patient.managingOrganization.reference" />
      <min value="1" />
    </element>
    <element id="Patient.link.other">
      <path value="Patient.link.other" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-patient" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-relatedperson-r4" />
      </type>
    </element>
    <element id="Patient.link.other.reference">
      <path value="Patient.link.other.reference" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>