{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Attachment-ForPrintableLabel",
  "name": "Attachment-ForPrintableLabel",
  "title": "Attachment-ForLabel",
  "status": "active",
  "experimental": false,
  "description": "Attachment dedicated to manage printable labels representing resource instances and readable by a device (e.g. barcode scanners)",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Attachment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Attachment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Attachment.contentType",
        "path": "Attachment.contentType",
        "min": 1,
        "constraint": [
          {
            "key": "type-1",
            "severity": "error",
            "human": "Content type must be among the supported ones",
            "expression": "in('application/pdf', 'application/x.hl725zet', 'application/x.hl725zlt', 'application/x.zpl')"
          }
        ]
      },
      {
        "id": "Attachment.data",
        "path": "Attachment.data",
        "definition": "The actual data of the attachment - a sequence of bytes. Depending on the contentType, the data shall be:\r\n - \"application/pdf\" --> data contains the PDF bytestream\r\n - \"application/x.zpl\" --> data contains a Zebra ZPL conformant string\r\n - \"application/x.hl725zet\" or \"application/x.hl725zlt\" --> data contains ZLT or ZET proprietary HL7 v2 extended Dedalus Format",
        "min": 1
      }
    ]
  }
}