{
  "resourceType": "StructureDefinition",
  "id": "MyAttachmentmcdtresultssync",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-08-07T14:43:32.461+00:00"
  },
  "url": "https://spms.min-saude.pt/fhir/StructureDefinition/MyAttachment_mcdt_results_sync",
  "name": "MyAttachment_mcdt_results_sync",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Attachment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Attachment",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Attachment",
        "path": "Attachment",
        "short": "Content in a format defined elsewhere",
        "definition": "For referring to data content defined in other formats.",
        "comment": "When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as \"Attachment\".",
        "min": 0,
        "max": "*",
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div"
          },
          {
            "key": "att-1",
            "severity": "error",
            "human": "It the Attachment has data, it SHALL have a contentType",
            "expression": "data.empty() or contentType.exists()",
            "xpath": "not(exists(f:data)) or exists(f:contentType)"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "ED/RP"
          },
          {
            "identity": "rim",
            "map": "ED"
          }
        ]
      },
      {
        "id": "Attachment.contentType",
        "path": "Attachment.contentType",
        "min": 1
      },
      {
        "id": "Attachment.language",
        "path": "Attachment.language",
        "min": 1
      },
      {
        "id": "Attachment.data",
        "path": "Attachment.data",
        "min": 1
      },
      {
        "id": "Attachment.title",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Attachment.title",
        "min": 1
      }
    ]
  }
}