{
  "resourceType": "StructureDefinition",
  "id": "biobankcy-sd-practitionerrole",
  "url": "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-practitionerrole",
  "name": "BIOBANKCYSDPractitionerRole",
  "title": "Profile: Practitioner Role (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 all the roles with whcih a practitioner who provides services to the biobank.cy can access the biobank's Data Warehouse.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole",
        "path": "PractitionerRole",
        "comment": "BIOBANKCYSDPractitionerRole is used to present the role of a practitioner within the biobank.cy who is a allowed to access the Data Warehouse to provide certain services."
      },
      {
        "id": "PractitionerRole.language",
        "path": "PractitionerRole.language",
        "definition": "The base language in which the resource is written.\r\n\r\nbiobank.cy: As defined by eHDSI MVC.",
        "binding": {
          "strength": "required",
          "description": "A human language as defined by eHDSI",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsilanguage"
        }
      },
      {
        "id": "PractitionerRole.contained",
        "path": "PractitionerRole.contained",
        "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.\r\n\r\nNot to be used for biobank.cy."
      },
      {
        "id": "PractitionerRole.identifier",
        "path": "PractitionerRole.identifier",
        "comment": "Not to be used for biobank.cy",
        "mustSupport": false
      },
      {
        "id": "PractitionerRole.period",
        "path": "PractitionerRole.period",
        "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).\r\n\r\nNot to be used for biobank.cy"
      },
      {
        "id": "PractitionerRole.practitioner",
        "path": "PractitionerRole.practitioner",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-practitioner"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.practitioner.reference",
        "path": "PractitionerRole.practitioner.reference",
        "min": 1
      },
      {
        "id": "PractitionerRole.organization",
        "path": "PractitionerRole.organization",
        "comment": "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.\r\n\r\nbiobank.cy: All the practitioner roles using the biobank.cy Data Warehouse provide services as members of the biobank.cy organziation. Therefore, this element shall always reference to biobank.cy Organization resource.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-organization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization.reference",
        "path": "PractitionerRole.organization.reference",
        "min": 1
      },
      {
        "id": "PractitionerRole.code",
        "path": "PractitionerRole.code",
        "comment": "A practitioner of biobank.cy may have the following roles:\r\n(1) to descrbe the role of a researcher use the FHIR code \"researcher\"  & iscoCode = 325 Other health associate professionalsslice \r\n(2) to describe the role of a doctor use the iscoCode = 221 doctor \r\n(3) to describe the role of a nurse use the iscoCode = 222",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.code.coding",
        "path": "PractitionerRole.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "PractitionerRole.code.coding.system",
        "path": "PractitionerRole.code.coding.system",
        "min": 1
      },
      {
        "id": "PractitionerRole.code.coding.code",
        "path": "PractitionerRole.code.coding.code",
        "min": 1
      },
      {
        "id": "PractitionerRole.code.coding.display",
        "path": "PractitionerRole.code.coding.display",
        "min": 1
      },
      {
        "id": "PractitionerRole.code.coding:iscoCode",
        "path": "PractitionerRole.code.coding",
        "sliceName": "iscoCode",
        "short": "Code as defined by the eHDSIHealthcareProfessionalRole",
        "definition": "The code of the practitioner role as defined by the eHDSIHealthcareProfessionalRole value set which is published by the eHDSI and uses the International Standard Classification of Occupations as code system.",
        "max": "1",
        "patternCoding": {
          "system": "urn:oid:2.16.840.1.113883.2.9.6.2.7"
        },
        "binding": {
          "strength": "required",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsihealthcareprofessionalrole"
        }
      },
      {
        "id": "PractitionerRole.code.coding:iscoCode.system",
        "path": "PractitionerRole.code.coding.system",
        "min": 1
      },
      {
        "id": "PractitionerRole.code.coding:iscoCode.code",
        "path": "PractitionerRole.code.coding.code",
        "min": 1
      },
      {
        "id": "PractitionerRole.code.coding:iscoCode.display",
        "path": "PractitionerRole.code.coding.display",
        "min": 1
      },
      {
        "id": "PractitionerRole.specialty",
        "path": "PractitionerRole.specialty",
        "definition": "A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.",
        "comment": "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.\r\n\r\nbiobank.cy: Use it only in the case that the practitionerRole.code = doctor",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "PractitionerRole.specialty.coding.system",
        "path": "PractitionerRole.specialty.coding.system",
        "min": 1
      },
      {
        "id": "PractitionerRole.specialty.coding.code",
        "path": "PractitionerRole.specialty.coding.code",
        "min": 1
      },
      {
        "id": "PractitionerRole.specialty.coding.display",
        "path": "PractitionerRole.specialty.coding.display",
        "min": 1
      },
      {
        "id": "PractitionerRole.location",
        "path": "PractitionerRole.location",
        "comment": "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.\r\n\r\nbiobank.cy: Use the location to define the locations where the referenced Practitioner provides services as a member of the biobank.cy with this particular practitioner role.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-location"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.location.reference",
        "path": "PractitionerRole.location.reference",
        "min": 1
      },
      {
        "id": "PractitionerRole.healthcareService",
        "path": "PractitionerRole.healthcareService",
        "comment": "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.\r\n\r\nNot to be used for biobank.cy"
      },
      {
        "id": "PractitionerRole.telecom",
        "path": "PractitionerRole.telecom",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "PractitionerRole.telecom.system",
        "path": "PractitionerRole.telecom.system",
        "mustSupport": false
      },
      {
        "id": "PractitionerRole.telecom.value",
        "path": "PractitionerRole.telecom.value",
        "mustSupport": false
      },
      {
        "id": "PractitionerRole.telecom.use",
        "path": "PractitionerRole.telecom.use",
        "mustSupport": false
      },
      {
        "id": "PractitionerRole.availableTime",
        "path": "PractitionerRole.availableTime",
        "comment": "More detailed availability information may be provided in associated Schedule/Slot resources.\r\n\r\nNot to be used for biobank.cy"
      },
      {
        "id": "PractitionerRole.notAvailable",
        "path": "PractitionerRole.notAvailable",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "PractitionerRole.availabilityExceptions",
        "path": "PractitionerRole.availabilityExceptions",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size\r\n\r\nNot to be used for biobank.cy"
      },
      {
        "id": "PractitionerRole.endpoint",
        "path": "PractitionerRole.endpoint",
        "comment": "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.\r\n\r\nNot to be used for biobank.cy"
      }
    ]
  }
}