{
  "resourceType": "StructureDefinition",
  "id": "9ea2ad10-76be-4fc9-b38f-05704c73f845",
  "meta": {
    "lastUpdated": "2019-01-08T15:38:23.41+00:00"
  },
  "url": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinition",
  "version": "1",
  "name": "PlanDefinition",
  "title": "Plan Definition",
  "status": "draft",
  "date": "2019-01-08T14:16:13.642073+00:00",
  "publisher": "Philips",
  "description": "The (reusable) definition of a care plan. Making this applicable to a Patient is done by creating a CarePlan resource.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PlanDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PlanDefinition",
        "path": "PlanDefinition",
        "short": "The (reusable) definition of a care plan. Making this applicable to a Patient is done by creating a CarePlan resource.",
        "definition": "This resource allows for the definition of a self-management care plan that can be delivered by the HealthyMe solution."
      },
      {
        "id": "PlanDefinition.extension",
        "path": "PlanDefinition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "PlanDefinition.extension:category",
        "path": "PlanDefinition.extension",
        "sliceName": "category",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionCategory"
          }
        ]
      },
      {
        "id": "PlanDefinition.extension:duration",
        "path": "PlanDefinition.extension",
        "sliceName": "duration",
        "short": "Duration of plan execution",
        "definition": "Duration of plan execution (e.g., 90 days, 2 years, …)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionDuration"
          }
        ]
      },
      {
        "id": "PlanDefinition.extension:price",
        "path": "PlanDefinition.extension",
        "sliceName": "price",
        "short": "The amount to be paid by the patient",
        "definition": "The amount to be paid by the patient (absent means free)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionPrice"
          }
        ]
      },
      {
        "id": "PlanDefinition.extension:rating",
        "path": "PlanDefinition.extension",
        "sliceName": "rating",
        "short": "Average rating in the reviews",
        "definition": "The average rating in the reviews (absent in case of no rated reviews)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionRating"
          }
        ]
      },
      {
        "id": "PlanDefinition.extension:review",
        "path": "PlanDefinition.extension",
        "sliceName": "review",
        "short": "Reviews for the care plan",
        "definition": "A list of reviews for the care plan each consisting of a rating (integer 1-5) and a string",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionReview"
          }
        ]
      },
      {
        "id": "PlanDefinition.extension:review.extension",
        "path": "PlanDefinition.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "PlanDefinition.extension:review.extension:rating",
        "path": "PlanDefinition.extension.extension",
        "sliceName": "rating",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Rating (1-5) for care plan",
        "definition": "A rating (an integer between 1 and 5) for the care plan",
        "max": "1"
      },
      {
        "id": "PlanDefinition.extension:review.extension:text",
        "path": "PlanDefinition.extension.extension",
        "sliceName": "text",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Text of the review",
        "definition": "Text of the review",
        "max": "1"
      },
      {
        "id": "PlanDefinition.extension:image",
        "path": "PlanDefinition.extension",
        "sliceName": "image",
        "short": "Image illustrating the care plan",
        "definition": "An image illustrating the care plan definition",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://healthyme.philips.com/fhir/StructureDefinition/PlanDefinitionImage"
          }
        ]
      },
      {
        "id": "PlanDefinition.title",
        "path": "PlanDefinition.title",
        "min": 1
      },
      {
        "id": "PlanDefinition.publisher",
        "path": "PlanDefinition.publisher",
        "short": "Organization that manages the care plans based on this definition",
        "definition": "The name of the individual or organization that manages the care plans based on this definition.",
        "min": 1
      },
      {
        "id": "PlanDefinition.description",
        "path": "PlanDefinition.description",
        "min": 1
      },
      {
        "id": "PlanDefinition.useContext",
        "path": "PlanDefinition.useContext",
        "short": "Criteria defining for whom this care plan is applicable",
        "definition": "This provides inclusion criteria based on gender, age, or clinical condition (code=focus). A clinical condition can be specified as an exclusion criterion by specifying code 77765009 (Exclude) from system http://snomed.info/sct."
      },
      {
        "id": "PlanDefinition.useContext.code",
        "path": "PlanDefinition.useContext.code",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "UsageContextType"
            }
          ],
          "strength": "required",
          "valueSetUri": "http://healthyme.philips.com/fhir/ValueSet/CarePlan-UseContext"
        }
      },
      {
        "id": "PlanDefinition.relatedArtifact",
        "path": "PlanDefinition.relatedArtifact",
        "short": "Consent policy to enroll",
        "definition": "A Consent Policy describing the consent needed in order to enrol in a care plan. Any associated Care Plan can only become active after the patient has expressed (active) Consent towards the associated Consent Policy",
        "max": "1",
        "type": [
          {
            "code": "RelatedArtifact",
            "profile": "http://healthyme.philips.com/fhir/StructureDefinition/ConsentPolicy"
          }
        ]
      },
      {
        "id": "PlanDefinition.action.definition",
        "path": "PlanDefinition.action.definition",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
          }
        ]
      }
    ]
  }
}