<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://anagrafe.ssr.toscana.it/fhir/StructureDefinition/Attachment" />
  <name value="Attachment" />
  <title value="Attachment" />
  <status value="active" />
  <experimental value="false" />
  <description value="Dedalus MPI profile for Attachment" />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Attachment" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Attachment" />
  <derivation value="constraint" />
  <differential>
    <element id="Attachment.extension:extensionAttachmentDocumentReferenceMasterIdentifier">
      <path value="Attachment.extension" />
      <sliceName value="extensionAttachmentDocumentReferenceMasterIdentifier" />
      <type>
        <code value="Extension" />
        <profile value="https://anagrafe.ssr.toscana.it/fhir/StructureDefinition/extension-attachment-documentReferenceMasterIdentifier" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Attachment.extension:documentReferenceContentFormat">
      <path value="Attachment.extension" />
      <sliceName value="documentReferenceContentFormat" />
      <requirements value="Allows to provide information about the content format of the target document. This information is actually a redundancy of DocumentReference.content.format, it is copied also on the attachment resource to allow consumers to know the document format code without retrieving the DocumentReference instance." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://anagrafe.ssr.toscana.it/fhir/StructureDefinition/extension-attachment-documentReferenceContentFormat" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Attachment.extension:relatedTo">
      <path value="Attachment.extension" />
      <sliceName value="relatedTo" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://anagrafe.ssr.toscana.it/fhir/StructureDefinition/extension-attachment-relatedTo" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Attachment.extension:thumbnail">
      <path value="Attachment.extension" />
      <sliceName value="thumbnail" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://anagrafe.ssr.toscana.it/fhir/StructureDefinition/extension-attachment-thumbnail" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Attachment.contentType">
      <path value="Attachment.contentType" />
      <mustSupport value="true" />
    </element>
    <element id="Attachment.size">
      <path value="Attachment.size" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>