{
  "resourceType": "StructureDefinition",
  "id": "pt-lm-Task",
  "text": {
    "status": "empty",
    "div": "<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>"
  },
  "url": "http://medmij.nl/fhir/StructureDefinition/pt-lm-Task",
  "name": "LmTask",
  "title": "Task",
  "status": "active",
  "publisher": "MedMij",
  "contact": [
    {
      "name": "MedMij",
      "telecom": [
        {
          "system": "email",
          "value": "info@medmij.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "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": "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": "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": "4.0.1",
  "mapping": [
    {
      "identity": "pt-dataset-100-alpha1-20260511",
      "name": "Dataset Aanbiedertaken MedMij 1.0.0-alpha.1 20260511"
    }
  ],
  "kind": "logical",
  "abstract": true,
  "type": "http://medmij.nl/fhir/StructureDefinition/pt-lm-Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "pt-lm-Task",
        "path": "pt-lm-Task",
        "short": "Task",
        "definition": "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": [
          "Taak"
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-1",
            "comment": "Task"
          }
        ]
      },
      {
        "id": "pt-lm-Task.ActivityDefinition",
        "path": "pt-lm-Task.ActivityDefinition",
        "short": "Reference to the digital activity definition associated with this task.",
        "definition": "Reference to the digital activity definition associated with this task.",
        "alias": [
          "DigitaleActiviteit"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://medmij.nl/fhir/StructureDefinition/pt-lm-Activity"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-2",
            "comment": "ActivityDefinition"
          }
        ]
      },
      {
        "id": "pt-lm-Task.BasedOn",
        "path": "pt-lm-Task.BasedOn",
        "short": "Clinical order that triggered this patient task. May include patient-specific instructions and the requested schedule.",
        "definition": "Clinical order that triggered this patient task. May include patient-specific instructions and the requested schedule.",
        "alias": [
          "GebaseerdOp"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://medmij.nl/fhir/StructureDefinition/pt-lm-ServiceRequest"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-3",
            "comment": "BasedOn"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Status",
        "path": "pt-lm-Task.Status",
        "short": "Current state of the Task in the workflow (e.g., requested, received, accepted, in-progress, completed, cancelled).",
        "definition": "Current state of the Task in the workflow (e.g., requested, received, accepted, in-progress, completed, cancelled).",
        "alias": [
          "Status"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-4",
            "comment": "Status"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Priority",
        "path": "pt-lm-Task.Priority",
        "short": "Indicates how urgent it is to perform the activity (e.g., routine, urgent, asap).",
        "definition": "Indicates how urgent it is to perform the activity (e.g., routine, urgent, asap).",
        "alias": [
          "Prioriteit"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-5",
            "comment": "Priority"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Description",
        "path": "pt-lm-Task.Description",
        "short": "Short instruction for the patient describing what to do. Keep the text concise and readable on mobile.",
        "definition": "Short instruction for the patient describing what to do. Keep the text concise and readable on mobile.",
        "alias": [
          "Omschrijving"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-6",
            "comment": "Description"
          }
        ]
      },
      {
        "id": "pt-lm-Task.ExecutionPeriod",
        "path": "pt-lm-Task.ExecutionPeriod",
        "short": "Time window in which the task should be performed (start/end), if applicable.",
        "definition": "Time window in which the task should be performed (start/end), if applicable.",
        "alias": [
          "Periode"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-7",
            "comment": "ExecutionPeriod"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Requester",
        "path": "pt-lm-Task.Requester",
        "short": "The person or role who requested or initiated this Task.",
        "definition": "The person or role who requested or initiated this Task.",
        "alias": [
          "Aanvrager"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-HealthProfessional"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-8",
            "comment": "Requester"
          }
        ]
      }
    ]
  }
}