{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-08T13:22:23.967+00:00"
  },
  "url": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionImage",
  "version": "1",
  "name": "PlanDefinitionImage",
  "title": "Plan Definition Image",
  "status": "draft",
  "date": "2019-01-08",
  "publisher": "Philips",
  "description": "An image illustrating the care plan definition",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "PlanDefinition"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Image illustrating the care plan",
        "definition": "An image illustrating the care plan definition",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionImage"
      },
      {
        "id": "Extension.value[x]:valueAttachment",
        "path": "Extension.valueAttachment",
        "sliceName": "valueAttachment",
        "type": [
          {
            "code": "Attachment"
          }
        ]
      }
    ]
  }
}