<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-research-ResearchSubject" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR ResearchSubject Profile</b>
      </p>
      <p>Record of a subject's enrollment and participation in a research study.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.research.ResearchSubject maps to ResearchSubject:
  Patient maps to individual
  Study maps to study
  Status maps to status
  ParticipationPeriod maps to period
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-research-ResearchSubject" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.research.ResearchSubject" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR ResearchSubject Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="Record of a subject's enrollment and participation in a research study." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="ResearchSubject" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ResearchSubject" />
  <derivation value="constraint" />
  <differential>
    <element id="ResearchSubject:shr-research-ResearchSubject">
      <path value="ResearchSubject" />
      <short value="SHR ResearchSubject Profile" />
      <definition value="Record of a subject's enrollment and participation in a research study." />
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.extension:patient">
      <path value="ResearchSubject.extension" />
      <sliceName value="patient" />
      <definition value="A person in the role of a patient, including extended demographic information about the subject of this health record." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient-extension" />
      </type>
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.extension:relatedencounter">
      <path value="ResearchSubject.extension" />
      <sliceName value="relatedencounter" />
      <definition value="If content was generated during a patient encounter, related encounter is the encounter where the information was gained." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension" />
      </type>
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.extension:author">
      <path value="ResearchSubject.extension" />
      <sliceName value="author" />
      <definition value="The person or organization who created the entry and is responsible for (and may certify) the content." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension" />
      </type>
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.extension:informant">
      <path value="ResearchSubject.extension" />
      <sliceName value="informant" />
      <definition value="The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension" />
      </type>
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.extension:type">
      <path value="ResearchSubject.extension" />
      <sliceName value="type" />
      <definition value="The most specific code (lowest level term) describing the kind or sort of thing being represented." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Type-extension" />
      </type>
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.extension:terminationreason">
      <path value="ResearchSubject.extension" />
      <sliceName value="terminationreason" />
      <definition value="A description and/or code explaining the premature termination of the study." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-research-TerminationReason-extension" />
      </type>
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.extension:terminationreason.valueCodeableConcept">
      <path value="ResearchSubject.extension.valueCodeableConcept" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/research/vs/ResearchSubjectTerminationReasonVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.period">
      <path value="ResearchSubject.period" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.study">
      <path value="ResearchSubject.study" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-research-Study" />
      </type>
    </element>
    <element id="ResearchSubject:shr-research-ResearchSubject.individual">
      <path value="ResearchSubject.individual" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient" />
      </type>
    </element>
  </differential>
</StructureDefinition>