<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 task that tells a patient what to do as part of a digital care activity. A Task is shown in the patient’s task list and supports tracking progress and completion over time." />
  <purpose value="To represent a patient-facing task for a digital activity, so the patient can see what is expected, when it should be done, and whether it is open or completed. A Task can represent either a main task or a subtask within the same activity." />
  <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" />
  <mapping>
    <identity value="pt-dataset-100-alpha1-20260511" />
    <name value="Dataset Aanbiedertaken MedMij 1.0.0-alpha.1 20260511" />
  </mapping>
  <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 task that tells a patient what to do as part of a digital care activity. A Task is shown in the patient’s task list and supports tracking progress and completion over time." />
      <alias value="Taak" />
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-1" />
        <comment value="Task" />
      </mapping>
    </element>
    <element id="pt-lm-Task.ActivityDefinition">
      <path value="pt-lm-Task.ActivityDefinition" />
      <short value="Reference to the digital activity definition associated with this task." />
      <definition value="Reference to the digital activity definition associated with this task." />
      <alias value="DigitaleActiviteit" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/pt-lm-Activity" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-2" />
        <comment value="ActivityDefinition" />
      </mapping>
    </element>
    <element id="pt-lm-Task.BasedOn">
      <path value="pt-lm-Task.BasedOn" />
      <short value="Clinical order that triggered this patient task. May include patient-specific instructions and the requested schedule." />
      <definition value="Clinical order that triggered this patient task. May include patient-specific instructions and the requested schedule." />
      <alias value="GebaseerdOp" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/pt-lm-ServiceRequest" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-3" />
        <comment value="BasedOn" />
      </mapping>
    </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="Status" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-4" />
        <comment value="Status" />
      </mapping>
    </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="Prioriteit" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-5" />
        <comment value="Priority" />
      </mapping>
    </element>
    <element id="pt-lm-Task.Description">
      <path value="pt-lm-Task.Description" />
      <short value="Short instruction for the patient describing what to do. Keep the text concise and readable on mobile." />
      <definition value="Short instruction for the patient describing what to do. Keep the text concise and readable on mobile." />
      <alias value="Omschrijving" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-6" />
        <comment value="Description" />
      </mapping>
    </element>
    <element id="pt-lm-Task.ExecutionPeriod">
      <path value="pt-lm-Task.ExecutionPeriod" />
      <short value="Time window in which the task should be performed (start/end), if applicable." />
      <definition value="Time window in which the task should be performed (start/end), if applicable." />
      <alias value="Periode" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-7" />
        <comment value="ExecutionPeriod" />
      </mapping>
    </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://medmij.nl/fhir/StructureDefinition/medmij-core-lm-HealthProfessional" />
      </type>
      <mapping>
        <identity value="pt-dataset-100-alpha1-20260511" />
        <map value="pt-dataelement-8" />
        <comment value="Requester" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>