{
  "resourceType": "StructureDefinition",
  "id": "ed1c4e77-ecaf-49d8-970e-4d8640d686b3",
  "meta": {
    "lastUpdated": "2019-03-12T19:02:58.1136823+00:00"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/Attachment",
  "name": "Attachment",
  "status": "draft",
  "date": "2019-03-12T19:02:57.9188615+00:00",
  "description": "Extension 'data-subtype' is added to attachment datatype which used in Observation and ObservationMicrobiology profiles",
  "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:data-subtype",
        "path": "Attachment.extension",
        "sliceName": "data-subtype",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-subtype"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Attachment.extension:data-subtype.id",
        "path": "Attachment.extension.id",
        "mustSupport": false
      },
      {
        "id": "Attachment.extension:data-subtype.value[x]:valueCoding",
        "path": "Attachment.extension.valueCoding",
        "sliceName": "valueCoding",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mustSupport": false
      },
      {
        "id": "Attachment.contentType",
        "path": "Attachment.contentType",
        "mustSupport": true
      },
      {
        "id": "Attachment.data",
        "path": "Attachment.data",
        "mustSupport": true
      }
    ]
  }
}