<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="zd-attachment-document" />
  <url value="http://zorgdomein.nl/fhir/StructureDefinition/zd-attachment-document" />
  <version value="1" />
  <name value="ZD Attachment Document" />
  <status value="draft" />
  <date value="2017-04-26" />
  <publisher value="ZorgDomein" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://zorgdomein.nl" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="io@zorgdomein.nl" />
    </telecom>
  </contact>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Composition" />
  <baseDefinition value="http://zorgdomein.nl/fhir/StructureDefinition/zd-document" />
  <derivation value="constraint" />
  <differential>
    <element id="Composition">
      <path value="Composition" />
      <short value="This document contains one or more attachments" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.extension:pdfDocument">
      <path value="Composition.extension" />
      <sliceName value="pdfDocument" />
      <max value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://zorgdomein.nl/fhir/StructureDefinition/zd-pdfDocument" />
      </type>
    </element>
    <element id="Composition.extension:zd-documentreferenceReference">
      <path value="Composition.extension" />
      <sliceName value="zd-documentreferenceReference" />
      <short value="Reference to an attachment" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://zorgdomein.nl/fhir/StructureDefinition/zd-documentreferenceReference" />
      </type>
    </element>
  </differential>
</StructureDefinition>