{
  "resourceType": "StructureDefinition",
  "id": "f40437b2-781a-4f3e-a26d-b33498a8e98b",
  "meta": {
    "lastUpdated": "2019-01-10T15:08:09.857+00:00"
  },
  "url": "http://healthyme.philips.com/fhir/StructureDefinition/Task",
  "version": "1",
  "name": "Task",
  "status": "draft",
  "date": "2019-01-10T14:52:30.3850092+00:00",
  "publisher": "Philips",
  "description": "This describes an activity that can be performed and tracks the state of completion of that activity. In our case, each task is part of a care plan or it is self-assigned by the patient. We create a task object not earlier than when the task is ready to be performed by the patient.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task",
        "path": "Task",
        "definition": "This describes an activity that can be performed and tracks the state of completion of that activity. In our case, each task is part of a care plan or it is self-assigned by the patient. We create a task object not earlier than when the task is ready to be performed by the patient."
      },
      {
        "id": "Task.definition[x]:definitionReference",
        "path": "Task.definitionReference",
        "sliceName": "definitionReference",
        "definition": "The ActivityDefinition that describes this Task (if part of a care plan)",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"
          }
        ]
      },
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "definition": "The CarePlan that this task is part of (empty for self-assigned tasks)",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://healthyme.philips.com/fhir/StructureDefinition/CarePlan"
          }
        ]
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "TaskStatus"
            }
          ],
          "strength": "required",
          "valueSetUri": "http://healthyme.philips.com/fhir/ValueSet/task-status"
        }
      },
      {
        "id": "Task.description",
        "path": "Task.description",
        "definition": "Human-readable explanation of task, copied from ActivityDefinition if part of a care plan, entered by the patient if self-assigned",
        "min": 1
      },
      {
        "id": "Task.executionPeriod",
        "path": "Task.executionPeriod",
        "definition": "For ready or cancelled tasks: the period when the task should be/have been done; for completed tasks: both the start and the end of the Period indicate the time when the task was done.",
        "min": 1
      }
    ]
  }
}