<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="f40437b2-781a-4f3e-a26d-b33498a8e98b" />
  <meta>
    <lastUpdated value="2019-01-10T15:08:09.857+00:00" />
  </meta>
  <url value="http://healthyme.philips.com/fhir/StructureDefinition/Task" />
  <version value="1" />
  <name value="Task" />
  <status value="draft" />
  <date value="2019-01-10T14:52:30.3850092+00:00" />
  <publisher value="Philips" />
  <description value="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 value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Task" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Task" />
  <derivation value="constraint" />
  <differential>
    <element id="Task">
      <path value="Task" />
      <definition value="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." />
    </element>
    <element id="Task.definition[x]:definitionReference">
      <path value="Task.definitionReference" />
      <sliceName value="definitionReference" />
      <definition value="The ActivityDefinition that describes this Task (if part of a care plan)" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
      </type>
    </element>
    <element id="Task.basedOn">
      <path value="Task.basedOn" />
      <definition value="The CarePlan that this task is part of (empty for self-assigned tasks)" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://healthyme.philips.com/fhir/StructureDefinition/CarePlan" />
      </type>
    </element>
    <element id="Task.status">
      <path value="Task.status" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TaskStatus" />
        </extension>
        <strength value="required" />
        <valueSetUri value="http://healthyme.philips.com/fhir/ValueSet/task-status" />
      </binding>
    </element>
    <element id="Task.description">
      <path value="Task.description" />
      <definition value="Human-readable explanation of task, copied from ActivityDefinition if part of a care plan, entered by the patient if self-assigned" />
      <min value="1" />
    </element>
    <element id="Task.executionPeriod">
      <path value="Task.executionPeriod" />
      <definition value="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 value="1" />
    </element>
  </differential>
</StructureDefinition>