{
  "resourceType": "StructureDefinition",
  "url": "https://anagrafe.ssr.toscana.it/fhir/StructureDefinition/Attachment-WithSupportForInlineData",
  "name": "Attachment_WithSupportForInlineData",
  "title": "Attachment-WithSupportForInlineData",
  "status": "active",
  "experimental": false,
  "date": "2021-10-21",
  "description": "Represent an attachment that can point either to a documentReferenceMasterIdentifier or to a small amount of inline data.\r\nThe .data element and the documentReferenceMasterIdentifier extension are mutually exclusive.\r\nBy default maximum allowed size of the .data element is 100KB (but depends on FHIR repository implementation).",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Attachment",
  "baseDefinition": "https://anagrafe.ssr.toscana.it/fhir/StructureDefinition/Attachment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Attachment.data",
        "path": "Attachment.data",
        "definition": "The actual data of the attachment - a sequence of bytes. In XML, represented using base64.\r\nBy default maximum allowed size of the .data element is 100KB (but depends on FHIR repository implementation).",
        "mustSupport": true
      },
      {
        "id": "Attachment.url",
        "path": "Attachment.url",
        "max": "0"
      },
      {
        "id": "Attachment.title",
        "path": "Attachment.title",
        "mustSupport": true
      },
      {
        "id": "Attachment.creation",
        "path": "Attachment.creation",
        "mustSupport": true
      }
    ]
  }
}