<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pt-lm-Task" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
  </text>
  <url value="http://medmij.nl/fhir/StructureDefinition/pt-lm-Task" />
  <name value="LmTask" />
  <title value="Task" />
  <status value="active" />
  <publisher value="MedMij" />
  <contact>
    <name value="MedMij" />
    <telecom>
      <system value="email" />
      <value value="info@medmij.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Patient-specific workflow item that requests execution of a defined digital (eHealth) activity. Each Task represents an instance of “perform this activity for this patient”, optionally linking to an ActivityDefinition that describes the launchable activity." />
  <purpose value="To represent and manage a concrete patient-specific request to perform a digital (eHealth) activity. The Task supports assignment, handover, and status tracking between systems and roles, so that initiation and completion of the activity can be monitored within the care process. The Task can be used in both MedMij and Koppeltaal implementations (client applications such as a PGO are one possible presentation layer)." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <kind value="logical" />
  <abstract value="true" />
  <type value="http://medmij.nl/fhir/StructureDefinition/pt-lm-Task" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <differential>
    <element id="pt-lm-Task">
      <path value="pt-lm-Task" />
      <short value="Task" />
      <definition value="Patient-specific workflow item that requests execution of a defined digital (eHealth) activity. Each Task represents an instance of “perform this activity for this patient”, optionally linking to an ActivityDefinition that describes the launchable activity." />
      <alias value="Taken" />
    </element>
    <element id="pt-lm-Task.Instantiates">
      <path value="pt-lm-Task.Instantiates" />
      <short value="Instantiates ActivityDefinition" />
      <definition value="A link to the ActivityDefinition that defines the launchable eHealth activity (i.e., what module/content should be launched or performed) associated with this Task. In both MedMij and Koppeltaal implementations, this link is carried using the Koppeltaal instantiates extension." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="pt-lm-Task.Instantiates.ActivityDefinition">
      <path value="pt-lm-Task.Instantiates.ActivityDefinition" />
      <short value="Reference to the ActivityDefinition that describes the activity to launch/perform." />
      <definition value="Reference to the ActivityDefinition that describes the activity to launch/perform." />
      <alias value="ActivityDefinition" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
      </type>
    </element>
    <element id="pt-lm-Task.Identifier">
      <path value="pt-lm-Task.Identifier" />
      <short value="Business identifier that uniquely identifies this Task instance within or across systems." />
      <definition value="Business identifier that uniquely identifies this Task instance within or across systems." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
    </element>
    <element id="pt-lm-Task.GroupIdentifier">
      <path value="pt-lm-Task.GroupIdentifier" />
      <short value="Identifier used to group related tasks (e.g., tasks belonging to the same digital care module/program)." />
      <definition value="Identifier used to group related tasks (e.g., tasks belonging to the same digital care module/program)." />
      <alias value="GroepIdentifier" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
    </element>
    <element id="pt-lm-Task.BasedOn">
      <path value="pt-lm-Task.BasedOn" />
      <short value="Order(s) on which this Task is based. Typically a ServiceRequest represents the clinical order that triggered this patient-facing activity, and it may also carry patient-specific instructions for the activity (e.g., via ServiceRequest.patientInstruction)." />
      <definition value="Order(s) on which this Task is based. Typically a ServiceRequest represents the clinical order that triggered this patient-facing activity, and it may also carry patient-specific instructions for the activity (e.g., via ServiceRequest.patientInstruction)." />
      <alias value="GebaseerdOp" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
      </type>
    </element>
    <element id="pt-lm-Task.PartOf">
      <path value="pt-lm-Task.PartOf" />
      <short value="Parent task of which this task is a part. Used to link subtasks (e.g., individual measurement moments) to a main task." />
      <definition value="Parent task of which this task is a part. Used to link subtasks (e.g., individual measurement moments) to a main task." />
      <alias value="SubTaak" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Task" />
      </type>
    </element>
    <element id="pt-lm-Task.Status">
      <path value="pt-lm-Task.Status" />
      <short value="Current state of the Task in the workflow (e.g., requested, received, accepted, in-progress, completed, cancelled)." />
      <definition value="Current state of the Task in the workflow (e.g., requested, received, accepted, in-progress, completed, cancelled)." />
      <alias value="TaakStatus" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="pt-lm-Task.Intent">
      <path value="pt-lm-Task.Intent" />
      <short value="Indicates whether the Task is a proposal, plan, or order. For patient-facing activities this will typically be an order." />
      <definition value="Indicates whether the Task is a proposal, plan, or order. For patient-facing activities this will typically be an order." />
      <alias value="Bedoeling" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="pt-lm-Task.Priority">
      <path value="pt-lm-Task.Priority" />
      <short value="Indicates how urgent it is to perform the activity (e.g., routine, urgent, asap)." />
      <definition value="Indicates how urgent it is to perform the activity (e.g., routine, urgent, asap)." />
      <alias value="TaakPrioriteit" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="pt-lm-Task.Description">
      <path value="pt-lm-Task.Description" />
      <short value="Short, human-readable description of what should be done. Keep the text concise and readable on mobile applications." />
      <definition value="Short, human-readable description of what should be done. Keep the text concise and readable on mobile applications." />
      <alias value="TaakOmschrijving" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="pt-lm-Task.For">
      <path value="pt-lm-Task.For" />
      <short value="The patient for whom the Task is intended." />
      <definition value="The patient for whom the Task is intended." />
      <alias value="Voor" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="pt-lm-Task.ExecutionPeriod">
      <path value="pt-lm-Task.ExecutionPeriod" />
      <short value="Time window in which the Task is expected or allowed to be performed (start/end)." />
      <definition value="Time window in which the Task is expected or allowed to be performed (start/end)." />
      <alias value="Periode" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="pt-lm-Task.AuthoredOn">
      <path value="pt-lm-Task.AuthoredOn" />
      <short value="Date and time when the Task was created." />
      <definition value="Date and time when the Task was created." />
      <alias value="AanmaakDatumTijd" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="pt-lm-Task.LastModified">
      <path value="pt-lm-Task.LastModified" />
      <short value="Date and time when the Task was last updated (e.g., after status change, edits, or reassignment)." />
      <definition value="Date and time when the Task was last updated (e.g., after status change, edits, or reassignment)." />
      <alias value="LaatstGewijzigd" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="pt-lm-Task.Requester">
      <path value="pt-lm-Task.Requester" />
      <short value="The person or role who requested or initiated this Task." />
      <definition value="The person or role who requested or initiated this Task." />
      <alias value="Aanvrager" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
    </element>
    <element id="pt-lm-Task.Owner">
      <path value="pt-lm-Task.Owner" />
      <short value="The actor currently responsible for performing the Task" />
      <definition value="The actor currently responsible for performing the Task" />
      <alias value="TaakEigenaar" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="pt-lm-Task.Restriction">
      <path value="pt-lm-Task.Restriction" />
      <short value="Constraints on performing this Task, such as how many times it may be executed, within which period, and by which intended performers." />
      <definition value="Constraints on performing this Task, such as how many times it may be executed, within which period, and by which intended performers." />
      <alias value="Frequentie" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="pt-lm-Task.Restriction.Repetitions">
      <path value="pt-lm-Task.Restriction.Repetitions" />
      <short value="How many times to repeat" />
      <definition value="How many times to repeat" />
      <alias value="Herhaling" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="positiveInt" />
      </type>
    </element>
    <element id="pt-lm-Task.Restriction.Period">
      <path value="pt-lm-Task.Restriction.Period" />
      <short value="Time window during which this Task restriction applies. For example the period in which the task may be performed." />
      <definition value="Time window during which this Task restriction applies. For example the period in which the task may be performed." />
      <alias value="GeldigBinnen" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
    </element>
  </differential>
</StructureDefinition>