{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-08T09:19:14.39+00:00"
  },
  "url": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionCategory",
  "version": "1",
  "name": "PlanDefinitionCategory",
  "title": "Plan Definition Category",
  "status": "draft",
  "date": "2019-01-08",
  "publisher": "Philips",
  "description": "The category of the plan, e.g., Lifestyle education (313204009), Disease management (401173007), or Hypertension clinical management plan (412779008)",
  "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": "Category of a Plan Definition",
        "definition": "The category of the plan, e.g., Lifestyle education (313204009), Disease management (401173007), or Hypertension clinical management plan (412779008)",
        "min": 1,
        "base": {
          "path": "Element",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "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"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionCategory"
      },
      {
        "id": "Extension.value[x]:valueCodeableConcept",
        "path": "Extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  }
}