{
  "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": "PtLmTask",
  "title": "Task",
  "status": "draft",
  "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": "This LogicalModel represents the Task building block for patient use cases in the context of the data service Provider Tasks (Aanbiedertaken).",
  "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.2 20260511"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "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.Identifier",
        "path": "pt-lm-Task.Identifier",
        "short": "Identifier",
        "definition": "Business identifier for this patient task.",
        "alias": [
          "Identificatie"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-33",
            "comment": "Identifier"
          }
        ]
      },
      {
        "id": "pt-lm-Task.DigitalActivity",
        "path": "pt-lm-Task.DigitalActivity",
        "short": "Digital activity",
        "definition": "Reference to the digital activity definition associated with this task.",
        "alias": [
          "DigitaleActiviteit"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://medmij.nl/fhir/StructureDefinition/pt-lm-DigitalActivity"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-2",
            "comment": "DigitalActivity"
          }
        ]
      },
      {
        "id": "pt-lm-Task.GroupPlan",
        "path": "pt-lm-Task.GroupPlan",
        "short": "Group plan",
        "definition": "Reference to the digital group plan that groups this task with related tasks in the same digital care module.",
        "alias": [
          "DigitaalGroepsplan"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://medmij.nl/fhir/StructureDefinition/pt-lm-DigitalGroupPlan"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-3",
            "comment": "GroupPlan"
          }
        ]
      },
      {
        "id": "pt-lm-Task.ExecutionOrder",
        "path": "pt-lm-Task.ExecutionOrder",
        "short": "Execution order",
        "definition": "Execution order that triggered this patient task. May include patient-specific instructions and the requested schedule.",
        "alias": [
          "Uitvoeringsopdracht"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://medmij.nl/fhir/StructureDefinition/pt-lm-ExecutionOrder"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-19",
            "comment": "ExecutionOrder"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Status",
        "path": "pt-lm-Task.Status",
        "short": "Status",
        "definition": "Current state of the task in the workflow.",
        "alias": [
          "Status"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/task-status"
        },
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-4",
            "comment": "Status"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Priority",
        "path": "pt-lm-Task.Priority",
        "short": "Priority",
        "definition": "Indicates how urgent it is to perform the activity.",
        "alias": [
          "Prioriteit"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/request-priority"
        },
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-5",
            "comment": "Priority"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Description",
        "path": "pt-lm-Task.Description",
        "short": "Description",
        "definition": "Short instruction for the patient describing what to do.",
        "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": "Execution period",
        "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.AuthoredOn",
        "path": "pt-lm-Task.AuthoredOn",
        "short": "Authored on",
        "definition": "The date and time this task was created.",
        "alias": [
          "CreatieDatumTijd"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-34",
            "comment": "AuthoredOn"
          }
        ]
      },
      {
        "id": "pt-lm-Task.LastModified",
        "path": "pt-lm-Task.LastModified",
        "short": "Last modified",
        "definition": "The date and time of last modification to this task.",
        "alias": [
          "MutatieDatumTijd"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-35",
            "comment": "LastModified"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Requester",
        "path": "pt-lm-Task.Requester",
        "short": "Requester",
        "definition": "The healthcare professional 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"
          }
        ]
      },
      {
        "id": "pt-lm-Task.Owner",
        "path": "pt-lm-Task.Owner",
        "short": "Owner",
        "definition": "The party currently responsible for executing the task.",
        "alias": [
          "Eigenaar"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient",
              "http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-HealthProfessional",
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-ContactPerson",
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-CareTeam"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "pt-dataset-100-alpha1-20260511",
            "map": "pt-dataelement-24",
            "comment": "Owner"
          }
        ]
      }
    ]
  }
}