{
  "resourceType": "StructureDefinition",
  "id": "AttachmentMERT",
  "url": "https://intrahealth.com/fhir/mert/StructureDefinition/AttachmentMERT",
  "name": "AttachmentMERT",
  "title": "Attachment (MERT)",
  "status": "draft",
  "description": "This profile describes the Attachment constraints for MERT needed to help support DocumentReference (MERT) resource.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Attachment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Attachment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Attachment",
        "path": "Attachment",
        "constraint": [
          {
            "key": "AttachmentHasUrlOrData",
            "severity": "error",
            "human": "Attachment SHALL have either a url or data.",
            "expression": "url.exists() or data.exists()",
            "source": "https://intrahealth.com/fhir/mert/StructureDefinition/AttachmentMERT"
          }
        ]
      },
      {
        "id": "Attachment.contentType",
        "path": "Attachment.contentType",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Attachment.data",
        "path": "Attachment.data",
        "mustSupport": true
      },
      {
        "id": "Attachment.url",
        "path": "Attachment.url",
        "mustSupport": true
      },
      {
        "id": "Attachment.title",
        "path": "Attachment.title",
        "mustSupport": true
      }
    ]
  }
}