<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://apiframework.dedalus.eu/fhir/StructureDefinition/Attachment-ForPrintableLabel" />
  <name value="Attachment-ForPrintableLabel" />
  <title value="Attachment-ForLabel" />
  <status value="active" />
  <experimental value="false" />
  <description value="Attachment dedicated to manage printable labels representing resource instances and readable by a device (e.g. barcode scanners)" />
  <fhirVersion value="3.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.contentType">
      <path value="Attachment.contentType" />
      <min value="1" />
      <constraint>
        <key value="type-1" />
        <severity value="error" />
        <human value="Content type must be among the supported ones" />
        <expression value="in('application/pdf', 'application/x.hl725zet', 'application/x.hl725zlt', 'application/x.zpl')" />
      </constraint>
    </element>
    <element id="Attachment.data">
      <path value="Attachment.data" />
      <definition value="The actual data of the attachment - a sequence of bytes. Depending on the contentType, the data shall be:&#xD;&#xA; - &quot;application/pdf&quot; --&gt; data contains the PDF bytestream&#xD;&#xA; - &quot;application/x.zpl&quot; --&gt; data contains a Zebra ZPL conformant string&#xD;&#xA; - &quot;application/x.hl725zet&quot; or &quot;application/x.hl725zlt&quot; --&gt; data contains ZLT or ZET proprietary HL7 v2 extended Dedalus Format" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>