{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Attachment",
  "name": "Attachment",
  "title": "API Framework Attachment",
  "status": "active",
  "experimental": false,
  "description": "Core API Framework Profile for Attachment",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Attachment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Attachment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Attachment.extension",
        "path": "Attachment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Attachment.extension:documentReferenceMasterIdentifier",
        "path": "Attachment.extension",
        "sliceName": "documentReferenceMasterIdentifier",
        "requirements": "Allows to provide a unique identifier representing a logical connection to a DocumentReference.MasterIdentifier element. Consumers of the attachment can use this identifier to retrieve the related DocumentReference instance or the document bytestream.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-attachment-documentReferenceMasterIdentifier"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Attachment.extension:documentReferenceMasterIdentifier.valueIdentifier:valueIdentifier",
        "path": "Attachment.extension.valueIdentifier",
        "sliceName": "valueIdentifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Attachment.extension:documentReferenceMasterIdentifier.valueIdentifier:valueIdentifier.system",
        "path": "Attachment.extension.valueIdentifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Attachment.extension:documentReferenceMasterIdentifier.valueIdentifier:valueIdentifier.value",
        "path": "Attachment.extension.valueIdentifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Attachment.extension:documentReferenceContentFormat",
        "path": "Attachment.extension",
        "sliceName": "documentReferenceContentFormat",
        "requirements": "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": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-attachment-documentReferenceContentFormat"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Attachment.extension:relatedTo",
        "path": "Attachment.extension",
        "sliceName": "relatedTo",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-attachment-relatedTo"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Attachment.extension:thumbnail",
        "path": "Attachment.extension",
        "sliceName": "thumbnail",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-attachment-thumbnail"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Attachment.contentType",
        "path": "Attachment.contentType",
        "mustSupport": true
      },
      {
        "id": "Attachment.size",
        "path": "Attachment.size",
        "mustSupport": true
      }
    ]
  }
}