<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://purl.org/elab/fhir/StructureDefinition/DataSource" />
  <name value="DataSource" />
  <status value="draft" />
  <date value="2017-06-13T10:15:31.025801+01:00" />
  <description value="Details of the data source." />
  <fhirVersion value="3.0.0" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Attachment" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Attachment" />
  <derivation value="constraint" />
  <differential>
    <element>
      <path value="Attachment.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Attachment.extension:dataSourceDescription">
      <path value="Attachment.extension" />
      <sliceName value="dataSourceDescription" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Attachment" />
        <profile value="https://purl.org/elab/fhir/StructureDefinition/DataSourceDescription" />
      </type>
    </element>
    <element id="Attachment.extension:custodian">
      <path value="Attachment.extension" />
      <sliceName value="custodian" />
      <short value="Custodian" />
      <definition value="Data custodian, can have differing roles depending on custodian role." />
      <min value="1" />
      <type>
        <code value="Attachment" />
        <profile value="https://purl.org/elab/fhir/StructureDefinition/Custodian" />
      </type>
    </element>
    <element id="Attachment.extension:dataSourceType">
      <path value="Attachment.extension" />
      <sliceName value="dataSourceType" />
      <short value="Data Source Type" />
      <definition value="The type of data source, a code from a ValueSet." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Attachment" />
        <profile value="https://purl.org/elab/fhir/StructureDefinition/DataSourceType" />
      </type>
    </element>
    <element id="Basic.extension:dataCollection">
      <path value="Basic.extension" />
      <sliceName value="dataCollection" />
      <short value="Data Collection" />
      <definition value="Holds information about the individual data collections in a sweep" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://purl.org/elab/fhir/StructureDefinition/DataCollectionRef" />
      </type>
    </element>
    <element id="Attachment.contentType">
      <path value="Attachment.contentType" />
      <min value="1" />
    </element>
    <element id="Attachment.url">
      <path value="Attachment.url" />
      <min value="1" />
    </element>
    <element id="Attachment.title">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Attachment.title" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>