{
  "resourceType": "StructureDefinition",
  "id": "basetask-profile",
  "url": "http://fhir.xt.dev/StructureDefinition/BaseTask",
  "version": "2.1.0",
  "name": "BaseTask",
  "status": "active",
  "date": "2026-07-29T20:13:37.6670843+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Adds the requestedPerformer and performer from R5 Tasks to R4 Tasks and sets some basic standards for x-tention solutions.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": true,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.extension:performer",
        "path": "Task.extension",
        "sliceName": "performer",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.xt.dev/StructureDefinition/TaskPerformer"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Task.extension:requestedPerformer",
        "path": "Task.extension",
        "sliceName": "requestedPerformer",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.xt.dev/StructureDefinition/TaskRequestedPerformer"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Task.instantiatesCanonical",
        "path": "Task.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "Task.partOf",
        "path": "Task.partOf",
        "max": "1"
      },
      {
        "id": "Task.partOf.extension:taskRelationship",
        "path": "Task.partOf.extension",
        "sliceName": "taskRelationship",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.xt.dev/StructureDefinition/TaskRelationship"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Task.executionPeriod.start",
        "path": "Task.executionPeriod.start",
        "definition": "When should the task be available for the performer to execute? Before this time, the task may be hidden. Tasks before their execution time period starts should be in draft status."
      },
      {
        "id": "Task.executionPeriod.end",
        "path": "Task.executionPeriod.end",
        "short": "When was the task completed",
        "definition": "If the task is not completed, this should be empty."
      },
      {
        "id": "Task.restriction",
        "path": "Task.restriction",
        "requirements": "This is constrained to specifically express when the task should be fulfilled. If period.start is set, the Task should not be fulfilled before that date. If period.end is set, the Task should be fulfilled before that date."
      },
      {
        "id": "Task.restriction.period",
        "path": "Task.restriction.period",
        "definition": "Over what time-period is fulfillment sought. If period.start is set, the Task should not be fulfilled before that date. If period.end is set, the Task should be fulfilled before that date.",
        "comment": "Note that period.end is the due date representing the time by which the task should be completed.",
        "min": 1
      },
      {
        "id": "Task.restriction.recipient",
        "path": "Task.restriction.recipient",
        "max": "0"
      }
    ]
  }
}