{
  "resourceType": "StructureDefinition",
  "id": "biobankcy-sd-researchsubject",
  "url": "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-researchsubject",
  "name": "BIOBANKCYSResearchSubject",
  "title": "Profile: Research Subject (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 a donor who participates to a particular research study.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ResearchSubject",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ResearchSubject",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ResearchSubject.contained",
        "path": "ResearchSubject.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": "ResearchSubject.identifier",
        "path": "ResearchSubject.identifier",
        "comment": "Not to be used for biobank.cy"
      },
      {
        "id": "ResearchSubject.status",
        "path": "ResearchSubject.status",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size\r\n\r\nbiobank.cy: Use the following status: on-study |  withdrawn",
        "mustSupport": true
      },
      {
        "id": "ResearchSubject.period",
        "path": "ResearchSubject.period",
        "mustSupport": true
      },
      {
        "id": "ResearchSubject.study",
        "path": "ResearchSubject.study",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ResearchStudy",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-researchstudy"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ResearchSubject.study.reference",
        "path": "ResearchSubject.study.reference",
        "min": 1
      },
      {
        "id": "ResearchSubject.individual",
        "path": "ResearchSubject.individual",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-donor"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ResearchSubject.individual.reference",
        "path": "ResearchSubject.individual.reference",
        "min": 1
      },
      {
        "id": "ResearchSubject.assignedArm",
        "path": "ResearchSubject.assignedArm",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size\r\n\r\nNot to be used for biobank.cy"
      },
      {
        "id": "ResearchSubject.actualArm",
        "path": "ResearchSubject.actualArm",
        "definition": "The name of the arm in the study the subject actually followed as part of this study.\r\n\r\nNot to be used for biobank.cy"
      },
      {
        "id": "ResearchSubject.consent",
        "path": "ResearchSubject.consent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Consent",
              "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-consent"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ResearchSubject.consent.reference",
        "path": "ResearchSubject.consent.reference",
        "min": 1
      }
    ]
  }
}