<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2017-12-20T14:29:24.88+01:00" />
  </meta>
  <url value="http://clinicalsite.org/fhir/StructureDefinition/researchsubject-status-history" />
  <name value="researchsubject-status-history" />
  <status value="draft" />
  <date value="2017-12-12T17:15:27.643+01:00" />
  <description value="history of research subject status" />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="ResearchSubject" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="prescreening status" />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:status">
      <path value="Extension.extension" />
      <sliceName value="status" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:status.url">
      <path value="Extension.extension.url" />
      <fixedUri value="status" />
    </element>
    <element id="Extension.extension:status.value[x]:valueCode">
      <path value="Extension.extension.valueCode" />
      <sliceName value="valueCode" />
      <min value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <strength value="required" />
        <valueSetUri value="http://clinicalsite.org/fhir/ValueSet/research-subject-status" />
      </binding>
    </element>
    <element id="Extension.extension:period">
      <path value="Extension.extension" />
      <sliceName value="period" />
      <label value="period" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:period.url">
      <path value="Extension.extension.url" />
      <fixedUri value="period" />
    </element>
    <element id="Extension.extension:period.value[x]:valuePeriod">
      <path value="Extension.extension.valuePeriod" />
      <sliceName value="valuePeriod" />
      <min value="1" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="Extension.extension:period.value[x]:valuePeriod.start">
      <path value="Extension.extension.valuePeriod.start" />
      <min value="1" />
    </element>
    <element id="Extension.extension:comment">
      <path value="Extension.extension" />
      <sliceName value="comment" />
      <max value="1" />
    </element>
    <element id="Extension.extension:comment.extension">
      <path value="Extension.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:comment.extension:elem">
      <path value="Extension.extension.extension" />
      <sliceName value="elem" />
    </element>
    <element id="Extension.extension:comment.url">
      <path value="Extension.extension.url" />
      <fixedUri value="comment" />
    </element>
    <element id="Extension.extension:comment.value[x]">
      <path value="Extension.extension.value[x]" />
      <max value="0" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://clinicalsite.org/fhir/StructureDefinition/researchsubject-status-history" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
      <type>
        <code value="base64Binary" />
      </type>
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="date" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="decimal" />
      </type>
      <type>
        <code value="id" />
      </type>
      <type>
        <code value="instant" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="markdown" />
      </type>
      <type>
        <code value="oid" />
      </type>
      <type>
        <code value="positiveInt" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="time" />
      </type>
      <type>
        <code value="unsignedInt" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="Address" />
      </type>
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="Annotation" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="ContactPoint" />
      </type>
      <type>
        <code value="Count" />
      </type>
      <type>
        <code value="Distance" />
      </type>
      <type>
        <code value="Duration" />
      </type>
      <type>
        <code value="HumanName" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="Money" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Ratio" />
      </type>
      <type>
        <code value="Reference" />
      </type>
      <type>
        <code value="SampledData" />
      </type>
      <type>
        <code value="Signature" />
      </type>
      <type>
        <code value="Timing" />
      </type>
    </element>
  </differential>
</StructureDefinition>