<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="biobankcy-sd-researchsubject" />
  <url value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-researchsubject" />
  <name value="BIOBANKCYSResearchSubject" />
  <title value="Profile: Research Subject (biobank.cy)" />
  <status value="draft" />
  <publisher value="biobank.cy" />
  <contact>
    <name value="Molecular Medicine Research Center (MMRC)" />
    <telecom>
      <system value="email" />
      <value value="biobank@ucy.ac.cy" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Represents a donor who participates to a particular research study." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="ResearchSubject" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ResearchSubject" />
  <derivation value="constraint" />
  <differential>
    <element id="ResearchSubject.contained">
      <path value="ResearchSubject.contained" />
      <comment value="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.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="ResearchSubject.identifier">
      <path value="ResearchSubject.identifier" />
      <comment value="Not to be used for biobank.cy" />
    </element>
    <element id="ResearchSubject.status">
      <path value="ResearchSubject.status" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;biobank.cy: Use the following status: on-study |  withdrawn" />
      <mustSupport value="true" />
    </element>
    <element id="ResearchSubject.period">
      <path value="ResearchSubject.period" />
      <mustSupport value="true" />
    </element>
    <element id="ResearchSubject.study">
      <path value="ResearchSubject.study" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ResearchStudy" />
        <targetProfile value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-researchstudy" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ResearchSubject.study.reference">
      <path value="ResearchSubject.study.reference" />
      <min value="1" />
    </element>
    <element id="ResearchSubject.individual">
      <path value="ResearchSubject.individual" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-donor" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ResearchSubject.individual.reference">
      <path value="ResearchSubject.individual.reference" />
      <min value="1" />
    </element>
    <element id="ResearchSubject.assignedArm">
      <path value="ResearchSubject.assignedArm" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="ResearchSubject.actualArm">
      <path value="ResearchSubject.actualArm" />
      <definition value="The name of the arm in the study the subject actually followed as part of this study.&#xD;&#xA;&#xD;&#xA;Not to be used for biobank.cy" />
    </element>
    <element id="ResearchSubject.consent">
      <path value="ResearchSubject.consent" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Consent" />
        <targetProfile value="http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-consent" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ResearchSubject.consent.reference">
      <path value="ResearchSubject.consent.reference" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>