{
  "resourceType": "StructureDefinition",
  "id": "biobankcy-sd-practitioner",
  "url": "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-practitioner",
  "name": "BIOBANKCYSDPractitioner",
  "title": "Profile: Practitioner (biobank.cy)",
  "status": "draft",
  "publisher": "biobank.cy",
  "contact": [
    {
      "name": "Molecular Medicine Research Center (MMRC)",
      "telecom": [
        {
          "system": "email",
          "value": "biobank@ucy.ac.cy",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Represents natural or legal persons or other entity who is legally providing services for the biobank and needs access to biobank.cy data",
  "purpose": "Practitioner profile is intended to represent every person who provides services in the biobank.cy",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Practitioner",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Practitioner",
        "path": "Practitioner",
        "short": "A person with a formal responsibility in the provisioning of biobank.cy services",
        "definition": "A person who is directly or indirectly involved in the provisioning of biobanking services and needs access to biobank.cy data warehouse.",
        "constraint": [
          {
            "key": "biobank.cy-practitioner-1",
            "severity": "error",
            "human": "A citizen must have an identification number registered in Cyprus (nationalIdenitty or Passport with issuing coutnry =Cyprus or ARC) in order to have a national social insurance number",
            "expression": "identifier.where(system='urn:oid:2.16.840.1.113883.3.9143.2.1.4').exists() implies ( identifier.where(system='urn:oid:2.16.840.1.113883.3.9143.2.1.1' or system='urn:oid:2.16.840.1.113883.3.9143.2.1.2').extension('http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry').valueCodeableConcept.coding.where(code = 'CY').exists() or identifier.where(system='urn:oid:2.16.840.1.113883.3.9143.2.1.3').exists() )"
          }
        ]
      },
      {
        "id": "Practitioner.identifier",
        "path": "Practitioner.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "definition": "Identifier for a person within a particular scope.\r\n\r\nbiobank.cy: Every person providing services to biobank.cy should have a national identifier. 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. A Person SHALL have at least one of the first three identifiers.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Practitioner.identifier.system",
        "path": "Practitioner.identifier.system",
        "min": 1
      },
      {
        "id": "Practitioner.identifier.value",
        "path": "Practitioner.identifier.value",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:nationalIdentity",
        "path": "Practitioner.identifier",
        "sliceName": "nationalIdentity",
        "short": "National Identification Number from any country.",
        "definition": "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 \"/\" + 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": "For national identity card of Cyprus: http://moi.gov.cy/moi/CRMD/crmd.nsf/All/6263F7FAF548FDF0C2257D2C0030B3D7?OpenDocument\r\n\r\nThe nationalIdentity.system is the number taken from the NeHA OID tree representing the national identification number as an indentification mechanism for humans.",
        "max": "1",
        "patternIdentifier": {
          "use": "official",
          "system": "urn:oid:2.16.840.1.113883.3.9143.2.1.1"
        },
        "constraint": [
          {
            "key": "biobankcy-practitioner-2",
            "severity": "error",
            "human": "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.substring(0,3) = extension('http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry').valueCodeableConcept.coding.code + '/'"
          }
        ]
      },
      {
        "id": "Practitioner.identifier:nationalIdentity.extension",
        "path": "Practitioner.identifier.extension",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:nationalIdentity.extension:issuingCountry",
        "path": "Practitioner.identifier.extension",
        "sliceName": "issuingCountry",
        "short": "Issuing country of the person's national identity.",
        "definition": "Issuing country of the person's national identity using a 2-code of ISO 3166-1 countries.",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.identifier:nationalIdentity.extension:issuingCountry.url",
        "path": "Practitioner.identifier.extension.url",
        "fixedUri": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry"
      },
      {
        "id": "Practitioner.identifier:nationalIdentity.extension:issuingCountry.value[x]",
        "path": "Practitioner.identifier.extension.value[x]",
        "binding": {
          "strength": "extensible",
          "description": "Iso 3166 Part 1: 2 Letter Codes",
          "valueSet": "http://hl7.org/fhir/ValueSet/iso3166-1-2"
        }
      },
      {
        "id": "Practitioner.identifier:nationalIdentity.system",
        "path": "Practitioner.identifier.system",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:nationalIdentity.value",
        "path": "Practitioner.identifier.value",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:passport",
        "path": "Practitioner.identifier",
        "sliceName": "passport",
        "short": "The passport as identification of a human.",
        "definition": "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 \"/\" + 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": "The passport.system is the number taken from the NeHA OID tree representing the passport number as an indentification mechanism for humans.",
        "max": "1",
        "patternIdentifier": {
          "use": "official",
          "system": "urn:oid:2.16.840.1.113883.3.9143.2.1.2"
        },
        "constraint": [
          {
            "key": "biobankcy-practitioner-3",
            "severity": "error",
            "human": "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.substring(0,3) = extension('http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry').valueCodeableConcept.coding.code + '/'"
          }
        ]
      },
      {
        "id": "Practitioner.identifier:passport.extension",
        "path": "Practitioner.identifier.extension",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:passport.extension:issuingCountry",
        "path": "Practitioner.identifier.extension",
        "sliceName": "issuingCountry",
        "short": "Issuing country of the person's passport.",
        "definition": "CyprusEHR: Issuing country of the person's passport using a 2-code of ISO 3166-1 countries.",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.identifier:passport.extension:issuingCountry.url",
        "path": "Practitioner.identifier.extension.url",
        "fixedUri": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-issuingcountry"
      },
      {
        "id": "Practitioner.identifier:passport.extension:issuingCountry.value[x]",
        "path": "Practitioner.identifier.extension.value[x]",
        "binding": {
          "strength": "extensible",
          "description": "Iso 3166 Part 1: 2 Letter Codes",
          "valueSet": "http://hl7.org/fhir/ValueSet/iso3166-1-2"
        }
      },
      {
        "id": "Practitioner.identifier:passport.system",
        "path": "Practitioner.identifier.system",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:passport.value",
        "path": "Practitioner.identifier.value",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:passport.assigner",
        "path": "Practitioner.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.identifier:alienResidentCard",
        "path": "Practitioner.identifier",
        "sliceName": "alienResidentCard",
        "short": "Alien Resident Card Number as registered in Cyprus.",
        "definition": "Represents the Alien Resident Card Number as registered in Cyprus.",
        "comment": "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.\r\n\r\n-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.\r\n\r\nPink 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.\r\n\r\nhttp://moi.gov.cy/moi/CRMD/crmd.nsf/page07_en/page07_en?OpenDocument\r\n\r\nCyprusEHR: 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": [
          "Yellow Slip",
          "MEU-1",
          "MEU-2",
          "MEU-3",
          "Registration certificate",
          "Pink Slip"
        ],
        "max": "1",
        "patternIdentifier": {
          "use": "official",
          "system": "urn:oid:2.16.840.1.113883.3.9143.2.1.3"
        }
      },
      {
        "id": "Practitioner.identifier:alienResidentCard.system",
        "path": "Practitioner.identifier.system",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:alienResidentCard.value",
        "path": "Practitioner.identifier.value",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:alienResidentCard.assigner",
        "path": "Practitioner.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.identifier:socialInsuranceServices",
        "path": "Practitioner.identifier",
        "sliceName": "socialInsuranceServices",
        "short": "Social Insurance Services",
        "definition": "Represents the Social Insurance Services number as registered in Cyprus.",
        "comment": "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\r\n\r\nCyprusEHR: 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": "1",
        "patternIdentifier": {
          "use": "official",
          "system": "urn:oid:2.16.840.1.113883.3.9143.2.1.4"
        }
      },
      {
        "id": "Practitioner.identifier:socialInsuranceServices.system",
        "path": "Practitioner.identifier.system",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:socialInsuranceServices.value",
        "path": "Practitioner.identifier.value",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:socialInsuranceServices.assigner",
        "path": "Practitioner.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.identifier:cyMedicalRegister",
        "path": "Practitioner.identifier",
        "sliceName": "cyMedicalRegister",
        "short": "Cyprus Medical Register number",
        "definition": "The number provided by the Cyprus Medical Council for registration in the Cyprus Medical Register or/and recognition of a specialization title. To be used only for the cases that the practitioners are medical doctors.",
        "comment": "CyprusEHR: More information can be found in the Cyprus Medical Council webpage: https://www.moh.gov.cy/moh/cmc/cmc.nsf/doctorsregister_table_el/doctorsregister_table_el?OpenForm and https://www.moh.gov.cy/moh/cmc/cmc.nsf/form_el/form_el",
        "max": "1",
        "patternIdentifier": {
          "use": "official",
          "system": "urn:oid:2.16.840.1.113883.3.9143.2.1.10"
        }
      },
      {
        "id": "Practitioner.identifier:cyMedicalRegister.system",
        "path": "Practitioner.identifier.system",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:cyMedicalRegister.value",
        "path": "Practitioner.identifier.value",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:cyMedicalRegister.assigner",
        "path": "Practitioner.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.identifier:cyGeneralNursingRegister",
        "path": "Practitioner.identifier",
        "sliceName": "cyGeneralNursingRegister",
        "short": "Cyprus General Nursing Register number",
        "definition": "The number provided by the Cyprus Nursing and Midwifery Council for registration in the Cyprus General Nursing Register.  To be used only for the cases that the practitioners are nurses.",
        "comment": "CyprusEHR: More information can be found in Cyprus Nursing and Midwifery Council webpage: https://www.moh.gov.cy/moh/nmc/nmc.nsf/home_el/home_el?opendocument and https://www.moh.gov.cy/moh/nmc/nmc.nsf/page29_gr/page29_gr?OpenDocument",
        "max": "1",
        "patternIdentifier": {
          "use": "official",
          "system": "urn:oid:2.16.840.1.113883.3.9143.2.1.12"
        }
      },
      {
        "id": "Practitioner.identifier:cyGeneralNursingRegister.system",
        "path": "Practitioner.identifier.system",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:cyGeneralNursingRegister.value",
        "path": "Practitioner.identifier.value",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:cyGeneralNursingRegister.assigner",
        "path": "Practitioner.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.active",
        "path": "Practitioner.active",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Practitioner.name",
        "path": "Practitioner.name",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Practitioner.name.use",
        "path": "Practitioner.name.use",
        "mustSupport": true
      },
      {
        "id": "Practitioner.name.family",
        "path": "Practitioner.name.family",
        "mustSupport": true
      },
      {
        "id": "Practitioner.name.given",
        "path": "Practitioner.name.given",
        "mustSupport": true
      },
      {
        "id": "Practitioner.telecom",
        "path": "Practitioner.telecom",
        "mustSupport": true
      },
      {
        "id": "Practitioner.telecom.system",
        "path": "Practitioner.telecom.system",
        "mustSupport": true
      },
      {
        "id": "Practitioner.telecom.value",
        "path": "Practitioner.telecom.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Practitioner.telecom.use",
        "path": "Practitioner.telecom.use",
        "mustSupport": true
      },
      {
        "id": "Practitioner.address",
        "path": "Practitioner.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Address",
              "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-address"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Practitioner.qualification.code",
        "path": "Practitioner.qualification.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.qualification.issuer",
        "path": "Practitioner.qualification.issuer",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Practitioner.communication",
        "path": "Practitioner.communication",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsilanguage"
        }
      }
    ]
  }
}